Documentation
MegaBrain Gateway Docs
One OpenAI-compatible API for 500+ models. Drop-in replacement for any tool that speaks OpenAI.
Getting Started
Set up billing and access the way that fits you.
Collaborate
Teams & Enterprise: sharing, team management, billing, analytics, SSO, model access controls, audit logs, and the AI Adoption Score.
BrainClaw
Your always-on AI agent. Connect it to Telegram, Discord, or Slack and chat anywhere.
Overview
What BrainClaw is, how to provision an instance, and key concepts.
End-to-End Setup
Provision, connect a channel, add secrets, pick a model, and redeploy.
Dashboard
A tour of the dashboard — status, chat, settings, channels, secrets, controls.
Control UI
Redeploy, start, stop, restart, reset a session, and re-provision your instance.
Pre-installed Software
Coding agent, shell, headless browser, runtimes, cron, and persistent storage.
Connect Telegram
Step-by-step: create a bot with @BotFather and chat with BrainClaw in Telegram.
Triggers
Run your agent on a schedule or in response to events — digests, monitors, reports.
Troubleshooting
Fixes for no replies, rejected tokens, settings not applying, and stuck instances.
FAQ
Models, data, pricing, memory, automation, and self-hosting — answered.
Gateway
Cookbook
Step-by-step guides for popular coding agents and IDEs.
Codex CLI
OpenAI-compatibleUse OpenAI Codex CLI with MegaBrain as the inference backend.
Cursor
OpenAI-compatibleConnect Cursor IDE to MegaBrain for AI-powered coding assistance.
Cline
OpenAI-compatibleConfigure the Cline VS Code extension to use MegaBrain Gateway.
Hermes
OpenAI-compatibleRoute Hermes coding agent requests through MegaBrain.
OpenCode
OpenAI-compatibleUse OpenCode with MegaBrain as your AI inference provider.
Claude Code
Anthropic-compatiblePoint Claude Code CLI at MegaBrain to use any model with one key.
Claude Desktop
Anthropic-compatibleConfigure Claude Desktop to use MegaBrain as its API provider.
MClaw
OpenAI-compatibleDeploy an AI bot across Telegram, Discord, Slack, and WhatsApp with MegaBrain.
Skills
Custom instruction sets for Cline — copy and paste to unlock specialized workflows.