cursor-opencode-provider weekly downloads statistics
Use Cursor subscription models from OpenCode via Cursor's Connect-RPC agent protocol
cursor-opencode-provider has 582 recorded weekly downloads on npm, an increase of 26.5% over the past 30 days, ranking #2220 of 3,247 tracked listings.
About cursor-opencode-provider
cursor-opencode-provider
Use Cursor subscription models from OpenCode and compatible coding agents by speaking Cursor's Connect-RPC agent protocol.
This project is a custom AI SDK provider (LanguageModelV3) plus an OpenCode plugin that handles authentication and model discovery. Instead of calling a generic chat-completions API, it encodes and decodes Cursor's protobuf agent protocol over HTTP/2 to Cursor's agent backend.
Runs unchanged across OpenCode, OpenCode 2.x, and five additional coding agents. OpenCode loads this plugin natively, including through the dedicated OpenCode 2.x entrypoint. OCP — OpenCode Plugin Compatibility runs the same published plugin, without a provider fork, in Kilo Code, MiMo Code, pi, oh-my-pi, and DeepSeek Harness. See Coding-agent compatibility.
Status: Usable end-to-end for authentication, model discovery, streaming, and tools. See Known limitations.
Coding-agent compatibility
This package remains one OpenCode plugin and AI SDK provider. The external OCP compatibility layer adapts other hosts around that unchanged package: it translates their plugin surfaces, model catalogs, tool vocabulary, authentication, and streaming events instead of requiring a host-specific Cursor provider.
| Coding agent | How this package runs |
|---|---|
| OpenCode | Native plugin and AI SDK provider — OpenCode 1.x setup |
| OpenCode 2.x | Native cursor-opencode-provider/plugin/opencode2 — OpenCode 2.x setup |
| Kilo Code | Unchanged through OCP's OpenCode-clone compatibility layer |
| MiMo Code | Unchanged through OCP's OpenCode-clone compatibility layer |
| pi | Unchanged through @opencode-compat/pi-bridge and pi's provider extension API |
| oh-my-pi (omp) | Unchanged through the same Pi-family bridge |
| DeepSeek Harness (dsh) | Unchanged through @opencode-compat/dsh-bridge and DSH's Cordis LlmAdapter API |
Start with OCP's host guides:
OCP is designed to grow by adding host profiles and narrow adapters or bridges, so support for other coding agents can be added there while this provider and its package remain unchanged.
Demo
OpenCode driving a Cursor-routed Grok model through this provider:

Features
- Multi-host compatibility — the same plugin package runs natively in OpenCode and OpenCode 2.x, and unchanged through OCP in Kilo Code, MiMo Code, pi, oh-my-pi, and DeepSeek Harness; new host support belongs in the compatibility layer rather than a provider fork
- OpenCode integration — registers a
cursorprovider with auth hooks and cached model list - Authentication — browser OAuth (PKCE), or API key from cursor.com/settings
- Model discovery — fetches available models from Cursor's API and caches them locally
- Image input — advertises vision only for supported models and forwards OpenCode image attachments to Cursor
- Streaming — bidirectional Connect-RPC Runs with stale-session rotation, health checks, semantic/read-idle deadlines, bounded replay-safe recovery, and activity-aware held tool continuations
- Tool calls — maps Cursor exec-server messages to AI SDK / OpenCode tool-call parts using only the advertised canonical catalog. Exact advertised subagent names win; standard Cursor roles select compatible OpenCode agents, and native Task maps to OpenCode 1.x
taskor OpenCode 2.xsubagent. OCP translates any alternate host vocabulary before it reaches this package. The bridge also covers Cursor's typed read/bash/edit/write/grep/find/ls request/result range, mirrors finalized display-only todo/plan state, and strips OpenCode 1.x and OpenCode 2.x read envelopes before returning content to Cursor. - Thinking / reasoning — surfaces extended-thinking deltas where the model supports it
OpenCode 2.1.4 waits for cold-cache model discovery and publication during plugin activation, with a 10-second readiness budget. Warm-cache startup uses the saved inventory. Discovery failures leave authentication and later retries available; see model startup and diagnostics.
Requirements
- Bun (for development and tests)
- OpenCode, or a supported host configured through OCP
- An active Cursor account with API access
Installation
This package is one plugin with host-specific entrypoints. Use the guide for your OpenCode major version:
| Host | Guide |
|---|---|
| OpenCode 1.x | docs/opencode-1.md — classic plugin plus optional 1.18 plugin/v2 |
| OpenCode 2.x | docs/opencode-2.md — plugin/opencode2 only, including safe transition off ctx.catalog and the deprecated opencode.json catalog dump |
| Other agents | Coding-agent compatibility |
Do not load the 1.x and 2.x entrypoints in the same host.
OpenCode 1.x (~/.config/opencode/opencode.json):
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["cursor-opencode-provider"]
}
```…
Description from the npm listing.
- opencode
- opencode-plugin
- cursor
- ai-sdk
- provider
- plugin
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 cursor-opencode-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/cursor-opencode-provider. First seen Oct 16, 2026; last successful collection Nov 18, 2026. See the methodology.