Connect OpenCode to Cursor
Set up in minutes
Choose where it runs
On your computer through your own OpenCode, or hosted in the cloud. The rest of setup adapts to your choice:
Pick what it can do in Cursor
A preset of real Cursor operations. Each one becomes a tool the agent can call, and it can't touch anything outside the list.
Connect Cursor
One sign-in. The agent acts through your account, scoped to the operations you picked.
Add your personal MCP link
The last step mints a private MCP URL for this agent and walks you through exactly this, with your real link filled in. The page flips to Connected the moment your OpenCode first calls in. opencode mcp add only saves the config. OpenCode connects when it starts — run opencode, or restart a running one.
1. Run this in your terminal
2. Choose Remote and paste your server URL
3. Choose No when asked about OAuth authentication — the link itself is the key
<your-link> is your personal server URL — setup mints it for you.
Tools OpenCode gets
Cursor
30 toolsLaunch a Cursor cloud agent with an initial prompt and target repo.
List the authenticated user's cloud agents, newest first.
Fetch durable metadata / status for a specific cloud agent.
Archive a cloud agent (reversible; blocks new runs).
Reactivate an archived cloud agent.
Permanently delete a cloud agent (irreversible).
Send a follow-up prompt to an existing cloud agent.
List an agent's runs, newest first.
Get a run's status, timestamps, result, and git object.
Cancel an active run (terminal action).
Token usage breakdown for an agent (totalled and per run).
List files / artifacts produced by an agent.
Get a presigned download URL for an agent artifact (15-min expiry).
List models available to the API key with parameter definitions.
List GitHub repos accessible via Cursor's GitHub app.
Info about the current API key (identity / scope).
Retrieve all team members (Admin API key required).
Retrieve audit-log events with optional filters (Admin API key required).
Daily usage metrics for the team (Admin API key required).
Spending data for the current billing cycle (Admin API key required).
Detailed usage events with token counts and costs (Admin API key required).
Set a monthly spend limit for an individual member (Admin API key required).
Remove a member from the team (Admin API key required).
Team metrics on AI-suggested code edits accepted (Admin API key required).
Autocomplete (Tab) suggestion acceptance metrics (Admin API key required).
Daily active user counts for the team (Admin API key required).
AI model usage metrics across the team (Admin API key required).
Per-user analytics for a chosen metric (Admin API key required).
Per-commit attribution of lines to Tab / Composer / non-AI (Admin API key required).
Accepted AI changes grouped by changeId with per-file metadata (Admin API key required).
About OpenCode
Frequently asked questions
More ways to connect
More tools for OpenCode
Use Cursor with other agents
Open your OpenCode agent in one click.
NoClick runs OpenCode for you with Cursor wired in as tools. Connect your account and run.