MegaBrain University

Connect any model to your AI agent

Step-by-step guides for Claude Code, Codex, Hermes Agent, OpenClaw, OpenWork, OpenCode and Kilo Code on Claude, GPT-6, Gemini, Kimi, GLM and DeepSeek through one OpenAI-compatible API — with working configs, model picks and business use cases.

Guides

What every agent needs

  • Base URL: https://getmegabrain.com/api/gateway/v1 — OpenAI-compatible (Chat Completions, Responses). For Claude Code and the Anthropic SDK: https://getmegabrain.com/api/anthropic.
  • Key: the Authorization: Bearer <key> header; create it on the API key page. One key for every text, image and video model.
  • Model: an ID from the catalog, e.g. anthropic/claude-sonnet-5.5. To test your setup for free, use mb-auto/free.
  • The model must support tool calling, or the agent cannot use files, the terminal or the browser.

Check your key with one command

curl https://getmegabrain.com/api/gateway/v1/chat/completions \
  -H "Authorization: Bearer $MEGABRAIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "anthropic/claude-sonnet-5.5", "messages": [{"role": "user", "content": "Say OK"}]}'

FAQ

What is MegaBrain University?

Free MegaBrain guides on running AI agents (Claude Code, Codex, Hermes Agent, OpenClaw, OpenWork, OpenCode, Kilo Code) on Claude, GPT, Gemini and open models with one API key, and on what those agents can do for a business.

Which agent should I pick?

For an assistant in Telegram, WhatsApp or Slack with scheduled jobs: Hermes Agent or OpenClaw. For documents and files without coding: OpenWork. For software development: Claude Code on Claude models, Codex on GPT-6, or OpenCode and Kilo Code on any model.

Do I need Anthropic, OpenAI or Google accounts?

No. One MegaBrain key reaches Claude, GPT, Gemini, Grok, Kimi, GLM, DeepSeek, Qwen and MiniMax. You change models by changing the ID; the key and base URL stay the same.

How do I pay?

Pay as you go: each request is paid at the model’s price from a prepaid balance you top up by card. No subscription. Prices are in the model catalog.

Ready to try?

Sign up free, add funds by card, and point any agent at one API.

Get started free