diff --git a/providers/commandcode/logo.svg b/providers/commandcode/logo.svg new file mode 100644 index 00000000000..79920d9572b --- /dev/null +++ b/providers/commandcode/logo.svg @@ -0,0 +1,5 @@ + + CommandCode + + + diff --git a/providers/commandcode/models/MiniMaxAI/MiniMax-M3.toml b/providers/commandcode/models/MiniMaxAI/MiniMax-M3.toml new file mode 100644 index 00000000000..8c9786022ba --- /dev/null +++ b/providers/commandcode/models/MiniMaxAI/MiniMax-M3.toml @@ -0,0 +1,21 @@ +# Pricing: https://commandcode.ai/models (accessed 2026-09-12) +# Model ID is case-sensitive on this gateway: "MiniMaxAI/MiniMax-M3" (verified +# via POST /provider/v1/chat/completions; lowercase "minimax/minimax-m3" is rejected). +# A 50%-off deal applies automatically: input $0.30 / output $1.20 / +# cache_read $0.06 per 1M tokens (regular $0.60 / $2.40 / $0.12). +# Toggle mirrors the MiniMax API surface served through this gateway. +base_model = "minimax/MiniMax-M3" + +[[reasoning_options]] +type = "toggle" + +[cost] +input = 0.30 +output = 1.20 +cache_read = 0.06 + +[[cost.tiers]] +tier = { size = 512_000 } +input = 0.60 +output = 2.40 +cache_read = 0.12 diff --git a/providers/commandcode/models/Qwen/Qwen3.8-Max.toml b/providers/commandcode/models/Qwen/Qwen3.8-Max.toml new file mode 100644 index 00000000000..35ade8131b1 --- /dev/null +++ b/providers/commandcode/models/Qwen/Qwen3.8-Max.toml @@ -0,0 +1,21 @@ +# Pricing: https://commandcode.ai/models (accessed 2026-09-12) +# Model ID is case-sensitive on this gateway: "Qwen/Qwen3.8-Max" (verified +# via POST /provider/v1/chat/completions; lowercase "alibaba/qwen3.8-max" is rejected). +# Toggle: enable_thinking true|false (hybrid) +# Effort: reasoning_effort = low|medium|xhigh (high accepted as alias) +# Budget: thinking_budget (0..262144) cannot be combined with reasoning_effort +# Controls mirror the Alibaba Model Studio API surface served through this gateway. +base_model = "alibaba/qwen3.8-max" +reasoning_options = [ + { type = "toggle" }, + { type = "effort", values = ["low", "medium", "xhigh"] }, + { type = "budget_tokens", min = 0, max = 262_144 }, +] + +[interleaved] +field = "reasoning_content" + +[cost] +input = 2.00 +output = 6.00 +cache_read = 0.25 diff --git a/providers/commandcode/models/claude-sonnet-5.toml b/providers/commandcode/models/claude-sonnet-5.toml new file mode 100644 index 00000000000..6075b1698cb --- /dev/null +++ b/providers/commandcode/models/claude-sonnet-5.toml @@ -0,0 +1,23 @@ +# Pricing: https://commandcode.ai/models (accessed 2026-09-12) +# Model ID on this gateway has no lab prefix: "claude-sonnet-5" (verified: +# /chat/completions rejects Claude models and points to /messages). +# Claude models are served on this gateway's Anthropic Messages endpoint +# (/provider/v1/messages), so this model overrides the provider wire. +# Effort levels mirror the Anthropic API surface. +base_model = "anthropic/claude-sonnet-5" + +[[reasoning_options]] +type = "toggle" + +[[reasoning_options]] +type = "effort" +values = ["low", "medium", "high", "xhigh", "max"] + +[cost] +input = 2.00 +output = 10.00 +cache_read = 0.20 + +[provider] +npm = "@ai-sdk/anthropic" +api = "https://api.commandcode.ai/provider/v1" diff --git a/providers/commandcode/models/deepseek/deepseek-v4-flash.toml b/providers/commandcode/models/deepseek/deepseek-v4-flash.toml new file mode 100644 index 00000000000..0cfba73c75e --- /dev/null +++ b/providers/commandcode/models/deepseek/deepseek-v4-flash.toml @@ -0,0 +1,20 @@ +# Pricing: https://commandcode.ai/models (accessed 2026-09-12) +# Toggle: thinking.type = enabled|disabled +# Effort: reasoning_effort = low|high|max +# Controls mirror the DeepSeek API surface served through this gateway. +base_model = "deepseek/deepseek-v4-flash" + +[[reasoning_options]] +type = "toggle" + +[[reasoning_options]] +type = "effort" +values = ["low", "high", "max"] + +[interleaved] +field = "reasoning_content" + +[cost] +input = 0.15 +output = 0.60 +cache_read = 0.003 diff --git a/providers/commandcode/models/gpt-5.6-sol.toml b/providers/commandcode/models/gpt-5.6-sol.toml new file mode 100644 index 00000000000..f6f2fc8e9da --- /dev/null +++ b/providers/commandcode/models/gpt-5.6-sol.toml @@ -0,0 +1,11 @@ +# Pricing: https://commandcode.ai/models (accessed 2026-09-12) +# Model ID on this gateway has no lab prefix: "gpt-5.6-sol" (verified via +# POST /provider/v1/chat/completions; "openai/gpt-5.6-sol" is rejected). +# Effort levels mirror the OpenAI API surface served through this gateway. +base_model = "openai/gpt-5.6-sol" +reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high", "xhigh", "max"] }] + +[cost] +input = 5.00 +output = 30.00 +cache_read = 0.50 diff --git a/providers/commandcode/models/moonshotai/kimi-k3.toml b/providers/commandcode/models/moonshotai/kimi-k3.toml new file mode 100644 index 00000000000..a253f748398 --- /dev/null +++ b/providers/commandcode/models/moonshotai/kimi-k3.toml @@ -0,0 +1,17 @@ +# Pricing: https://commandcode.ai/models (accessed 2026-09-12) +# Toggle: thinking.type = enabled|disabled|adaptive +# Effort: output_config.effort = low|high|max +# Controls mirror the Moonshot AI platform API surface served through this gateway. +base_model = "moonshotai/kimi-k3" + +[[reasoning_options]] +type = "toggle" + +[[reasoning_options]] +type = "effort" +values = ["low", "high", "max"] + +[cost] +input = 3.00 +output = 15.00 +cache_read = 0.30 diff --git a/providers/commandcode/models/zai-org/GLM-5.3.toml b/providers/commandcode/models/zai-org/GLM-5.3.toml new file mode 100644 index 00000000000..32d25c0d95d --- /dev/null +++ b/providers/commandcode/models/zai-org/GLM-5.3.toml @@ -0,0 +1,18 @@ +# Pricing: https://commandcode.ai/models (accessed 2026-09-12) +# Model ID is case-sensitive on this gateway: "zai-org/GLM-5.3" (verified +# via POST /provider/v1/chat/completions; lowercase "zhipuai/glm-5.3" is rejected). +# Effort: low|high|max with default max (thinking cannot be disabled on GLM-5.3). +# Controls mirror the Zhipu BigModel API surface served through this gateway. +base_model = "zhipuai/glm-5.3" + +[[reasoning_options]] +type = "effort" +values = ["low", "high", "max"] + +[interleaved] +field = "reasoning_content" + +[cost] +input = 1.40 +output = 4.40 +cache_read = 0.26 diff --git a/providers/commandcode/provider.toml b/providers/commandcode/provider.toml new file mode 100644 index 00000000000..f8b30753c7b --- /dev/null +++ b/providers/commandcode/provider.toml @@ -0,0 +1,7 @@ +# Pricing: https://commandcode.ai/models (accessed 2026-09-12) +# API: https://commandcode.ai/docs/provider +name = "CommandCode" +env = ["COMMANDCODE_API_KEY"] +npm = "@ai-sdk/openai-compatible" +api = "https://api.commandcode.ai/provider/v1" +doc = "https://commandcode.ai/docs/provider"