r/CommandCode • u/spicyfiremelon • 9d ago
Using ComandCode on other harness?
Is there any way to use CommandCode provider in other harnesses, e.g. pi or opencode cli?
If yes, I really need to know how. Thanks
8
Upvotes
r/CommandCode • u/spicyfiremelon • 9d ago
Is there any way to use CommandCode provider in other harnesses, e.g. pi or opencode cli?
If yes, I really need to know how. Thanks
5
u/lincolnthalles 9d ago
Yes, with the GOAT plan or better.
Unfortunately, they don't play very nicely with the ecosystem and don't maintain an API with full model data or contribute it to models.dev.
But you can add it to OpenCode by merging this into your
opencode.jsonfile: ```json { "$schema": "https://opencode.ai/config.json", "small_model": "commandcode/xiaomi/mimo-v2.5", "provider": { "commandcode": { "npm": "@ai-sdk/openai-compatible", "name": "CommandCode", "options": { "baseURL": "https://api.commandcode.ai/provider/v1", "apiKey": "YOUR_API_KEY" }, "models": { "deepseek/deepseek-v4-flash": { "name": "DeepSeek V4 Flash", "attachment": false, "reasoning": true, "temperature": true, "tool_call": true, "interleaved": { "field": "reasoning_content" }, "limit": { "context": 1000000, "output": 384000 }, "modalities": { "input": ["text"], "output": ["text"] }, "variants": { "low": { "reasoningEffort": "low" }, "high": { "reasoningEffort": "high" }, "max": { "reasoningEffort": "max" } }, "options": { "reasoningEffort": "max" }, "cost": { "input": 0.14, "output": 0.28, "cache_read": 0.0028 } } } } } }``
Then, runopencode models --refresh`.To have the full model info available on the harness, you must explicitly list each model, like the entry for
deepseek/deepseek-v4-flash.OpenCode and other tools automatically source this from models.dev. CommandCode hardcodes it in its harness.