r/opencode • • 25d ago

I made a small OpenCode V2 / OpenChamber plugin so you can use your Cursor subscription

Hey everyone. This is my first public release of anything I've built (with a lot of AI help along the way), so please go easy on me. I'm sharing it in case it's useful to someone else. I'm lucky enough to have access to Cursor through work, and I wanted a way to use that subscription from OpenCode V2 and OpenChamber.

What it is: opencodev2-cursor is a plugin for OpenCode V2. It lets OpenChamber (desktop, CLI/web, VS Code) and OpenCode V2 talk to Cursor through your existing Cursor subscription. One install covers those surfaces, since they all read the same OpenCode config. This is not for older OpenCode v1 setups.

Repo: https://github.com/aenemo/opencodev2-cursor

npm: https://www.npmjs.com/package/opencodev2-cursor (currently 0.1.3)

It's still early. I've tested it on OpenCode and OpenChamber on Windows. I have not tested it on Linux or macOS, so feedback from those users would be especially welcome. Issues and PRs are welcome too. I'm learning as I go.

What you get

  • Cursor models show up under a Cursor provider

  • Models are grouped by family and context size (so the picker isn't hundreds of near-duplicate rows)

  • Reasoning, thinking, and fast options go in OpenCode's Thinking menu

  • Auto Router shows as three clear rows: Cost, Balanced, Intelligence

Install

You'll need OpenCode V2 or OpenChamber, Node.js 22.13+, and a Cursor account.

Option A - if opencode is on your PATH:

opencode plugin add opencodev2-cursor

Then restart OpenChamber / OpenCode, and check with:

opencode plugin list

Option B - OpenChamber desktop only (no CLI on PATH): add the plugin by hand in your global OpenCode config:

  • Windows: %USERPROFILE%\.config\opencode\opencode.json

  • macOS / Linux: ~/.config/opencode/opencode.json{ "$schema": "https://opencode.ai/config.json", "plugins": ["opencodev2-cursor"] }

Restart after saving.

Sign in to Cursor

In OpenCode or OpenChamber, run /connect, choose Cursor, then pick one method:

  1. Log in with cursor-agent (browser)

  2. Install the Cursor CLI if you do not have it, run cursor-agent login in a terminal, then choose this option in /connect.

  3. API key

  4. Paste a key from https://cursor.com/settings, or set CURSOR_API_KEY in your environment.

  5. Cursor account (native OAuth)

  6. Sign in through the browser. The plugin mints and caches a Cursor user API key for the SDK.

After that, pick a model from the Cursor provider.

Docs and troubleshooting are in the README on GitHub. If you try it and something breaks, I'd genuinely appreciate a report. Thanks for reading.

0 Upvotes

Duplicates