Connect RouterBrain in any AI tool that accepts a custom OpenAI- or Anthropic-compatible endpoint.
Dedicated guides exist for Cursor, Claude Code, OpenClaw, TRAE, Hermes Agent, and Codex. If your tool supports Base URL + API Key but is not listed below, use the reference values.
Create an inference API key in the console (API keys) and pick a catalog id (List models) first.
Configuration reference
RouterBrain exposes two compatible surfaces—use whichever your tool supports.
OpenAI-compatible
| Field | Value |
|---|---|
| Provider | OpenAI Compatible (sometimes Custom or OpenAI-format) |
| Base URL | https://51kik.com/v1 |
| API Key | Console inference key |
| Model ID | Catalog id |
Anthropic-compatible
| Field | Value |
|---|---|
| Provider | Anthropic Compatible (sometimes Claude or Custom Anthropic) |
| Base URL | https://51kik.com/anthropic |
| API Key | Console inference key |
| Model ID | Catalog id |
Which protocol to pick
| Tool style | Recommended | Common env vars |
|---|---|---|
| Claude Code–style Anthropic TUI/CLI | Anthropic-compatible | ANTHROPIC_BASE_URL + ANTHROPIC_AUTH_TOKEN |
| Cursor / Continue / Aider / OpenAI IDE plugins | OpenAI-compatible | OPENAI_BASE_URL + OPENAI_API_KEY |
| Both supported | Either; Anthropic surface → Messages API |
Minimal check
curl -sS "https://51kik.com/v1/chat/completions" \
-H "Authorization: Bearer YOUR_ROUTERBRAIN_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"YOUR_MODEL_ID","messages":[{"role":"user","content":"ok"}]}'
Dify
Dify is an open-source LLM app platform with workflows, RAG, agents, and observability.
- Open Dify Cloud or your own Dify deployment → Settings → Workspace → Model providers.
- Install OpenAI-API-compatible (or Anthropic-compatible, depending on version).
- Set API Key (console key) and API Base (OpenAI:
https://51kik.com/v1; Anthropic:https://51kik.com/anthropic). - Add your catalog
idas the model name and use it in workflows.
Cherry Studio
Cherry Studio is an open-source desktop client with MCP support.
- Install per official docs.
- Choose other Providers → OpenAI Compatible (or custom OpenAI protocol).
- API Host / Base URL →
https://51kik.com/v1, API Key → console key, Check to verify. - Add a custom model name (catalog
id) and use it.
Xcode
Xcode includes Coding Intelligence with Internet Hosted providers.
- Install Xcode 26 or newer.
- Xcode → Settings → Intelligence → Add a Model Provider → Internet Hosted:
- URL:
https://51kik.com(gateway root; if the UI requires a path, tryhttps://51kik.com/v1per Apple docs) - API Key Header:
Authorization - API Key:
Bearer YOUR_ROUTERBRAIN_KEY(one space afterBearer) - Description:
RouterBrain(any label)
- URL:
- Enable the model; ⌘+0 for Coding Assistant and select it.
Xcode third-party fields vary by version—validate key and model with curl if connection fails.
Pi
Pi is an open-source terminal coding agent.
npm install -g @earendil-works/pi-coding-agent
export OPENAI_API_KEY=YOUR_ROUTERBRAIN_KEY
export OPENAI_BASE_URL=https://51kik.com/v1
pi --provider openai --model YOUR_MODEL_ID
Custom provider names depend on your Pi version—check pi --help.
Kilo Code
Kilo Code is a VS Code AI agent extension.
Unset
ANTHROPIC_AUTH_TOKENandANTHROPIC_BASE_URLfirst so they do not override plugin settings.
- Install Kilo Code from the marketplace.
- Settings:
- API Provider → OpenAI Compatible / Custom
- Base URL →
https://51kik.com/v1 - API Key → console key
- Model → catalog
id
- Save and use.
For Anthropic-style tools, use https://51kik.com/anthropic per Kilo Code docs.
Zed
Zed is a high-performance collaborative editor.
- Install via Zed docs.
- Settings → LLM Provider → +Add Provider → OpenAI:
- API URL:
https://51kik.com/v1 - API Key: console key
- Model Name: catalog
id
- API URL:
- Save Provider; some builds ask you to confirm the key again.
- Select a Model in the agent panel.
OpenCode
OpenCode is SST's terminal coding agent.
curl -fsSL https://opencode.ai/install | bash
# or npm i -g opencode-ai
Configure a custom OpenAI-compatible endpoint (path varies by version—~/.opencode/config or Custom during opencode auth login):
- Base URL:
https://51kik.com/v1 - API Key: console key
- Model:
YOUR_MODEL_ID
Grok CLI
Grok CLI accepts OpenAI-compatible backends.
For heavy agent workflows, prefer Claude Code or Cursor.
Unset
OPENAI_API_KEYandOPENAI_BASE_URLfirst.
npm install -g @vibe-kit/grok-cli
export GROK_BASE_URL=https://51kik.com/v1
export GROK_API_KEY=YOUR_ROUTERBRAIN_KEY
grok --model YOUR_MODEL_ID
Droid
Droid is Factory's terminal coding agent.
Unset
ANTHROPIC_AUTH_TOKEN. Config file:~/.factory/config.json(notsettings.json).
curl -fsSL https://app.factory.ai/cli | sh
Edit ~/.factory/config.json:
{
"custom_models": [{
"model_display_name": "RouterBrain",
"model": "YOUR_MODEL_ID",
"base_url": "https://51kik.com/anthropic",
"api_key": "YOUR_ROUTERBRAIN_KEY",
"provider": "anthropic",
"max_tokens": 64000
}]
}
Run droid, /model to select the model.
MonkeyCode
MonkeyCode is Chaitin's enterprise AI dev platform.
- Sign in at monkeycode-ai.com.
- Settings → AI models → Bind.
- Set:
- API URL:
https://51kik.com/anthropic(Anthropic) orhttps://51kik.com/v1(OpenAI) - API Key: console key
- Format:
anthropicoropenai - Model name: catalog
id
- API URL:
- Save and use.
Qwen Code
Qwen Code is Alibaba's terminal coding agent.
bash -c "$(curl -fsSL https://qwen-code-assets.oss-cn-hangzhou.aliyuncs.com/installation/install-qwen.sh)"
Run qwen → Third-party Providers → OpenAI Compatible:
- Base URL:
https://51kik.com/v1 - API Key: console key
- Model ID: catalog
id
Open WebUI
Open WebUI is an open-source chat UI you can run locally.
pip install open-webui
open-webui serve
- Open
http://localhost:8080and create an admin account. - Admin Panel → Settings → Connections → OpenAI → Add Connection:
- URL:
https://51kik.com/v1 - Auth: console key (Bearer)
- URL:
- Pick model
idin chat.
nanobot
nanobot is a lightweight personal agent CLI.
uv tool install nanobot-ai
nanobot onboard
Edit ~/.nanobot/config.json (field names may vary by version):
{
"providers": {
"openai": {
"apiKey": "YOUR_ROUTERBRAIN_KEY",
"apiBase": "https://51kik.com/v1"
}
},
"agents": {
"defaults": {
"provider": "openai",
"model": "YOUR_MODEL_ID"
}
}
}
nanobot agent
OpenHands
OpenHands (formerly OpenDevin) is an open-source coding agent.
pipx install openhands
Example setup (adjust to your OpenHands version):
pipx run --spec openhands python -c '
import sys
from openhands_cli.stores.agent_store import AgentStore
AgentStore().create_and_save_from_settings(
llm_api_key=sys.argv[1],
settings={
"llm_model": "openai/YOUR_MODEL_ID",
"llm_base_url": "https://51kik.com/v1",
},
)
' YOUR_ROUTERBRAIN_KEY
openhands
LangChain
LangChain is an LLM application framework.
pip install langchain-openai
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(
model="YOUR_MODEL_ID",
api_key="YOUR_ROUTERBRAIN_KEY",
base_url="https://51kik.com/v1",
)
print(llm.invoke("Hello").content)
For Anthropic, use langchain-anthropic with base_url="https://51kik.com/anthropic/v1" (From Anthropic).