diff --git a/providers/coderplan/logo.svg b/providers/coderplan/logo.svg new file mode 100644 index 00000000000..d644b74abd6 --- /dev/null +++ b/providers/coderplan/logo.svg @@ -0,0 +1,8 @@ + + + + + + $ + + \ No newline at end of file diff --git a/providers/coderplan/models/anthropic/claude-haiku-4-5.toml b/providers/coderplan/models/anthropic/claude-haiku-4-5.toml new file mode 100644 index 00000000000..ca2a9fdd6f4 --- /dev/null +++ b/providers/coderplan/models/anthropic/claude-haiku-4-5.toml @@ -0,0 +1,11 @@ +# Pricing: converted from CNY catalog (https://coderplan.ai/pricing, 2026-08-18) at 1 USD = 7.15 CNY +base_model = "anthropic/claude-haiku-4-5" + +[[reasoning_options]] +type = "budget_tokens" +min = 1_024 + +[cost] +input = 0.07 +cache_read = 0.007 +output = 0.35 diff --git a/providers/coderplan/models/anthropic/claude-opus-4-7.toml b/providers/coderplan/models/anthropic/claude-opus-4-7.toml new file mode 100644 index 00000000000..139d4d39228 --- /dev/null +++ b/providers/coderplan/models/anthropic/claude-opus-4-7.toml @@ -0,0 +1,10 @@ +# Pricing: converted from CNY catalog (https://coderplan.ai/pricing, 2026-08-18) at 1 USD = 7.15 CNY +base_model = "anthropic/claude-opus-4-7" + +[[reasoning_options]] +type = "effort" +values = ["low", "medium", "high", "xhigh", "max"] + +[cost] +input = 0.35 +output = 1.75 diff --git a/providers/coderplan/models/anthropic/claude-sonnet-4-6.toml b/providers/coderplan/models/anthropic/claude-sonnet-4-6.toml new file mode 100644 index 00000000000..7595a40ef0f --- /dev/null +++ b/providers/coderplan/models/anthropic/claude-sonnet-4-6.toml @@ -0,0 +1,15 @@ +# Pricing: converted from CNY catalog (https://coderplan.ai/pricing, 2026-08-18) at 1 USD = 7.15 CNY +base_model = "anthropic/claude-sonnet-4-6" + +[[reasoning_options]] +type = "effort" +values = ["low", "medium", "high", "max"] + +[[reasoning_options]] +type = "budget_tokens" +min = 1_024 + +[cost] +input = 0.21 +cache_read = 0.014 +output = 1.05 diff --git a/providers/coderplan/models/deepseek/deepseek-v4-flash.toml b/providers/coderplan/models/deepseek/deepseek-v4-flash.toml new file mode 100644 index 00000000000..e73f1d2519d --- /dev/null +++ b/providers/coderplan/models/deepseek/deepseek-v4-flash.toml @@ -0,0 +1,18 @@ +# Pricing: converted from CNY catalog (https://coderplan.ai/pricing, 2026-08-18) at 1 USD = 7.15 CNY +# Reasoning toggle wire path: OpenAI-compatible `chat.completions` → `thinking.type = enabled|disabled` (DeepSeek-style passthrough) +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.34 +cache_read = 0.0112 +output = 1.01 diff --git a/providers/coderplan/models/deepseek/deepseek-v4-pro.toml b/providers/coderplan/models/deepseek/deepseek-v4-pro.toml new file mode 100644 index 00000000000..c7ed33374bb --- /dev/null +++ b/providers/coderplan/models/deepseek/deepseek-v4-pro.toml @@ -0,0 +1,18 @@ +# Pricing: converted from CNY catalog (https://coderplan.ai/pricing, 2026-08-18) at 1 USD = 7.15 CNY +# Reasoning toggle wire path: OpenAI-compatible `chat.completions` → `thinking.type = enabled|disabled` (DeepSeek-style passthrough) +base_model = "deepseek/deepseek-v4-pro" + +[[reasoning_options]] +type = "toggle" + +[[reasoning_options]] +type = "effort" +values = ["high", "max"] + +[interleaved] +field = "reasoning_content" + +[cost] +input = 1.01 +cache_read = 0.0336 +output = 3.02 diff --git a/providers/coderplan/models/openai/gpt-5.4.toml b/providers/coderplan/models/openai/gpt-5.4.toml new file mode 100644 index 00000000000..1aa57009f60 --- /dev/null +++ b/providers/coderplan/models/openai/gpt-5.4.toml @@ -0,0 +1,9 @@ +# Pricing: converted from CNY catalog (https://coderplan.ai/pricing, 2026-08-18) at 1 USD = 7.15 CNY +base_model = "openai/gpt-5.4" + +reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high", "xhigh"] }] + +[cost] +input = 0.12 +cache_read = 0.0126 +output = 0.73 diff --git a/providers/coderplan/models/openai/gpt-5.5.toml b/providers/coderplan/models/openai/gpt-5.5.toml new file mode 100644 index 00000000000..b04e7bd9ae6 --- /dev/null +++ b/providers/coderplan/models/openai/gpt-5.5.toml @@ -0,0 +1,9 @@ +# Pricing: converted from CNY catalog (https://coderplan.ai/pricing, 2026-08-18) at 1 USD = 7.15 CNY +base_model = "openai/gpt-5.5" + +reasoning_options = [{ type = "effort", values = ["none", "low", "medium", "high", "xhigh"] }] + +[cost] +input = 0.25 +cache_read = 0.025 +output = 1.47 diff --git a/providers/coderplan/provider.toml b/providers/coderplan/provider.toml new file mode 100644 index 00000000000..bcc29da6af5 --- /dev/null +++ b/providers/coderplan/provider.toml @@ -0,0 +1,5 @@ +name = "CoderPlan" +env = ["CODERPLAN_API_KEY"] +npm = "@ai-sdk/openai-compatible" +api = "https://api.coderplan.ai/v1" +doc = "https://coderplan.ai/docs/setup"