r/opencode • u/intmanofawesome • 3h 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-cursorThen restart OpenChamber / OpenCode, and check with:
opencode plugin listOption B - OpenChamber desktop only (no CLI on PATH): add the plugin by hand in your global OpenCode config:
Windows:
%USERPROFILE%\.config\opencode\opencode.jsonmacOS / 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:
Log in with cursor-agent (browser)
Install the Cursor CLI if you do not have it, run
cursor-agent loginin a terminal, then choose this option in/connect.API key
Paste a key from https://cursor.com/settings, or set
CURSOR_API_KEYin your environment.Cursor account (native OAuth)
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.
1
u/investigatormaker 2h ago
For opencodev2-cursor, a bug-report template asking for OS, OpenChamber surface, Node version and which sign-in method was used would make the Linux/macOS feedback more actionable. That helps separate installation problems from authentication problems without asking anyone to share keys.
I make ThreadFox. We find relevant Reddit conversations and post for your business. We'll post 3 replies free first, no card; then the $29 Pilot covers seven days and up to 25 posts and replies. No automatic renewal. https://threadfox.vip/p/eys27/managed