codev / src /server /config /providerPresets.json
chenbhao's picture
feat: add nvidia provider
eb16a76
Raw
History Blame Contribute Delete
8.09 kB
[
{
"id": "official",
"name": "Claude Official",
"baseUrl": "",
"apiFormat": "anthropic",
"defaultModels": {
"main": "",
"haiku": "",
"sonnet": "",
"opus": ""
},
"needsApiKey": false,
"websiteUrl": "https://www.anthropic.com/claude-code"
},
{
"id": "deepseek",
"name": "DeepSeek",
"baseUrl": "https://api.deepseek.com/anthropic",
"apiFormat": "anthropic",
"defaultModels": {
"main": "deepseek-v4-pro",
"haiku": "deepseek-v4-flash",
"sonnet": "deepseek-v4-pro",
"opus": "deepseek-v4-pro"
},
"needsApiKey": true,
"websiteUrl": "https://platform.deepseek.com",
"apiKeyUrl": "https://platform.deepseek.com/api_keys",
"authStrategy": "auth_token",
"defaultEnv": {
"ANTHROPIC_DEFAULT_HAIKU_MODEL_SUPPORTED_CAPABILITIES": "thinking,effort,adaptive_thinking,max_effort",
"ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES": "thinking,effort,adaptive_thinking,max_effort",
"ANTHROPIC_DEFAULT_OPUS_MODEL_SUPPORTED_CAPABILITIES": "thinking,effort,adaptive_thinking,max_effort"
},
"modelContextWindows": {
"deepseek-v4-pro": 1000000,
"deepseek-v4-flash": 1000000,
"deepseek-chat": 1000000,
"deepseek-reasoner": 1000000
}
},
{
"id": "zhipuglm",
"name": "Zhipu GLM",
"baseUrl": "https://open.bigmodel.cn/api/anthropic",
"apiFormat": "anthropic",
"defaultModels": {
"main": "glm-5.1",
"haiku": "glm-4.5-air",
"sonnet": "glm-5-turbo",
"opus": "glm-5.1"
},
"needsApiKey": true,
"websiteUrl": "https://open.bigmodel.cn",
"apiKeyUrl": "https://www.bigmodel.cn/invite?icode=d41B2qi8Z5xNwTGLNPPF3OZLO2QH3C0EBTSr%2BArzMw4%3D",
"promoText": "智谱 GLM 为 cc-haha 用户准备了专属邀请福利,使用此链接注册后可领取新用户权益。",
"authStrategy": "auth_token",
"defaultEnv": {
"CC_HAHA_SEND_DISABLED_THINKING": "1"
},
"modelContextWindows": {
"glm-5.1": 200000,
"glm-5-turbo": 200000,
"glm-4.5-air": 128000
}
},
{
"id": "kimi",
"name": "Kimi",
"baseUrl": "https://api.kimi.com/coding",
"apiFormat": "anthropic",
"defaultModels": {
"main": "kimi-k2.6",
"haiku": "kimi-k2.6",
"sonnet": "kimi-k2.6",
"opus": "kimi-k2.6"
},
"needsApiKey": true,
"websiteUrl": "https://platform.moonshot.cn",
"apiKeyUrl": "https://platform.kimi.com/console/api-keys",
"authStrategy": "auth_token",
"defaultEnv": {
"CC_HAHA_SEND_DISABLED_THINKING": "1"
},
"modelContextWindows": {
"kimi-k2.6": 262144,
"kimi-k2.5": 262144,
"kimi-k2-0905-preview": 262144,
"kimi-k2-turbo-preview": 262144,
"kimi-k2-thinking": 262144,
"kimi-k2-thinking-turbo": 262144
}
},
{
"id": "minimax",
"name": "MiniMax",
"baseUrl": "https://api.minimaxi.com/anthropic",
"apiFormat": "anthropic",
"defaultModels": {
"main": "MiniMax-M2.7",
"haiku": "MiniMax-M2.7",
"sonnet": "MiniMax-M2.7",
"opus": "MiniMax-M2.7"
},
"needsApiKey": true,
"websiteUrl": "https://platform.minimaxi.com",
"apiKeyUrl": "https://platform.minimaxi.com/subscribe/token-plan?code=1TG2Cseab2&source=link",
"authStrategy": "auth_token",
"modelContextWindows": {
"MiniMax-M2.7": 204800,
"MiniMax-M2.7-highspeed": 204800,
"MiniMax-M2.5": 204800,
"MiniMax-M2.5-highspeed": 204800,
"MiniMax-M2.1": 204800,
"MiniMax-M2.1-highspeed": 204800,
"MiniMax-M2": 204800
}
},
{
"id": "jiekouai",
"name": "接口AI",
"baseUrl": "https://api.jiekou.ai/anthropic",
"apiFormat": "anthropic",
"defaultModels": {
"main": "claude-sonnet-4-6",
"haiku": "claude-haiku-4-5-20251001",
"sonnet": "claude-sonnet-4-6",
"opus": "claude-opus-4-7"
},
"needsApiKey": true,
"websiteUrl": "https://jiekou.ai",
"apiKeyUrl": "https://jiekou.ai/referral?invited_code=OBNU3K",
"promoText": "接口AI为 cc-haha 的用户提供官方资源与稳定高性能体验,订阅包价格为官方 8 折;绑定 GitHub 后还可领取 3 美元优惠券。",
"featured": true,
"authStrategy": "auth_token",
"defaultEnv": {
"ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES": "none"
},
"modelContextWindows": {
"claude-sonnet-4-6": 1000000,
"claude-haiku-4-5-20251001": 200000,
"claude-haiku-4-5": 200000,
"claude-opus-4-7": 1000000
}
},
{
"id": "shengsuanyun",
"name": "胜算云",
"baseUrl": "https://router.shengsuanyun.com/api",
"apiFormat": "anthropic",
"defaultModels": {
"main": "anthropic/claude-sonnet-4.6",
"haiku": "anthropic/claude-haiku-4.5:thinking",
"sonnet": "anthropic/claude-sonnet-4.6",
"opus": "anthropic/claude-opus-4.7"
},
"needsApiKey": true,
"websiteUrl": "https://www.shengsuanyun.com",
"apiKeyUrl": "https://www.shengsuanyun.com/?from=CH_LEJ88KWR",
"promoText": "胜算云为 cc-haha 的用户提供了特别福利,使用此链接注册的新用户可获 10 元模力及首充 10% 赠送!",
"featured": true,
"authStrategy": "auth_token",
"defaultEnv": {
"API_TIMEOUT_MS": "3000000",
"CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC": "1",
"ANTHROPIC_DEFAULT_SONNET_MODEL_SUPPORTED_CAPABILITIES": "none"
},
"modelContextWindows": {
"anthropic/claude-sonnet-4.6": 1000000,
"anthropic/claude-haiku-4.5:thinking": 200000,
"anthropic/claude-opus-4.7": 1000000
}
},
{
"id": "lmstudio",
"name": "LM Studio",
"baseUrl": "http://localhost:1234",
"apiFormat": "anthropic",
"defaultModels": {
"main": "qwen/qwen3.6-27b",
"haiku": "qwen/qwen3.6-27b",
"sonnet": "qwen/qwen3.6-27b",
"opus": "qwen/qwen3.6-27b"
},
"needsApiKey": false,
"websiteUrl": "https://lmstudio.ai/docs/integrations/claude-code",
"promoText": "LM Studio 使用 Anthropic 兼容协议,Base URL 填 http://localhost:1234,不要追加 /v1。Claude Code 的提示词、工具和 Skill 会占用较多上下文,请在本地模型设置里把 Context Window 调大,建议至少 200K。",
"authStrategy": "auth_token_empty_api_key",
"defaultEnv": {
"ANTHROPIC_AUTH_TOKEN": "lmstudio"
}
},
{
"id": "ollama",
"name": "Ollama",
"baseUrl": "http://localhost:11434",
"apiFormat": "anthropic",
"defaultModels": {
"main": "qwen3.6:27b",
"haiku": "qwen3.6:27b",
"sonnet": "qwen3.6:27b",
"opus": "qwen3.6:27b"
},
"needsApiKey": false,
"websiteUrl": "https://docs.ollama.com/integrations/claude-code",
"promoText": "Ollama 使用 Anthropic 兼容协议,Base URL 填 http://localhost:11434,不要追加 /v1。Claude Code 的提示词、工具和 Skill 会占用较多上下文,请在本地模型设置里把 Context Window 调大,建议至少 200K。",
"authStrategy": "auth_token_empty_api_key",
"defaultEnv": {
"ANTHROPIC_AUTH_TOKEN": "ollama"
}
},
{
"id": "nvidia",
"name": "NVIDIA NIM",
"baseUrl": "https://integrate.api.nvidia.com/v1",
"apiFormat": "openai_chat",
"defaultModels": {
"main": "nvidia/llama-3.1-nemotron-70b-instruct",
"haiku": "nvidia/llama-3.1-nemotron-70b-instruct",
"sonnet": "nvidia/llama-3.1-nemotron-70b-instruct",
"opus": "nvidia/llama-3.1-nemotron-70b-instruct"
},
"needsApiKey": true,
"websiteUrl": "https://build.nvidia.com",
"apiKeyUrl": "https://build.nvidia.com",
"authStrategy": "api_key",
"defaultEnv": {
"NVIDIA_BASE_URL": "https://integrate.api.nvidia.com/v1"
}
},
{
"id": "custom",
"name": "Custom",
"baseUrl": "",
"apiFormat": "anthropic",
"defaultModels": {
"main": "",
"haiku": "",
"sonnet": "",
"opus": ""
},
"needsApiKey": true,
"websiteUrl": "",
"authStrategy": "auth_token"
}
]