cursor-agent can access models.cursor-agent installed.curl -fsS https://cursor.com/install | bash
npm install opencode-cursor-auth
~/.config/opencode/opencode.json:{
"$schema": "https://opencode.ai/config.json",
"plugin": [
"opencode-cursor-auth@1.0.16"
],
"provider": {
"cursor": {
"npm": "@ai-sdk/openai-compatible",
"name": "Cursor Agent (local)",
"options": {
"baseURL": "http://127.0.0.1:32123/v1"
},
"models": {
"auto": { "name": "Cursor Agent Auto" },
"gpt-5": { "name": "Cursor Agent GPT-5 (alias → gpt-5.2)" },
"gpt-5.2": { "name": "Cursor Agent GPT-5.2" },
"gpt-5.1": { "name": "Cursor Agent GPT-5.1" },
"gpt-5.1-codex": { "name": "Cursor Agent GPT-5.1 Codex" },
"sonnet-4.5": { "name": "Cursor Agent Sonnet 4.5" },
"sonnet-4.5-thinking": { "name": "Cursor Agent Sonnet 4.5 Thinking" }
}
}
}
}
opencode auth login
OthercursorLogin via cursor-agent (opens browser)opencode run "decime hola" --model cursor/gpt-5
opencode run "listame los archivos del repo" --model cursor/auto
list, read, grep, bash, todowrite.cursor-agent.ISC
Use cursor-agent inside OpenCode (CLI-first Cursor).
This plugin is for people who pay for Cursor (or have it paid for them) and want to use it from OpenCode instead of the Cursor UI.
cursor-agent can access models.cursor-agent installed.bun installed.curl -fsS https://cursor.com/install | bash
curl -fsSL https://bun.sh/install | bash
npm install opencode-cursor-auth
~/.config/opencode/opencode.json:{
"$schema": "https://opencode.ai/config.json",
"plugin": [
"opencode-cursor-auth@1.0.16"
],
"provider": {
"cursor": {
"npm": "@ai-sdk/openai-compatible",
"name": "Cursor Agent (local)",
"options": {
"baseURL": "http://127.0.0.1:32123/v1"
},
"models": {
"auto": { "name": "Cursor Agent Auto" },
"gpt-5": { "name": "Cursor Agent GPT-5 (alias → gpt-5.2)" },
"gpt-5.2": { "name": "Cursor Agent GPT-5.2" },
"gpt-5.1": { "name": "Cursor Agent GPT-5.1" },
"gpt-5.1-codex": { "name": "Cursor Agent GPT-5.1 Codex" },
"sonnet-4.5": { "name": "Cursor Agent Sonnet 4.5" },
"sonnet-4.5-thinking": { "name": "Cursor Agent Sonnet 4.5 Thinking" }
}
}
}
}
opencode auth login
OthercursorLogin via cursor-agent (opens browser)opencode run "decime hola" --model cursor/gpt-5
opencode run "listame los archivos del repo" --model cursor/auto
list, read, grep, bash, todowrite.cursor-agent.ISC
Sign in to leave a comment.