oakimov/cursor-opencode-provider — explained in plain English
Analysis updated 2026-05-18
Keep using your paid Cursor model subscription while working in OpenCode's interface.
Stream AI responses and run tool calls from Cursor models inside OpenCode sessions.
Access Cursor's long context and reasoning model variants from a different editor tool.
| oakimov/cursor-opencode-provider | achrefelouafi/basicproceduralbuilding | acoyfellow/tuiport | |
|---|---|---|---|
| Stars | 16 | 16 | 16 |
| Language | TypeScript | TypeScript | TypeScript |
| Setup difficulty | moderate | moderate | moderate |
| Complexity | 3/5 | 3/5 | 4/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires an active Cursor account with API access plus Bun and OpenCode installed.
This project lets you use the AI models included in your Cursor subscription from within OpenCode, a different coding assistant tool. Normally these two tools are separate, but this package acts as a bridge between them, so you can keep paying for your existing Cursor plan while working inside OpenCode instead of switching between the two. Under the hood, it is built as a custom provider that speaks Cursor's own internal protocol directly to Cursor's servers, rather than using a generic chat API. This means it can support things a simple integration would miss, such as streaming responses as they are generated, calling tools during a conversation, and showing the model's step by step reasoning when a model supports that feature. To use it, you need Bun installed for building and testing, OpenCode itself with plugin support enabled, and an active Cursor account with API access. You can install the package from npm and point OpenCode's configuration at it, or clone the repository, build it locally with Bun, and reference the built files directly. Setup also involves logging in through OpenCode's authentication flow, either by signing into your Cursor account through a browser or by pasting an API key from your Cursor account settings. Once connected, the plugin fetches the list of models your subscription can access and stores that list locally so it can be reused later. After logging in, you pick one of the available Cursor models and run it through OpenCode's normal commands. Some models offer extra variants for things like more careful reasoning or a much longer context window, and the project handles switching between these variants so the right settings reach Cursor's backend. The README describes the project as usable end to end for authentication, model selection, streaming, and tool calls, with some known limitations noted separately in its documentation.
A bridge that lets you use your Cursor AI subscription's models inside the OpenCode coding assistant instead of Cursor itself.
Mainly TypeScript. The stack also includes TypeScript, Bun, OpenCode.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Don't trust strangers blindly. Verify against the repo.