Skip to content

feat: add CommandCode provider - #6969

Open
tamatyan99 wants to merge 1 commit into
anomalyco:devfrom
tamatyan99:feat/commandcode-provider
Open

tamatyan99 wants to merge 1 commit into
anomalyco:devfrom
tamatyan99:feat/commandcode-provider

Conversation

@tamatyan99

Copy link
Copy Markdown

Add CommandCode (https://commandcode.ai/docs/provider) as a new provider.

CommandCode is an OpenAI- and Anthropic-compatible model gateway. Default wire is OpenAI-compatible (/provider/v1/chat/completions); Claude models are served on the Anthropic Messages endpoint, so that model overrides npm/api like other dual-protocol gateways.

This PR registers 7 representative models with base_model + cost + reasoning_options. Remaining catalog models can follow in later PRs.

Model IDs match the live GET /provider/v1/models list and were verified with real requests (IDs are case-sensitive on this gateway).

Verified:

  • bun validate passes
  • opencode loads the catalog (OPENCODE_MODELS_PATH) and lists commandcode/* models
  • live calls OK via opencode: deepseek/deepseek-v4-flash, moonshotai/kimi-k3, Qwen/Qwen3.8-Max, MiniMaxAI/MiniMax-M3, zai-org/GLM-5.3
  • Claude models route to /messages correctly (request reaches the gateway; my key's plan does not include Claude, so full completion was not tested)
  • gpt-5.6-sol reaches the gateway via direct API call; opencode run returned empty text, likely a client-side parsing quirk, catalog entry itself is correct

Sources: https://commandcode.ai/models and https://commandcode.ai/docs/provider (accessed 2026-09-12).

@github-actions

Copy link
Copy Markdown
Contributor

Action items

  • [medium] [violation] providers/commandcode/models/MiniMaxAI/MiniMax-M3.toml:10 - Check: Every toggle must have a leading top-of-file comment with the exact wire path. Why: This entry declares type = "toggle" but only says the control “mirrors the MiniMax API surface,” with no concrete request field (e.g. thinking.type = enabled|disabled). Clients cannot tell how to turn reasoning on/off on this gateway. Action: Add a leading comment with the exact CommandCode/MiniMax wire path for the toggle (same style as DeepSeek/Qwen in this PR).
  • [medium] [violation] providers/commandcode/models/claude-sonnet-5.toml:10 - Check: Every toggle must have a leading top-of-file comment with the exact wire path. Why: Claude is authored with toggle + effort on the Anthropic Messages route, but the header only mentions effort levels and never documents the on/off field (e.g. thinking.type = enabled|disabled or adaptive|disabled). Action: Add a leading comment with the exact /provider/v1/messages toggle wire path used on this host, matching other dual-protocol Anthropic relays.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant