Provider Auto-Detection
Nanobot automatically detects the correct provider based on your model name:provider field can be:
"auto"— Auto-detect from model name (recommended)- Provider name — Force a specific provider (e.g.
"openrouter","anthropic")
Provider Configuration
Each provider has three common fields:API key for authentication. Required for all providers except OAuth-based ones.
Custom API base URL. Overrides the default endpoint.
Custom HTTP headers to include in API requests (e.g. for gateway authentication).
Available Providers
Gateway Providers
Gateway providers can route any model and provide access to multiple LLM backends.OpenRouter
OpenRouter
Global LLM gateway with access to all major models.Configuration:Get API Key: openrouter.ai/keysDefault API Base:
https://openrouter.ai/api/v1Model Prefix: openrouter/ (auto-added)Features:- Access to 200+ models
- Prompt caching support
- Auto-detected by
sk-or-key prefix
AiHubMix
AiHubMix
OpenAI-compatible API gateway.Configuration:Get API Key: aihubmix.comDefault API Base:
https://aihubmix.com/v1Note: Strips existing model prefixes before routing (e.g. anthropic/claude-3 → claude-3 → openai/claude-3).SiliconFlow (硅基流动)
SiliconFlow (硅基流动)
Chinese LLM gateway with OpenAI-compatible API.Configuration:Get API Key: siliconflow.cnDefault API Base:
https://api.siliconflow.cn/v1VolcEngine (火山引擎)
VolcEngine (火山引擎)
ByteDance’s LLM gateway.Configuration:Get API Key: volcengine.comDefault API Base:
https://ark.cn-beijing.volces.com/api/v3Coding Plan: For VolcEngine coding plan, set "apiBase": "https://ark.cn-beijing.volces.com/api/coding/v3"Standard Providers
Direct connections to individual LLM providers.Anthropic
Anthropic
Direct access to Claude models.Configuration:Get API Key: console.anthropic.comKeywords:
anthropic, claudeFeatures:- Native Claude models
- Prompt caching support
- No prefix required
OpenAI
OpenAI
DeepSeek
DeepSeek
DeepSeek models (China-based).Configuration:Get API Key: platform.deepseek.comModel Prefix:
deepseek/ (auto-added)Keywords: deepseekGemini
Gemini
Google’s Gemini models.Configuration:Get API Key: aistudio.google.comModel Prefix:
gemini/ (auto-added)Moonshot (Kimi)
Moonshot (Kimi)
Moonshot AI’s Kimi models.Configuration:Get API Key: platform.moonshot.cnModel Prefix:
moonshot/ (auto-added)Default API Base: https://api.moonshot.ai/v1 (international) or https://api.moonshot.cn/v1 (China)Note: Kimi K2.5 requires temperature >= 1.0 (enforced automatically).Zhipu AI (GLM)
Zhipu AI (GLM)
Zhipu AI’s GLM models.Configuration:Get API Key: open.bigmodel.cnModel Prefix:
zai/ (auto-added)Keywords: zhipu, glm, zaiCoding Plan: For Zhipu coding plan, set "apiBase": "https://open.bigmodel.cn/api/coding/paas/v4"DashScope (Qwen)
DashScope (Qwen)
Alibaba Cloud’s Qwen models.Configuration:Get API Key: dashscope.console.aliyun.comModel Prefix:
dashscope/ (auto-added)Keywords: qwen, dashscopeMiniMax
MiniMax
MiniMax models.Configuration:Get API Key: platform.minimaxi.comDefault API Base:
https://api.minimax.io/v1 (international) or https://api.minimaxi.com/v1 (China)Note: For mainland China API, set "apiBase": "https://api.minimaxi.com/v1"Groq
Groq
High-speed inference for voice transcription (Whisper) and LLM.Configuration:Get API Key: console.groq.comUse Case: Mainly used for free Whisper voice transcription in Telegram/Discord.
OAuth Providers
Providers that use OAuth authentication instead of API keys.OpenAI Codex
OpenAI Codex
ChatGPT Codex models via OAuth (requires ChatGPT Plus/Pro).Login:Configuration:Requirements: ChatGPT Plus or Pro subscription
GitHub Copilot
GitHub Copilot
GitHub Copilot models via OAuth.Login:Configuration:
Local/Self-Hosted
vLLM (Local)
vLLM (Local)
Self-hosted models via vLLM or any OpenAI-compatible server.Start Server:Configuration:Note: API key can be any non-empty string for local servers.
Custom Provider
Custom Provider
Connect to any OpenAI-compatible endpoint (LM Studio, llama.cpp, Together AI, Fireworks, Azure OpenAI).Configuration:Note: Model name is passed as-is without LiteLLM transformation. For local servers without authentication, set
"apiKey": "no-key".Example: Multi-Provider Setup
- Uses OpenRouter as the primary LLM gateway
- Has Anthropic configured for direct Claude access
- Enables Groq for voice transcription
Provider Selection Priority
- Explicit provider prefix in model name:
github-copilot/modelalways uses GitHub Copilot - Model name keywords:
claude-opusauto-matches Anthropic - Gateway detection: API key prefix (
sk-or-) or base URL keyword - Fallback: First configured provider with an API key
Next Steps
Channels
Connect nanobot to chat platforms
Security
Configure access controls and sandboxing