@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 740 recorded weekly downloads on npm, an increase of 101% over the past 30 days.
It ranks #1448 of 2,256 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by +478%.
PluginStats has 542 daily observations since Apr 24, 2025; the latest is from Oct 17, 2026.
About @khalilgharbaoui/opencode-claude-code-plugin
@khalilgharbaoui/opencode-claude-code-plugin
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, WebFetch and Task are 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 --print on a subscription draws from the plan's ordinary usage limits; an API key bills pay as you go. The CLI's apiKeySource says which, every session, and the plugin warns when a stray ANTHROPIC_API_KEY would move the bill.
Docs: (the same pages are the markdown under docs/, which GitHub renders on its own).
Quickstart
1. Install and log in the Claude Code CLI. The plugin drives an existing claude; it does not bundle one.
2. Add the package to opencode's global config. That spec is the whole install. Do not npm install it yourself: opencode resolves and caches plugin packages on its own.
~/.config/opencode/opencode.json on opencode 1.x. opencode 2 reads the same key; its native spelling is plugins.
3. 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×) and Claude 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
| | |
| Selective tool proxy | Choose, per tool, whether Claude Code or opencode executes it. Proxied calls end on an event (the result, an abort, the next message, the child exiting), never on a clock. Guide | | Claude's own tools, MCP and skills | Read, Grep, Glob, WebSearch run in Claude Code; your opencode MCP servers are bridged in; your opencode skills can be staged for Claude's Skill tool. MCP · Skills | | Several accounts | "accounts": ["personal", "work"] becomes one provider per account. Out of usage mid-task? One line says which account, which window and when it resets in your own time zone, and names the others to pick a model from. Accounts | | Subagents: your account, their model | forceModel, reasoningEffort and cacheTtl in an agent file, inheriting the caller's account. task_batch runs several subagents at once. Subagents | | The whole model range, reasoning variants, fast mode | Haiku 4.5 through Opus 5.5, Fable and Mythos, each with a (N×) list-price suffix, low to max effort variants, and a fallback chain for a model this account cannot run today. The badge above counts them. Models | | /btw and /claude-code-doctor | Side questions on the live process, and a health report whose bundle form is redacted by allowlist so it is safe to paste into a public issue. /btw · Doctor | | Ships its own setup skill | Ask Claude to configure it. The bundled claude-code-plugin skill knows every option, env var, model id and troubleshooting rule, is staged into Claude Code on every spawn, and tests keep it in step with the code. Skills | | Read-only preset, plan mode | "permissionPreset": "read-only" holds at the CLI, the proxy and the permission layer at once. Permissions |
How this compares
| | opencode's native anthropic provider | This plugin | Proxy and token-reuse plugins |
| Authentication | A Platform API key in opencode's auth store. | Whatever the official claude CLI holds. No token is read, stored or replayed. | The Claude OAuth session, used outside the official client. | | Terms-of-service status | The ordinary API route. | Sanctioned: the official client does the authenticating. | Disallowed. Anthropic disallowed reusing subscription authentication for third-party Claude use in February 2026, and each of those projects carries its own disclaimer. | | Who runs Bash, Edit, Write | opencode. | opencode, by default; Read, Grep, Glob run in Claude Code. | opencode. | | What it costs you | Baseline. | A claude child per conversation under a cap of 16; Claude Code may compact its own context behind opencode's back. | One more moving part, plus the account risk above. |
The full comparison has nine rows, names the projects in the third column, and quotes their own READMEs.
Built from measurements
A dozen test files drive a fake claude through real turns: the stream parser, the proxy broker, both watchdogs, abort, respawn, account failover and the model fallback chain are exercised end to end. Every rule in AGENTS.md names the probe, the version and the number that produced it, and the evidence lives in docs/agents-history.md. Two runtime dependencies. The site reports the live numbers: it rebuilds itself after every release, on every push that moves a figure, and every six hours.
Documentation…
Description from the npm listing.
- opencode
- claude
- claude-code
- ai-sdk
- provider
Where @khalilgharbaoui/opencode-claude-code-plugin sits in the listing
Each band is one page of 20. Weekly downloads on a log 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.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
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.
Recent observations
Full history (542)Similar npm Claude Code plugins
Data 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 19, 2026. See the methodology.