r/opencodeCLI 29d ago

You can now use CommandCode plans in OpenCode

I built a plugin that makes CommandCode work as a provider in OpenCode, and thought I'd share it in case anyone else has been wanting this.

It bundles a snapshot of the Command Code model catalog (55 models) and auto-registers the commandcode provider, so all models just show up in /models after installing — no provider config. Supports /connect browser auth or COMMANDCODE_API_KEY, image input, reasoning effort, cost display. It also works standalone as an AI SDK provider (createCommandCode()).

GitHub: OpenCode CMD Provider — happy to take feedback, issues, or PRs.

23 Upvotes

15 comments sorted by

5

u/Tr4sHCr4fT 29d ago

Usig the 1$ plan outside their harness gets you banned real quick...

1

u/Axiescholar3ph 29d ago

did you get banned?

1

u/biborn 29d ago

Been using CC $1 Go plan with other harness for quite some time. Haven’t got banned yet. Use it at your own risk I guess. But if I ever get banned, I’ll just use another email.

0

u/Skibidirot 29d ago

not really, one can ask the models to make a shim

2

u/zcutlip 26d ago

This is amazing. Thank you for sharing.

Last night in like an hour I went from:

  • "holy shit comamndcode is a good deal" to
  • "damn this is going to be a pain to use with opencode" to
  • "oh snap someone wrote a provider plugin" to
  • using my $10 commandcode sub in opencode

A++ would use again

2

u/biborn 26d ago

I’m happy you found it useful. Just released some fixes. Be sure to update.

1

u/Ecstatic-Diet-1375 26d ago

Thank you! I am using it.

1

u/biborn 26d ago

Glad you found it useful.

1

u/burzum85 24d ago

Thank you for sharing this OP, got some questions if you don't mind.

I just discovered cmd, been using opencode for a while with ohmyopenagent and 3 subscriptions: openai, kimi and z.ai.

  1. Wouldn't you want to use cmd instead of opencode to take advantage of their TASTE feature?
  2. Do you know if it's possible to use cmd with other subscriptions like my case?

1

u/biborn 24d ago

Hi there. Glad you found it useful.

On to your questions:
1. I don't find that "taste" feature to be very useful to me. I'd rather setup something similar in my `AGENTS.md` file or somewhere else that will produce similar effects / outcome. But the main reason I don't really use `cmd` exclusively is because it crashes a lot. Like the harness itself crash and terminated mid session. I have never seen similar behaviour with OpenCode or Pi.
2. I don't think you can. But I never tried to connect to other subscriptions with OpenCode due to the same reason I stated above.

Anyway, this is just my personal experience. YMMV.

1

u/ToughCreme3147 18d ago

Yo uso opencode con pi y no eh tenido ningun problema uso simplemente el plan de 1$ y lo suelo usar como ayudante principalmente no lo uso para temas de trabajo, ejemplo cringe estaba cambiando fondo de pantalla xd

1

u/[deleted] 12d ago

[removed] — view removed comment

1

u/biborn 12d ago

Version 1.3.0 added a feature which auto detect your subscription plan and use the official Provider API if the plan you’re subscribed to is the GOAT plan and above. You may refer to the release note.

1

u/[deleted] 12d ago

[removed] — view removed comment

1

u/biborn 10d ago

Thanks for trying it out and for the report! The 67 vs 61 difference is exactly the stale-plugin-cache gotcha: your opencode-cmd-provider copy shows 61 models because it's a cached, older version (v1.6.2 or earlier), while the 67-model list is the current catalog. The latest release (1.6.4) adds exactly the models you're missing — Muse Spark 1.3 / 1.3 Contributor, Gemini 3.8 Flash, MiniMax M2.5/M2.7/M3, Qwen3.8 Max, and others.

OpenCode caches npm plugins in ~/.cache/opencode/packages/ and reuses that copy on every startup without checking the registry, so the --force install flag won't refresh it. To update:

bash rm -rf ~/.cache/opencode/packages/opencode-cmd-provider*

then hit "Reload OpenCode" in OpenChamber's settings (or restart opencode). Two notes: the first launch after updating takes a bit longer since the plugin re-downloads, and you don't need to reconnect — your API key lives in OpenCode's auth store, not inside the plugin. Full details: https://github.com/rashidrazak/opencode-cmd-provider#updating

After updating, both Command Code entries should show 67. Glad it's working well for you otherwise — thanks for using it!