Spaces:
Sleeping
Sleeping
Somrat Sorkar commited on
Commit ·
b19cd4a
1
Parent(s): 837da99
Add OpenRouter support + 15+ popular models (Qwen, Grok, MiMo, Seed, Nemotron, GLM, Mercury, etc.)
Browse filesFiles changed (3)
- .env.example+36
- README.md+73
- start.sh+22-2
54 unmodified lines55565758596054 unmodified lines# - groq/mixtral-8x7b-32768# - groq/llama2-70b-4096## Or any other provider supported by OpenClaw (format: provider/model-name)LLM_MODEL=anthropic/claude-sonnet-4-554 unmodified lines55565758596061626364656667686970717273747576777879808182838485868788899091929394959654 unmodified lines# - groq/mixtral-8x7b-32768# - groq/llama2-70b-4096## Qwen:# - qwen/qwen3.6-plus-preview (free, 1M context)# - qwen/qwen3.5-35b-a3b# - qwen/qwen3.5-9b## xAI Grok:# - x-ai/grok-4.20-beta# - x-ai/grok-4.20-multi-agent-beta## NVIDIA:# - nvidia/nemotron-3-super-120b-a12b# - nvidia/nemotron-3-super-120b-a12b (free)## Reka:# - reka/reka-edge## Xiaomi:# - xiaomi/mimo-v2-pro (1M context)# - xiaomi/mimo-v2-omni (256K context, multimodal)## ByteDance Seed:# - bytedance-seed/seed-2.0-lite# - bytedance-seed/seed-2.0-mini## Z.ai GLM:# - z-ai/glm-5-turbo## KwaiPilot:# - kwaipilot/kat-coder-pro-v2## OpenRouter (any model via OpenRouter proxy):# - openrouter/google/lyria-3-pro-preview (music generation)# - openrouter/inception/mercury-2 (fast reasoning)# Note: With OpenRouter, you can access 100+ models with a single API key!# See https://openrouter.ai/models for complete list## Or any other provider supported by OpenClaw (format: provider/model-name)LLM_MODEL=anthropic/claude-sonnet-4-5
188 unmodified lines189190191192193194188 unmodified linesModels: `groq/mixtral-8x7b-32768` · `groq/llama2-70b-4096`Get key from: [Groq Console](https://console.groq.com)### Any Other ProviderHuggingClaw supports **any LLM provider** that OpenClaw supports. Just use:```188 unmodified lines189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267188 unmodified linesModels: `groq/mixtral-8x7b-32768` · `groq/llama2-70b-4096`Get key from: [Groq Console](https://console.groq.com)### Qwen```LLM_API_KEY=your_qwen_api_keyLLM_MODEL=qwen/qwen3.6-plus-preview```Models: `qwen/qwen3.6-plus-preview` (free!) · `qwen/qwen3.5-35b-a3b` · `qwen/qwen3.5-9b`Get key from: [Qwen API](https://dashscope.aliyun.com)### xAI (Grok)```LLM_API_KEY=your_xai_api_keyLLM_MODEL=x-ai/grok-4.20-beta```Models: `x-ai/grok-4.20-beta` · `x-ai/grok-4.20-multi-agent-beta`Get key from: [xAI Console](https://console.x.ai)### NVIDIA (Nemotron)```LLM_API_KEY=your_nvidia_api_keyLLM_MODEL=nvidia/nemotron-3-super-120b-a12b```Models: `nvidia/nemotron-3-super-120b-a12b` · `nvidia/nemotron-3-super-120b-a12b` (free)Get key from: [NVIDIA API](https://api.nvidia.com)### Xiaomi (MiMo)```LLM_API_KEY=your_xiaomi_api_keyLLM_MODEL=xiaomi/mimo-v2-pro```Models: `xiaomi/mimo-v2-pro` (1M context) · `xiaomi/mimo-v2-omni` (multimodal)Get key from: [Xiaomi](https://xiaoai.xiaomi.com)### ByteDance (Seed)```LLM_API_KEY=your_bytedance_api_keyLLM_MODEL=bytedance-seed/seed-2.0-lite```Models: `bytedance-seed/seed-2.0-lite` · `bytedance-seed/seed-2.0-mini`Get key from: [ByteDance](https://www.volcengine.com)### Z.ai (GLM)```LLM_API_KEY=your_zai_api_keyLLM_MODEL=z-ai/glm-5-turbo```Models: `z-ai/glm-5-turbo`Get key from: [Z.ai](https://z.ai)### OpenRouter (100+ models via single API)```LLM_API_KEY=your_openrouter_api_keyLLM_MODEL=openrouter/google/lyria-3-pro-preview```**Popular models via OpenRouter:**- `openrouter/openai/gpt-5.4-pro` — Latest OpenAI (1M context)- `openrouter/openai/gpt-5.4-mini` — Fast, efficient OpenAI- `openrouter/google/gemini-3.1-flash-lite-preview` — Google's latest- `openrouter/anthropic/claude-opus-4-6` — Latest Claude via OpenRouter- `openrouter/mistral/mistral-small-2603` — Mistral's latest- `openrouter/inception/mercury-2` — Ultra-fast reasoning (1000 tok/sec)- `openrouter/qwen/qwen3.6-plus-preview` — Free tier available!- `openrouter/x-ai/grok-4.20-beta` — xAI's latest Grok- `openrouter/nvidia/nemotron-3-super-120b-a12b` — NVIDIA's powerhouse- `openrouter/xiaomi/mimo-v2-pro` — Xiaomi's 1M context model**Why OpenRouter?**- Single API key for 100+ models- Unified pricing and routing- Auto-fallback to other models- No vendor lock-inGet key from: [OpenRouter.ai](https://openrouter.ai) (free tier available!)### Any Other ProviderHuggingClaw supports **any LLM provider** that OpenClaw supports. Just use:```
39 unmodified lines404142434445463 unmodified lines50515253545556575859606139 unmodified linesfi# Auto-detect and set provider-specific API key from model nameif [[ "$LLM_MODEL" == "google/"* ]]; thenexport GOOGLE_API_KEY="$LLM_API_KEY"elif [[ "$LLM_MODEL" == "openai/"* ]]; thenexport OPENAI_API_KEY="$LLM_API_KEY"3 unmodified linesexport MOONSHOT_API_KEY="$LLM_API_KEY"elif [[ "$LLM_MODEL" == "minimax/"* ]]; thenexport MINIMAX_API_KEY="$LLM_API_KEY"elif [[ "$LLM_MODEL" == "mistral/"* ]]; thenexport MISTRAL_API_KEY="$LLM_API_KEY"elif [[ "$LLM_MODEL" == "cohere/"* ]]; thenexport COHERE_API_KEY="$LLM_API_KEY"elif [[ "$LLM_MODEL" == "groq/"* ]]; thenexport GROQ_API_KEY="$LLM_API_KEY"else# Default to Anthropic for claude/* or anthropic/* modelsexport ANTHROPIC_API_KEY="$LLM_API_KEY"39 unmodified lines4041424344454647483 unmodified lines52535455565758596061626364656667686970717273747576777879808139 unmodified linesfi# Auto-detect and set provider-specific API key from model nameif [[ "$LLM_MODEL" == "openrouter/"* ]]; thenexport OPENROUTER_API_KEY="$LLM_API_KEY"elif [[ "$LLM_MODEL" == "google/"* ]]; thenexport GOOGLE_API_KEY="$LLM_API_KEY"elif [[ "$LLM_MODEL" == "openai/"* ]]; thenexport OPENAI_API_KEY="$LLM_API_KEY"3 unmodified linesexport MOONSHOT_API_KEY="$LLM_API_KEY"elif [[ "$LLM_MODEL" == "minimax/"* ]]; thenexport MINIMAX_API_KEY="$LLM_API_KEY"elif [[ "$LLM_MODEL" == "mistral/"* ]] || [[ "$LLM_MODEL" == "mistralai/"* ]]; thenexport MISTRAL_API_KEY="$LLM_API_KEY"elif [[ "$LLM_MODEL" == "cohere/"* ]]; thenexport COHERE_API_KEY="$LLM_API_KEY"elif [[ "$LLM_MODEL" == "groq/"* ]]; thenexport GROQ_API_KEY="$LLM_API_KEY"elif [[ "$LLM_MODEL" == "qwen/"* ]]; thenexport QWEN_API_KEY="$LLM_API_KEY"elif [[ "$LLM_MODEL" == "x-ai/"* ]] || [[ "$LLM_MODEL" == "xai/"* ]]; thenexport XAI_API_KEY="$LLM_API_KEY"elif [[ "$LLM_MODEL" == "nvidia/"* ]]; thenexport NVIDIA_API_KEY="$LLM_API_KEY"elif [[ "$LLM_MODEL" == "reka/"* ]]; thenexport REKA_API_KEY="$LLM_API_KEY"elif [[ "$LLM_MODEL" == "bytedance/"* ]] || [[ "$LLM_MODEL" == "seed/"* ]]; thenexport BYTEDANCE_API_KEY="$LLM_API_KEY"elif [[ "$LLM_MODEL" == "kwaipilot/"* ]]; thenexport KWAIPILOT_API_KEY="$LLM_API_KEY"elif [[ "$LLM_MODEL" == "z-ai/"* ]]; thenexport ZAI_API_KEY="$LLM_API_KEY"elif [[ "$LLM_MODEL" == "inception/"* ]]; thenexport INCEPTION_API_KEY="$LLM_API_KEY"elif [[ "$LLM_MODEL" == "xiaomi/"* ]]; thenexport XIAOMI_API_KEY="$LLM_API_KEY"else# Default to Anthropic for claude/* or anthropic/* modelsexport ANTHROPIC_API_KEY="$LLM_API_KEY"
.env.example+36
README.md+73
start.sh+22-2