explaingit

oakimov/cursor-opencode-provider

Analysis updated 2026-05-18

16TypeScriptAudience · developerComplexity · 3/5Setup · moderate

TLDR

A bridge that lets you use your Cursor AI subscription's models inside the OpenCode coding assistant instead of Cursor itself.

Mindmap

mindmap
  root((repo))
    What it does
      Bridges Cursor to OpenCode
      Speaks Cursor protocol directly
    Tech stack
      TypeScript
      Bun
      OpenCode plugin
    Use cases
      Use Cursor models in OpenCode
      Stream responses and tools
      Access long context variants
    Audience
      Developers
      OpenCode users
    Setup
      Needs Cursor account
      Needs Bun and OpenCode

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Keep using your paid Cursor model subscription while working in OpenCode's interface.

USE CASE 2

Stream AI responses and run tool calls from Cursor models inside OpenCode sessions.

USE CASE 3

Access Cursor's long context and reasoning model variants from a different editor tool.

What is it built with?

TypeScriptBunOpenCodeCursor API

How does it compare?

oakimov/cursor-opencode-providerachrefelouafi/basicproceduralbuildingacoyfellow/tuiport
Stars161616
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderatemoderatemoderate
Complexity3/53/54/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires an active Cursor account with API access plus Bun and OpenCode installed.

In plain English

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.

Copy-paste prompts

Prompt 1
Help me configure OpenCode to load cursor-opencode-provider as a plugin using a local build.
Prompt 2
Walk me through authenticating this plugin with my Cursor account using the API key method.
Prompt 3
Explain how to select a long-context 1M variant of a Cursor model in OpenCode using this provider.
Prompt 4
Show me how to run a Cursor model through OpenCode's command line using this provider.

Frequently asked questions

What is cursor-opencode-provider?

A bridge that lets you use your Cursor AI subscription's models inside the OpenCode coding assistant instead of Cursor itself.

What language is cursor-opencode-provider written in?

Mainly TypeScript. The stack also includes TypeScript, Bun, OpenCode.

How hard is cursor-opencode-provider to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is cursor-opencode-provider for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.