Browse by type

The open-source AI coding agent for VS Code — built local-first.
Chat with an agent that reads your workspace, edits files, runs commands, and searches your codebase semantically. Use your Claude / ChatGPT / Gemini subscription, any API key, or run completely offline with llama.cpp and Ollama.
Install · Local AI · Providers · Features · Contributing

OpenCursor is designed to work without internet once set up:
llama-server for you. Full launch control: context size, GPU layers, flash attention, KV cache types, speculative decoding, vision (--mmproj), and more.
Ask questions in plain language — "where do we refresh the auth token?" — and the agent automatically finds code by meaning, not keywords. The index builds automatically, updates incrementally, and is stored locally. Prefer a hosted embedding model? Point it at any OpenAI-compatible /embeddings endpoint instead.

| 💬 Agent chat | Multi-tab sidebar chat with @-mentions: files, folders, code, @Docs, git commits, branch diffs, terminals, rules, past chats |
| 🛠️ 25 tools | Read/write/edit, shell, grep/glob, semantic search, web search & fetch, notebooks, todos, subagents, MCP |
| ✅ Inline review | Per-hunk Keep / Undo CodeLenses on every agent edit — no git required |
| 🧭 Modes | Agent · Ask · Plan · Debug · Multitask (Ask/Plan are read-only) |
| 🛡️ Approval policy | Per-action allow/ask/review/deny with risk heuristics (rm -rf, sudo, .env, secrets…) and wildcard allow/deny lists |
| 🔗 MCP & hooks | Full MCP client, plus 11 lifecycle hooks (Cursor/Claude-Code compatible) and custom subagents |
| 🖼️ Images & PDFs | Paste screenshots, read images and PDFs directly into context |
| ⚙️ Extras | Ctrl+L adds selection to chat, personas, custom system prompt, token usage tracking, completion notifications |
.vsix from Releases).Ctrl+L sends your selection to the chat.Native runtime dependencies (ONNX runtime, image processing) are downloaded once on first activation with integrity checks — they're too heavy to ship in the VSIX.
git clone https://github.com/PawanOsman/OpenCursor.git
cd OpenCursor
pnpm install
pnpm run compile # or: pnpm run watch
Press F5 in VS Code to launch the Extension Development Host. Build a package with pnpm run vsix.
Issues and PRs welcome — see issues.
$ claude mcp add OpenCursor \
-- python -m otcore.mcp_server <graph>