Downloads · 30 days
0
xujfcn/Crazyrouter-OpenClaw-Guide
Crazyrouter-OpenClaw-Guide is a machine learning model from xujfcn. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Use Crazyrouter as the LLM backend for OpenClaw — an open-source AI agent that lives in your Telegram, Discord, WhatsApp, and more.
Downloads · 30 days
0
Access
Public
Updated Feb 25, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.md8.4 KB · 85%
From the Hugging Face model README
Use Crazyrouter as the LLM backend for OpenClaw — an open-source AI agent that lives in your Telegram, Discord, WhatsApp, and more.
OpenClaw is an open-source autonomous AI agent framework. It connects to messaging platforms (Telegram, Discord, WhatsApp, Slack, Signal, iMessage...) and gives you a personal AI assistant that can:
Crazyrouter is the perfect backend — one API key gives OpenClaw access to 624+ models from OpenAI, Anthropic, Google, DeepSeek, and more.
# macOS / Linux
curl -fsSL https://openclaw.ai/install.sh | bash
# Windows (PowerShell)
iwr -useb https://openclaw.ai/install.ps1 | iex
Requires Node.js 22+.
sk-...)openclaw onboard --install-daemon
When prompted for auth, choose API key and enter your Crazyrouter key.
Or set it up non-interactively:
openclaw onboard \
--auth-choice apiKey \
--token-provider crazyrouter \
--token "sk-your-crazyrouter-key"
openclaw gateway status
openclaw dashboard # Opens the web UI
Edit ~/.openclaw/openclaw.json (JSON5 format):
{
models: {
providers: {
crazyrouter: {
baseUrl: "https://crazyrouter.com/v1",
apiKey: "sk-your-crazyrouter-key",
api: "openai-completions",
models: [
{
id: "claude-opus-4-6",
name: "Claude Opus 4.6",
reasoning: false,
input: ["text", "image"],
contextWindow: 200000,
maxTokens: 8192,
},
],
},
},
},
agents: {
defaults: {
model: { primary: "crazyrouter/claude-opus-4-6" },
workspace: "~/.openclaw/workspace",
},
},
}
{
models: {
providers: {
crazyrouter: {
baseUrl: "https://crazyrouter.com/v1",
apiKey: "sk-your-crazyrouter-key",
api: "openai-completions",
models: [
// Flagship - best for complex tasks
{
id: "claude-opus-4-6",
name: "Claude Opus 4.6",
reasoning: false,
input: ["text", "image"],
contextWindow: 200000,
maxTokens: 8192,
},
// Great all-rounder
{
id: "gpt-4o",
name: "GPT-4o",
reasoning: false,
input: ["text", "image"],
contextWindow: 128000,
maxTokens: 8192,
},
// Fast and cheap
{
id: "gpt-4o-mini",
name: "GPT-4o Mini",
reasoning: false,
input: ["text", "image"],
contextWindow: 128000,
maxTokens: 8192,
},
// Strong reasoning
{
id: "deepseek-reasoner",
name: "DeepSeek R1",
reasoning: true,
input: ["text"],
contextWindow: 64000,
maxTokens: 8192,
},
// Budget coding
{
id: "deepseek-chat",
name: "DeepSeek V3",
reasoning: false,
input: ["text"],
contextWindow: 64000,
maxTokens: 8192,
},
// Speed king
{
id: "gemini-2.0-flash",
name: "Gemini 2.0 Flash",
reasoning: false,
input: ["text", "image"],
contextWindow: 1000000,
maxTokens: 8192,
},
],
},
},
},
agents: {
defaults: {
model: {
primary: "crazyrouter/claude-opus-4-6",
fallbacks: ["crazyrouter/gpt-4o"],
},
models: {
"crazyrouter/gpt-4o-mini": { alias: "Mini" },
"crazyrouter/deepseek-chat": { alias: "DeepSeek" },
},
workspace: "~/.openclaw/workspace",
},
},
}
{
// ... models config above ...
channels: {
telegram: {
enabled: true,
botToken: "123456:ABC-your-telegram-bot-token",
dmPolicy: "allowlist",
allowFrom: ["tg:YOUR_TELEGRAM_USER_ID"],
},
},
}
{
channels: {
discord: {
enabled: true,
botToken: "your-discord-bot-token",
dmPolicy: "pairing",
},
},
}
Once configured, you can switch models in chat:
/model crazyrouter/gpt-4o
/model crazyrouter/deepseek-chat
/model crazyrouter/gemini-2.0-flash
Or use aliases:
/model Mini
/model DeepSeek
| Feature | Benefit |
|---|---|
| 624+ models | Switch between any model without changing config |
| One API key | No need to manage separate keys for each provider |
| OpenAI-compatible | Native support in OpenClaw — zero custom code |
| Competitive pricing | Run your agent 24/7 without breaking the bank |
| Fallback support | If one model is down, auto-switch to another |
| All channels | Same backend powers Telegram, Discord, WhatsApp, Slack... |
gpt-4o-mini or deepseek-chat for background tasksclaude-opus-4-6 or gpt-4o for direct conversations{
agents: {
defaults: {
compaction: { mode: "safeguard" },
},
},
}
{
agents: {
defaults: {
maxConcurrent: 4,
subagents: { maxConcurrent: 8 },
},
},
}
Instead of putting the API key in the config file:
export CRAZYROUTER_API_KEY="sk-your-crazyrouter-key"
Then reference it in config:
{
models: {
providers: {
crazyrouter: {
baseUrl: "https://crazyrouter.com/v1",
apiKey: "${CRAZYROUTER_API_KEY}",
api: "openai-completions",
// ...
},
},
},
}
openclaw gateway status
openclaw doctor
openclaw logs
openclaw logs --tail
curl https://crazyrouter.com/v1/models \
-H "Authorization: Bearer sk-your-crazyrouter-key" \
| head -20
| Issue | Fix |
|---|---|
| "Model not found" | Check model ID matches exactly (e.g. claude-opus-4-6) |
| Auth error | Verify API key at crazyrouter.com |
| Slow responses | Try a faster model like gemini-2.0-flash |
| Gateway won't start | Run openclaw doctor --fix |