@khalilgharbaoui/opencode-claude-code-plugin weekly downloads statistics
By khalilgharbaoui · npm · Claude Code
Claude Code CLI provider plugin for opencode
@khalilgharbaoui/opencode-claude-code-plugin has 2,095 recorded weekly downloads on npm, an increase of 492% over the past 30 days, ranking #1325 of 2,322 tracked listings.
About @khalilgharbaoui/opencode-claude-code-plugin
@khalilgharbaoui/opencode-claude-code-plugin
<a href="https://www.buymeacoffee.com/khalilgharbaoui"><img src="site/public/buy-me-a-coffee.png" alt="Buy me a coffee" width="214" height="60"></a>
Claude Code is the provider. This opencode plugin runs Anthropic's Claude models through the official Claude Code CLI (claude) as a subprocess instead of calling the HTTP API. opencode inherits whatever that CLI is logged in as (a Claude subscription, an API key, Bedrock or Vertex), gets Claude's own tools, MCP servers and skills, and keeps running the tools that touch your machine itself, behind its own permission prompts. One package serves opencode 1.x and 2.x.
- Your CLI's login, untouched. The plugin never reads, stores or replays a token. Lifting the OAuth session out of the official client is what proxy-style plugins do, and Anthropic disallowed that for third-party Claude use in February 2026. This plugin structurally cannot do it.
- opencode runs the tools.
Bash,Edit,Write,WebFetchandTaskare proxied by default: Claude calls an in-process MCP tool and opencode executes it, under its own permissions and audit log. - Billed as your CLI bills. Headless
claude --printon a subscription draws from the plan's ordinary usage limits; an API key bills pay as you go. The CLI'sapiKeySourcesays which, every session, and the plugin warns when a strayANTHROPIC_API_KEYwould move the bill.
Docs: https://opencode-claude-code-plugin.dev/ (the same pages are the markdown under docs/, which GitHub renders on its own).
Quickstart
-
Install and log in the Claude Code CLI. The plugin drives an existing
claude; it does not bundle one.claude --version # e.g. 2.1.284 (Claude Code) claude auth status # which account you are signed in as claude auth login # only if you are not signed in yet -
Add the package to opencode's global config. That spec is the whole install. Do not
npm installit yourself: opencode resolves and caches plugin packages on its own.{ "plugin": ["@khalilgharbaoui/opencode-claude-code-plugin"] }~/.config/opencode/opencode.jsonon opencode 1.x. opencode 2 reads the same key; its native spelling isplugins. -
Quit opencode fully and relaunch. Plugins load once, at process start. The model picker now has a Claude Code (Default) provider with entries such as
Claude Sonnet 5.5 (2×)andClaude Opus 5 (5×); the suffix is each model's list price relative to Haiku.
Nothing in the picker? Troubleshooting is keyed on the first thing you see. /claude-code-doctor in any session prints what the plugin thinks is happening, without calling a model.
What you get…
Description from the npm listing.
- opencode
- claude
- claude-code
- ai-sdk
- provider
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 (543)Similar npm Claude Code plugins
All 20 @khalilgharbaoui/opencode-claude-code-plugin 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/@khalilgharbaoui/opencode-claude-code-plugin. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.