Spaces:
Sleeping
Sleeping
Somrat Sorkar commited on
Commit Β·
0bfb89f
1
Parent(s): facefdf
Fix all provider names to match OpenClaw system (zai, moonshot, mistral, xai, opencode, etc.)
Browse filesFiles changed (3)
- .env.example+89-160
- README.md+55-67
- start.sh+37-30
8 unmodified lines91011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421 unmodified line1441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422438 unmodified lines# - Anthropic: sk-ant-v0-...# - OpenAI: sk-...# - Google: AIzaSy...LLM_API_KEY=your_api_key_here# [REQUIRED] LLM model to use (format: provider/model-name)# Auto-detects provider from prefix β any provider is supported!# Model IDs sourced from https://openrouter.ai/api/v1/models## ββ Top-Tier Providers ββ## Anthropic Claude:# - anthropic/claude-opus-4-6# - anthropic/claude-sonnet-4-6# - anthropic/claude-sonnet-4-5# - anthropic/claude-haiku-4-5## OpenAI:# - openai/gpt-5.4-pro (1M context)# - openai/gpt-5.4 (1M context)# - openai/gpt-5.4-mini# - openai/gpt-5.4-nano# - openai/gpt-4.1# - openai/gpt-4.1-mini# - openai/gpt-4.1-nano## Google Gemini:# - google/gemini-3.1-pro-preview# - google/gemini-3.1-flash-lite-preview# - google/gemini-2.5-pro# - google/gemini-2.5-flash## DeepSeek:# - deepseek/deepseek-v3.2# - deepseek/deepseek-r1-0528# - deepseek/deepseek-r1# - deepseek/deepseek-chat-v3.1## ββ Chinese/Asian Providers ββ## Qwen (Alibaba):# - qwen/qwen3.6-plus-preview:free (1M context, free!)# - qwen/qwen3-max# - qwen/qwen3-coder# - qwen/qwen3.5-397b-a17b# - qwen/qwen3.5-35b-a3b## Z.ai (GLM):# - z-ai/glm-5# - z-ai/glm-5-turbo# - z-ai/glm-4.7# - z-ai/glm-4.7-flash# - z-ai/glm-4.5-air:free (free!)## Moonshot (Kimi):# - moonshotai/kimi-k2.5# - moonshotai/kimi-k2# - moonshotai/kimi-k2-thinking## Xiaomi (MiMo):# - xiaomi/mimo-v2-pro (1M context)# - xiaomi/mimo-v2-omni (multimodal)# - xiaomi/mimo-v2-flash## ByteDance Seed:# - bytedance-seed/seed-2.0-lite# - bytedance-seed/seed-2.0-mini## Baidu (ERNIE):# - baidu/ernie-4.5-300b-a47b# - baidu/ernie-4.5-21b-a3b## Tencent:# - tencent/hunyuan-a13b-instruct## StepFun:# - stepfun/step-3.5-flash# - stepfun/step-3.5-flash:free (free!)## ββ Western Providers ββ## Mistral:# - mistralai/mistral-large-2512# - mistralai/mistral-medium-3.1# - mistralai/mistral-small-2603# - mistralai/devstral-medium (coding)# - mistralai/codestral-2508## xAI (Grok):# - x-ai/grok-4.20-beta# - x-ai/grok-4.20-multi-agent-beta# - x-ai/grok-4.1-fast# - x-ai/grok-4## Meta (Llama):# - meta-llama/llama-4-maverick# - meta-llama/llama-4-scout# - meta-llama/llama-3.3-70b-instruct## NVIDIA:# - nvidia/nemotron-3-super-120b-a12b# - nvidia/nemotron-3-super-120b-a12b:free (free!)## Cohere:# - cohere/command-a# - cohere/command-r-plus-08-2024## Perplexity:# - perplexity/sonar-deep-research# - perplexity/sonar-pro## MiniMax:# - minimax/minimax-m2.7# - minimax/minimax-m2.5# - minimax/minimax-m2.5:free (free!)## ββ Speed & Specialty ββ## Inception (ultra-fast reasoning):# - inception/mercury-2 (1000+ tok/sec)# - inception/mercury-coder## Amazon:# - amazon/nova-premier-v1# - amazon/nova-pro-v1## ββ OpenRouter (100+ models via single API key) ββ# Use any model above via OpenRouter with a single API key!# See https://openrouter.ai/models for complete list## Or any other provider β format: provider/model-name (auto-detected)LLM_MODEL=anthropic/claude-sonnet-4-5# [REQUIRED] Gateway authentication token1 unmodified lineGATEWAY_TOKEN=your_gateway_token_here# ββ OPTIONAL: Telegram Integration ββ# Enable Telegram bot integration# Get bot token from: https://t.me/BotFatherTELEGRAM_BOT_TOKEN=your_bot_token_here# Single user ID for DM access# Get your ID from: https://t.me/userinfobotTELEGRAM_USER_ID=123456789# Multiple user IDs (comma-separated for team access)# TELEGRAM_USER_IDS=123456789,987654321,555555555# ββ OPTIONAL: Workspace Backup to HF Dataset ββ# Enable automatic workspace backup & restore# Your HuggingFace usernameHF_USERNAME=your_hf_username# HuggingFace API token (with write access)# Get from: https://huggingface.co/settings/tokensHF_TOKEN=hf_your_token_here# Name of the backup dataset (auto-created if missing)# Default: huggingclaw-backupBACKUP_DATASET_NAME=huggingclaw-backup# Git commit email for workspace syncs# Default: openclaw@example.comWORKSPACE_GIT_USER=openclaw@example.com# Git commit name for workspace syncs# Default: OpenClaw BotWORKSPACE_GIT_NAME=OpenClaw Bot# ββ OPTIONAL: Background Services Configuration ββ# Keep-alive ping interval in seconds (prevents HF Spaces sleep)# Default: 300 (5 minutes)# Set to 0 to disable (not recommended on HF Spaces)KEEP_ALIVE_INTERVAL=300# Workspace auto-sync interval in seconds# Default: 600 (10 minutes)SYNC_INTERVAL=600# ββ OPTIONAL: Advanced Configuration ββ# Pin OpenClaw version (default: latest)# Example: OPENCLAW_VERSION=2026.3.24OPENCLAW_VERSION=latest# Health endpoint port (default: 7861)HEALTH_PORT=7861# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ# QUICK START CHECKLIST# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ## β Minimum setup (3 secrets):# 1. LLM_API_KEY - Get from your LLM provider# 2. LLM_MODEL - Choose a model above# 3. GATEWAY_TOKEN - Run: openssl rand -hex 32## β Add Telegram (2 more secrets):# 4. TELEGRAM_BOT_TOKEN - From @BotFather# 5. TELEGRAM_USER_ID - From @userinfobot## β Enable Backup (2 more secrets):# 6. HF_USERNAME - Your HF account name# 7. HF_TOKEN - From HF Settings β Tokens## ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ# DEPLOYMENT OPTIONS# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ## π¦ HuggingFace Spaces (Recommended):# - Click "Duplicate this Space"# - Go to Settings β Secrets# - Add LLM_API_KEY, LLM_MODEL, GATEWAY_TOKEN# - Deploy (automatic!)## π³ Docker Local:# docker build -t huggingclaw .# docker run -p 7860:7860 --env-file .env huggingclaw## π» Direct (without Docker):# npm install -g openclaw@latest# export $(cat .env | xargs)# bash start.sh## ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ# VERIFY YOUR SETUP# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ## After deployment, check:# 1. Logs for "π¦ HuggingClaw Gateway" banner# 2. Health endpoint: curl https://YOUR-SPACE-URL.hf.space/health# 3. Control UI: https://YOUR-SPACE-URL.hf.space# 4. (If Telegram) DM your bot to test## ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ8 unmodified lines91011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271 unmodified line1291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711728 unmodified lines# - Anthropic: sk-ant-v0-...# - OpenAI: sk-...# - Google: AIzaSy...# - OpenRouter: sk-or-v1-... (300+ models via single key)LLM_API_KEY=your_api_key_here# [REQUIRED] LLM model to use (format: provider/model-name)# Auto-detects provider from prefix β any provider is supported!# Provider IDs from OpenClaw docs: docs.openclaw.ai/concepts/model-providers## ββ Core Providers ββ## Anthropic (ANTHROPIC_API_KEY):# - anthropic/claude-opus-4-6# - anthropic/claude-sonnet-4-6# - anthropic/claude-sonnet-4-5# - anthropic/claude-haiku-4-5## OpenAI (OPENAI_API_KEY):# - openai/gpt-5.4-pro# - openai/gpt-5.4# - openai/gpt-5.4-mini# - openai/gpt-5.4-nano# - openai/gpt-4.1# - openai/gpt-4.1-mini## Google Gemini (GEMINI_API_KEY):# - google/gemini-3.1-pro-preview# - google/gemini-3-flash-preview# - google/gemini-2.5-pro# - google/gemini-2.5-flash## DeepSeek (DEEPSEEK_API_KEY):# - deepseek/deepseek-v3.2# - deepseek/deepseek-r1-0528# - deepseek/deepseek-r1## ββ OpenCode Providers ββ## OpenCode Zen β tested & verified models (OPENCODE_API_KEY):# - opencode/claude-opus-4-6# - opencode/gpt-5.4# Get key from: https://opencode.ai/auth## OpenCode Go β low-cost open models (OPENCODE_API_KEY):# - opencode-go/kimi-k2.5## ββ Gateway/Router Providers ββ## OpenRouter β 300+ models via single API key (OPENROUTER_API_KEY):# - openrouter/anthropic/claude-sonnet-4-6# - openrouter/openai/gpt-5.4# - openrouter/deepseek/deepseek-v3.2# - openrouter/meta-llama/llama-3.3-70b-instruct:free# Get key from: https://openrouter.ai## Kilo Gateway (KILOCODE_API_KEY):# - kilocode/anthropic/claude-opus-4.6## ββ Chinese/Asian Providers ββ## Z.ai / GLM (ZAI_API_KEY) β OpenClaw normalizes z-ai/z.ai β zai:# - zai/glm-5# - zai/glm-5-turbo# - zai/glm-4.7# - zai/glm-4.7-flash## Moonshot / Kimi (MOONSHOT_API_KEY):# - moonshot/kimi-k2.5# - moonshot/kimi-k2-thinking## MiniMax (MINIMAX_API_KEY):# - minimax/minimax-m2.7# - minimax/minimax-m2.5## Xiaomi / MiMo (XIAOMI_API_KEY):# - xiaomi/mimo-v2-pro# - xiaomi/mimo-v2-omni## Volcengine / Doubao (VOLCANO_ENGINE_API_KEY):# - volcengine/doubao-seed-1-8-251228# - volcengine/kimi-k2-5-260127## BytePlus β international (BYTEPLUS_API_KEY):# - byteplus/seed-1-8-251228## ββ Western Providers ββ## Mistral (MISTRAL_API_KEY):# - mistral/mistral-large-latest# - mistral/mistral-small-2603# - mistral/devstral-medium## xAI / Grok (XAI_API_KEY):# - xai/grok-4.20-beta# - xai/grok-4## NVIDIA (NVIDIA_API_KEY):# - nvidia/nemotron-3-super-120b-a12b## Groq (GROQ_API_KEY):# - groq/mixtral-8x7b-32768## Cohere (COHERE_API_KEY):# - cohere/command-a## Together (TOGETHER_API_KEY):# - together/meta-llama/llama-3.3-70b-instruct## Cerebras (CEREBRAS_API_KEY):# - cerebras/zai-glm-4.7## HuggingFace Inference (HUGGINGFACE_HUB_TOKEN):# - huggingface/deepseek-ai/DeepSeek-R1## Or any other OpenClaw-supported provider (format: provider/model-name)LLM_MODEL=anthropic/claude-sonnet-4-5# [REQUIRED] Gateway authentication token1 unmodified lineGATEWAY_TOKEN=your_gateway_token_here# ββ OPTIONAL: Telegram Integration ββ# Get bot token from: https://t.me/BotFatherTELEGRAM_BOT_TOKEN=your_bot_token_here# Single user ID (from https://t.me/userinfobot)TELEGRAM_USER_ID=123456789# Multiple user IDs (comma-separated for team access)# TELEGRAM_USER_IDS=123456789,987654321,555555555# ββ OPTIONAL: Workspace Backup to HF Dataset ββHF_USERNAME=your_hf_usernameHF_TOKEN=hf_your_token_here# Backup dataset name (auto-created if missing)# Default: huggingclaw-backupBACKUP_DATASET_NAME=huggingclaw-backup# Git commit identity for workspace syncsWORKSPACE_GIT_USER=openclaw@example.comWORKSPACE_GIT_NAME=OpenClaw Bot# ββ OPTIONAL: Background Services ββ# Keep-alive ping interval (seconds). Default: 300. Set 0 to disable.KEEP_ALIVE_INTERVAL=300# Workspace auto-sync interval (seconds). Default: 600.SYNC_INTERVAL=600# ββ OPTIONAL: Advanced ββ# Pin OpenClaw version. Default: latestOPENCLAW_VERSION=latest# Health endpoint port. Default: 7861HEALTH_PORT=7861# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ# QUICK START: Only 3 secrets required!# 1. LLM_API_KEY β From your LLM provider# 2. LLM_MODEL β Pick a model above# 3. GATEWAY_TOKEN β Run: openssl rand -hex 32# ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
117 unmodified lines11811912012112212312414 unmodified lines1391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692 unmodified lines2722732742752762772782792802812822832842852862872882892 unmodified lines292293294295296297117 unmodified lines## π€ LLM Provider SetupJust set `LLM_MODEL` with the correct provider prefix β **any provider is supported**! The provider is auto-detected from the model name. All model IDs sourced from [OpenRouter](https://openrouter.ai/models).### Anthropic (Claude)```14 unmodified linesLLM_API_KEY=AIzaSy...LLM_MODEL=google/gemini-2.5-flash```Models: `google/gemini-3.1-pro-preview` Β· `google/gemini-3.1-flash-lite-preview` Β· `google/gemini-2.5-pro` Β· `google/gemini-2.5-flash`### DeepSeek```LLM_API_KEY=sk-...LLM_MODEL=deepseek/deepseek-v3.2```Models: `deepseek/deepseek-v3.2` Β· `deepseek/deepseek-r1-0528` Β· `deepseek/deepseek-r1` Β· `deepseek/deepseek-chat-v3.1`Get key from: [DeepSeek Platform](https://platform.deepseek.com)### Qwen (Alibaba)```LLM_API_KEY=your_qwen_api_keyLLM_MODEL=qwen/qwen3-max```Models: `qwen/qwen3.6-plus-preview:free` (free!) Β· `qwen/qwen3-max` Β· `qwen/qwen3-coder` Β· `qwen/qwen3.5-397b-a17b` Β· `qwen/qwen3.5-35b-a3b`Get key from: [DashScope](https://dashscope.aliyun.com)### Z.ai (GLM)```LLM_API_KEY=your_zai_api_keyLLM_MODEL=z-ai/glm-5-turbo```Models: `z-ai/glm-5` Β· `z-ai/glm-5-turbo` Β· `z-ai/glm-4.7` Β· `z-ai/glm-4.7-flash` Β· `z-ai/glm-4.5-air:free` (free!)Get key from: [Z.ai](https://z.ai)### Moonshot (Kimi)```LLM_API_KEY=sk-...LLM_MODEL=moonshotai/kimi-k2.5```Models: `moonshotai/kimi-k2.5` Β· `moonshotai/kimi-k2` Β· `moonshotai/kimi-k2-thinking`Get key from: [Moonshot API](https://platform.moonshot.cn)### Mistral```LLM_API_KEY=your_mistral_api_keyLLM_MODEL=mistralai/mistral-large-2512```Models: `mistralai/mistral-large-2512` Β· `mistralai/mistral-medium-3.1` Β· `mistralai/mistral-small-2603` Β· `mistralai/devstral-medium` Β· `mistralai/codestral-2508`Get key from: [Mistral Console](https://console.mistral.ai)### 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` Β· `x-ai/grok-4.1-fast` Β· `x-ai/grok-4`Get key from: [xAI Console](https://console.x.ai)### Meta (Llama)```LLM_API_KEY=your_meta_api_keyLLM_MODEL=meta-llama/llama-4-maverick```Models: `meta-llama/llama-4-maverick` Β· `meta-llama/llama-4-scout` Β· `meta-llama/llama-3.3-70b-instruct:free` (free!)### MiniMax```LLM_API_KEY=your_minimax_api_keyLLM_MODEL=minimax/minimax-m2.7```Models: `minimax/minimax-m2.7` Β· `minimax/minimax-m2.5` Β· `minimax/minimax-m2.5:free` (free!)Get key from: [MiniMax Platform](https://api.minimaxi.com)### 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` (free!)Get key from: [NVIDIA API](https://api.nvidia.com)### Cohere```LLM_API_KEY=your_cohere_api_keyLLM_MODEL=cohere/command-a```Models: `cohere/command-a` Β· `cohere/command-r-plus-08-2024`Get key from: [Cohere Dashboard](https://dashboard.cohere.com)### Perplexity```LLM_API_KEY=your_perplexity_api_keyLLM_MODEL=perplexity/sonar-pro```Models: `perplexity/sonar-deep-research` Β· `perplexity/sonar-pro` Β· `perplexity/sonar-reasoning-pro`Get key from: [Perplexity API](https://www.perplexity.ai/settings/api)### 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) Β· `xiaomi/mimo-v2-flash`### 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: [Volcengine](https://www.volcengine.com)### Baidu (ERNIE)```LLM_API_KEY=your_baidu_api_keyLLM_MODEL=baidu/ernie-4.5-300b-a47b```Models: `baidu/ernie-4.5-300b-a47b` Β· `baidu/ernie-4.5-21b-a3b`### Inception (Mercury β ultra-fast)```LLM_API_KEY=your_inception_api_keyLLM_MODEL=inception/mercury-2```Models: `inception/mercury-2` (1000+ tok/sec!) Β· `inception/mercury-coder`Get key from: [Inception Labs](https://www.inceptionlabs.ai)### Amazon (Nova)```LLM_API_KEY=your_amazon_api_keyLLM_MODEL=amazon/nova-premier-v1```Models: `amazon/nova-premier-v1` Β· `amazon/nova-pro-v1` Β· `amazon/nova-lite-v1`### OpenRouter (300+ models via single API key)```2 unmodified lines```With OpenRouter, you can access **every model above** with a single API key! Just prefix with `openrouter/`:- `openrouter/anthropic/claude-sonnet-4-6` β Anthropic Claude- `openrouter/openai/gpt-5.4` β OpenAI (1M context)- `openrouter/deepseek/deepseek-v3.2` β DeepSeek V3.2- `openrouter/google/gemini-2.5-flash` β Google Gemini- `openrouter/qwen/qwen3.6-plus-preview:free` β Qwen (free!)- `openrouter/x-ai/grok-4.20-beta` β xAI Grok- `openrouter/meta-llama/llama-3.3-70b-instruct:free` β Llama (free!)- `openrouter/mistralai/mistral-large-2512` β Mistral Large- `openrouter/moonshotai/kimi-k2.5` β Moonshot Kimi- `openrouter/z-ai/glm-5-turbo` β Z.ai GLMGet key from: [OpenRouter.ai](https://openrouter.ai) Β· [Full model list](https://openrouter.ai/models)### Any Other ProviderHuggingClaw supports **any LLM provider** that OpenClaw supports. Just use:```2 unmodified lines```The provider prefix is auto-detected and mapped to the appropriate environment variable.---## π± Telegram Setup117 unmodified lines11811912012112212312414 unmodified lines1391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512 unmodified lines2542552562572582592602612622632642652662672682692702712722732742752 unmodified lines278279280281282283284285117 unmodified lines## π€ LLM Provider SetupJust set `LLM_MODEL` with the correct provider prefix β **any provider is supported**! The provider is auto-detected from the model name. All provider IDs from [OpenClaw docs](https://docs.openclaw.ai/concepts/model-providers).### Anthropic (Claude)```14 unmodified linesLLM_API_KEY=AIzaSy...LLM_MODEL=google/gemini-2.5-flash```Models: `google/gemini-3.1-pro-preview` Β· `google/gemini-3-flash-preview` Β· `google/gemini-2.5-pro` Β· `google/gemini-2.5-flash`### DeepSeek```LLM_API_KEY=sk-...LLM_MODEL=deepseek/deepseek-v3.2```Models: `deepseek/deepseek-v3.2` Β· `deepseek/deepseek-r1-0528` Β· `deepseek/deepseek-r1`Get key from: [DeepSeek Platform](https://platform.deepseek.com)### OpenCode Zen (tested & verified models)```LLM_API_KEY=your_opencode_api_keyLLM_MODEL=opencode/claude-opus-4-6```Models: `opencode/claude-opus-4-6` Β· `opencode/gpt-5.4`Get key from: [OpenCode.ai](https://opencode.ai/auth)### OpenCode Go (low-cost open models)```LLM_API_KEY=your_opencode_api_keyLLM_MODEL=opencode-go/kimi-k2.5```Get key from: [OpenCode.ai](https://opencode.ai/auth)### Z.ai (GLM)```LLM_API_KEY=your_zai_api_keyLLM_MODEL=zai/glm-5```Models: `zai/glm-5` Β· `zai/glm-5-turbo` Β· `zai/glm-4.7` Β· `zai/glm-4.7-flash`Get key from: [Z.ai](https://z.ai) Β· Note: `z-ai/` and `z.ai/` prefixes auto-normalize to `zai/`### Moonshot (Kimi)```LLM_API_KEY=sk-...LLM_MODEL=moonshot/kimi-k2.5```Models: `moonshot/kimi-k2.5` Β· `moonshot/kimi-k2-thinking`Get key from: [Moonshot API](https://platform.moonshot.cn)### Mistral```LLM_API_KEY=your_mistral_api_keyLLM_MODEL=mistral/mistral-large-latest```Models: `mistral/mistral-large-latest` Β· `mistral/mistral-small-2603` Β· `mistral/devstral-medium` Β· `mistral/codestral-2508`Get key from: [Mistral Console](https://console.mistral.ai)### xAI (Grok)```LLM_API_KEY=your_xai_api_keyLLM_MODEL=xai/grok-4.20-beta```Models: `xai/grok-4.20-beta` Β· `xai/grok-4` Β· `xai/grok-4.1-fast`Get key from: [xAI Console](https://console.x.ai)### MiniMax```LLM_API_KEY=your_minimax_api_keyLLM_MODEL=minimax/minimax-m2.7```Models: `minimax/minimax-m2.7` Β· `minimax/minimax-m2.5`Get key from: [MiniMax Platform](https://platform.minimax.io)### NVIDIA```LLM_API_KEY=your_nvidia_api_keyLLM_MODEL=nvidia/nemotron-3-super-120b-a12b```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` Β· `xiaomi/mimo-v2-omni`### Volcengine (Doubao / ByteDance)```LLM_API_KEY=your_volcengine_api_keyLLM_MODEL=volcengine/doubao-seed-1-8-251228```Models: `volcengine/doubao-seed-1-8-251228` Β· `volcengine/kimi-k2-5-260127` Β· `volcengine/glm-4-7-251222`Get key from: [Volcengine](https://www.volcengine.com)### Groq```LLM_API_KEY=your_groq_api_keyLLM_MODEL=groq/mixtral-8x7b-32768```Get key from: [Groq Console](https://console.groq.com)### Cohere```LLM_API_KEY=your_cohere_api_keyLLM_MODEL=cohere/command-a```Get key from: [Cohere Dashboard](https://dashboard.cohere.com)### HuggingFace Inference```LLM_API_KEY=hf_your_tokenLLM_MODEL=huggingface/deepseek-ai/DeepSeek-R1```Get key from: [HuggingFace Tokens](https://huggingface.co/settings/tokens)### OpenRouter (300+ models via single API key)```2 unmodified lines```With OpenRouter, you can access **every model above** with a single API key! Just prefix with `openrouter/`:- `openrouter/anthropic/claude-sonnet-4-6` β Anthropic Claude- `openrouter/openai/gpt-5.4` β OpenAI- `openrouter/deepseek/deepseek-v3.2` β DeepSeek- `openrouter/google/gemini-2.5-flash` β Google Gemini- `openrouter/meta-llama/llama-3.3-70b-instruct:free` β Llama (free!)- `openrouter/moonshotai/kimi-k2.5` β Moonshot Kimi- `openrouter/z-ai/glm-5-turbo` β Z.ai GLMGet key from: [OpenRouter.ai](https://openrouter.ai) Β· [Full model list](https://openrouter.ai/models)### Kilo Gateway```LLM_API_KEY=your_kilocode_api_keyLLM_MODEL=kilocode/anthropic/claude-opus-4.6```Get key from: [Kilo.ai](https://kilo.ai)### Any Other ProviderHuggingClaw supports **any LLM provider** that OpenClaw supports. Just use:```2 unmodified lines```The provider prefix is auto-detected and mapped to the appropriate environment variable.Full provider list: [OpenClaw Model Providers](https://docs.openclaw.ai/concepts/model-providers) Β· [OpenCode Providers](https://opencode.ai/docs/providers)---## π± Telegram Setup
42 unmodified lines434445464748495051525354555657585960616263646566676869707172737475767778798042 unmodified linesLLM_PROVIDER=$(echo "$LLM_MODEL" | cut -d'/' -f1)# Map provider prefix to the correct API key environment variable# Based on actual OpenRouter model IDs: https://openrouter.ai/api/v1/modelscase "$LLM_PROVIDER" inopenrouter) export OPENROUTER_API_KEY="$LLM_API_KEY" ;;anthropic) export ANTHROPIC_API_KEY="$LLM_API_KEY" ;;openai) export OPENAI_API_KEY="$LLM_API_KEY" ;;google) export GOOGLE_API_KEY="$LLM_API_KEY" ;;deepseek) export DEEPSEEK_API_KEY="$LLM_API_KEY" ;;mistralai) export MISTRAL_API_KEY="$LLM_API_KEY" ;;qwen) export QWEN_API_KEY="$LLM_API_KEY" ;;x-ai) export XAI_API_KEY="$LLM_API_KEY" ;;meta-llama) export META_API_KEY="$LLM_API_KEY" ;;minimax) export MINIMAX_API_KEY="$LLM_API_KEY" ;;z-ai) export ZAI_API_KEY="$LLM_API_KEY" ;;moonshotai) export MOONSHOT_API_KEY="$LLM_API_KEY" ;;nvidia) export NVIDIA_API_KEY="$LLM_API_KEY" ;;cohere) export COHERE_API_KEY="$LLM_API_KEY" ;;perplexity) export PERPLEXITY_API_KEY="$LLM_API_KEY" ;;bytedance-seed) export BYTEDANCE_API_KEY="$LLM_API_KEY" ;;xiaomi) export XIAOMI_API_KEY="$LLM_API_KEY" ;;amazon) export AMAZON_API_KEY="$LLM_API_KEY" ;;reka|rekaai) export REKA_API_KEY="$LLM_API_KEY" ;;inception) export INCEPTION_API_KEY="$LLM_API_KEY" ;;kwaipilot) export KWAIPILOT_API_KEY="$LLM_API_KEY" ;;ai21) export AI21_API_KEY="$LLM_API_KEY" ;;baidu) export BAIDU_API_KEY="$LLM_API_KEY" ;;tencent) export TENCENT_API_KEY="$LLM_API_KEY" ;;stepfun) export STEPFUN_API_KEY="$LLM_API_KEY" ;;inflection) export INFLECTION_API_KEY="$LLM_API_KEY" ;;writer) export WRITER_API_KEY="$LLM_API_KEY" ;;upstage) export UPSTAGE_API_KEY="$LLM_API_KEY" ;;*)# Fallback: export as ANTHROPIC (default) and also as genericexport ANTHROPIC_API_KEY="$LLM_API_KEY";;esac42 unmodified lines43444546474849505152535455565758596061626364656667686970717273747576777879808182838485868742 unmodified linesLLM_PROVIDER=$(echo "$LLM_MODEL" | cut -d'/' -f1)# Map provider prefix to the correct API key environment variable# Based on OpenClaw provider system: /usr/local/lib/node_modules/openclaw/docs/concepts/model-providers.md# Note: OpenClaw normalizes some prefixes (z-ai β zai, z.ai β zai, etc.)case "$LLM_PROVIDER" in# ββ Core Providers ββanthropic) export ANTHROPIC_API_KEY="$LLM_API_KEY" ;;openai|openai-codex) export OPENAI_API_KEY="$LLM_API_KEY" ;;google|google-vertex) export GEMINI_API_KEY="$LLM_API_KEY" ;;deepseek) export DEEPSEEK_API_KEY="$LLM_API_KEY" ;;# ββ OpenCode Providers ββopencode) export OPENCODE_API_KEY="$LLM_API_KEY" ;;opencode-go) export OPENCODE_API_KEY="$LLM_API_KEY" ;;# ββ Gateway/Router Providers ββopenrouter) export OPENROUTER_API_KEY="$LLM_API_KEY" ;;kilocode) export KILOCODE_API_KEY="$LLM_API_KEY" ;;vercel-ai-gateway) export AI_GATEWAY_API_KEY="$LLM_API_KEY" ;;# ββ Chinese/Asian Providers ββzai|z-ai|z.ai|zhipu) export ZAI_API_KEY="$LLM_API_KEY" ;;moonshot) export MOONSHOT_API_KEY="$LLM_API_KEY" ;;kimi-coding) export KIMI_API_KEY="$LLM_API_KEY" ;;minimax) export MINIMAX_API_KEY="$LLM_API_KEY" ;;qwen|modelstudio) export MODELSTUDIO_API_KEY="$LLM_API_KEY" ;;xiaomi) export XIAOMI_API_KEY="$LLM_API_KEY" ;;volcengine|volcengine-plan) export VOLCANO_ENGINE_API_KEY="$LLM_API_KEY" ;;byteplus|byteplus-plan) export BYTEPLUS_API_KEY="$LLM_API_KEY" ;;qianfan) export QIANFAN_API_KEY="$LLM_API_KEY" ;;# ββ Western Providers ββmistral|mistralai) export MISTRAL_API_KEY="$LLM_API_KEY" ;;xai|x-ai) export XAI_API_KEY="$LLM_API_KEY" ;;nvidia) export NVIDIA_API_KEY="$LLM_API_KEY" ;;cohere) export COHERE_API_KEY="$LLM_API_KEY" ;;groq) export GROQ_API_KEY="$LLM_API_KEY" ;;together) export TOGETHER_API_KEY="$LLM_API_KEY" ;;huggingface) export HUGGINGFACE_HUB_TOKEN="$LLM_API_KEY" ;;cerebras) export CEREBRAS_API_KEY="$LLM_API_KEY" ;;venice) export VENICE_API_KEY="$LLM_API_KEY" ;;synthetic) export SYNTHETIC_API_KEY="$LLM_API_KEY" ;;github-copilot) export COPILOT_GITHUB_TOKEN="$LLM_API_KEY" ;;# ββ Fallback: Anthropic (default) ββ*)export ANTHROPIC_API_KEY="$LLM_API_KEY";;esac
.env.example+89-160
README.md+55-67
start.sh+37-30