opencode-cmd-provider weekly downloads statistics
By rashidrazak · npm · AI SDKs
Command Code provider + plugin for opencode
opencode-cmd-provider has 719 recorded weekly downloads on npm, a decrease of 34.5% over the past 30 days, ranking #2175 of 3,247 tracked listings.
About opencode-cmd-provider
opencode-cmd-provider
Use your Command Code plan inside OpenCode.
This plugin connects OpenCode to Command Code and adds every Command Code model to the model picker, so you can use your Go, GOAT, Pro, Max 10×, Max 20×, Provider, Team, or Enterprise plan from OpenCode. It also adds the Rates & usage panel with your plan's allowances, benchmarks, current deals, and live usage — a Command Code section in the terminal's session sidebar, and a Command Code side-panel tab in the OpenCode desktop app.
<!-- Absolute URL so the image also renders on npmjs.com (docs/ is not published to npm). -->
Disclaimer: This is an unofficial, community-maintained integration. It is not affiliated with, endorsed by, or supported by Command Code. You need your own Command Code account, and Command Code's terms, availability, and pricing apply.
Before you start
- OpenCode installed — opencode.ai.
- A Command Code account and API key — commandcode.ai.
Not sure which OpenCode version you have? Run:
opencode --version
- Prints
1.x→ follow Install on OpenCode v1. - Prints
2.x→ follow Install on OpenCode v2.
Using the OpenCode desktop app? It is part of OpenCode v2 — follow Install on OpenCode v2, then see In the desktop app.
Install on OpenCode v1
opencode plugin opencode-cmd-provider
Run it inside the project where you want the plugin, or add --global to make
it available in every project:
opencode plugin opencode-cmd-provider --global
That one command adds the plugin to your OpenCode configuration, registers Command Code and all of its models, and adds the sidebar section. Restart OpenCode when it finishes.
Install on OpenCode v2
OpenCode v2 uses a different command — note the add:
opencode plugin add opencode-cmd-provider
This adds the plugin to your global OpenCode configuration, so it works in every project, registers Command Code and all of its models, and adds the sidebar section. Reload OpenCode when it finishes:
opencode reload
Closing and reopening the TUI is not enough on v2 — the background service keeps
the previously loaded plugin. If the plugin still does not appear, restart the
service with opencode service restart.
In the desktop app
The desktop app picks up the same install. Quit and reopen the app after
installing: its windows load the plugin when they start, so an open window
keeps running without it. Once reopened, the [CMD] models are in the model
picker and the Command Code side-panel tab is available — see
The panel in the desktop app.
If an install command fails on your machine, you can add the plugin to your configuration by hand — see Installation mechanics in the technical reference.
Connect your Command Code account
OpenCode v1: sign in from the browser
In OpenCode, run:
/connect
Select Command Code in the provider list, then pick how to sign in:
- Command Code — the browser flow. Finish the sign-in in your browser; the key is stored by OpenCode and reused from then on. Take your time: the plugin waits up to five minutes for the browser to hand the key back, so there is no rush picking an organization or approving access.
- Command Code API key — paste the key the Command Code studio shows you.
Use this when the browser cannot reach OpenCode's
localhostcallback, for example when OpenCode runs on a remote host.
OpenCode v2: use your API key
OpenCode v2 has no browser sign-in for Command Code. Set your API key before starting OpenCode:
export COMMANDCODE_API_KEY="user_..."
Or run /connect inside OpenCode and paste the key when asked.
Already signed in with the Command Code CLI?
If you ran cmd login, OpenCode reuses that login automatically, so you may not
need to connect at all. The plugin reads it from ~/.commandcode/auth.json.
This does not cover COMMAND_CODE_API_KEY, the variable the Command Code CLI
documents for CI and headless use. This plugin reads COMMANDCODE_API_KEY
instead. Set that one, or run /connect.
Start using it
- Pick a model: run
/modelsand choose any entry starting with[CMD], for example[CMD] Claude Sonnet 5. - Start chatting. Your Command Code plan handles the requests.
Prefer the command line? Run a single prompt without the interactive interface:
opencode run --model commandcode/claude-sonnet-5 "hello"
What you get
The Rates & usage panel
While a session uses a [CMD] model, OpenCode shows the Rates & usage
panel (titled Command Code) for that model — in the sidebar of the
terminal interface, and in the side panel of the desktop app:
- Tier and status of the model
- Allowance — the monthly allowance on each plan
- Rates — input, output and cache rates per million tokens, including peak/off-peak and context-window bands where Command Code publishes them
- Other Information — benchmark scores, current deals and
was/nowrates - Usage — your live 5-hour, weekly and monthly usage, and this cycle's requests, tokens and spend, refreshed as you work
The panel in the terminal…
Description from the npm listing.
- opencode
- opencode-plugin
- commandcode
- provider
- ai-sdk
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (170)Similar npm AI SDKs plugins
All 20 opencode-cmd-provider alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/opencode-cmd-provider. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.