OpenCursorAn open-source AI coding agent for VS Code. Bring your models, work in your workspace, and stay in control of the changes.
Install for VS Code · Releases · Quick start · Build from source · Credits OpenCursor brings conversation, code exploration, file edits, terminal commands, and change review into your editor. Connect a supported account, use your own API keys, or run a local model with Ollama or llama.cpp. Choose the model and permissions that fit the task, then follow the work as it happens. Quick start
Some features download native runtimes or model files when first used. Prepare those downloads before working offline. From a prompt to a reviewed change
Switch between Agent, Ask, Plan, Project, and Multitask modes. Ask is read-only; Plan can save a plan without editing project code. Agent carries out changes under your configured permissions. You can also fork or archive conversations and delegate independent work to subagents. Connect the models you want
Only configured API providers appear in your provider list. The Models page shows enabled, connected providers so you can focus on the connections you actually use. Multiple accounts and keys. Connections of the same provider are grouped together with their own balancing settings. Select first-available or round-robin routing; supported account providers also expose quota-aware choices. Eligible failures can move to another credential before response content starts. Options that match the model. The catalog and provider discovery expose available models with supported reasoning, thinking, and context controls. Use Settings > Models to inspect and enable the models available through your connections. Availability and tool support depend on the provider and account; a catalog entry does not grant access to a model. Choose processing speed. Supported GPT and Claude models offer Standard and Fast in the model picker. Standard is the default. Fast requests priority processing without changing your reasoning setting and can use extra credits or higher API rates. Your account and endpoint must support it; custom gateways must forward the speed setting to the upstream provider. Run locally
llama.cppSearch for GGUF models, choose a quantization, download the files, and manage the model server from Settings. Configure context size, GPU layers, KV cache, and other launch options. Runtime health, download progress, cancellation, and model-fit guidance help you see what is happening on your machine. OllamaConnect to an Ollama endpoint, browse installed models, pull new ones, and load or unload them. OpenCursor shows server health and the model capabilities reported by the runtime. Local inference and retrievalUse an on-device model together with local embeddings to work without a hosted model API. Once the required models and runtimes are installed, local coding and code search can work offline. Web search, online documentation fetching, and remote integrations still require their respective services. Give the agent relevant context
Search by meaning and by text. Semantic retrieval combines embeddings with lexical matches to find useful code, even when the question uses different words from the implementation. The index updates incrementally, accounts for unsaved editor content, and checks that retrieved snippets are current. Local embeddings are available by default; a compatible hosted embedding endpoint is optional. Index documentation with a defined scope. Add a documentation source in Settings > Indexing & Docs, choose a page or section, and optionally specify topics and excluded paths. Discovery builds a finite page plan from the source, navigation, Fetched pages do not add more links to the plan. Request, download, and time limits bound each run; duplicate content is filtered and unchanged embeddings can be reused. If an update fails, the previous usable index is preserved. Reference indexed documentation with Adapt the workflow
Language navigation uses installed VS Code language providers, browser tools require an installed browser, and Docker execution requires a running engine and an existing image. Remote jobs use a configured worker and a committed repository revision; applying the returned patch is a separate review step. Your data and connectionsConversations, drafts, indexes, and edit-recovery data are stored locally by the extension. API keys and account tokens use VS Code SecretStorage. Model inference runs at the endpoint you choose. Hosted models and embeddings receive the context needed for their requests; documentation fetching, browser tools, MCP servers, hooks, and remote workers use the services you configure or invoke. For a local workflow, select local inference and embeddings and keep external tools disabled when you do not need them. DevelopmentUse Node.js 22, pnpm, Git, and VS Code to build the extension.
Open the repository in VS Code and press Checks
Additional checks include The browser suite runs separately from unit tests. Locally it uses an installed Chrome or Edge; CI installs Chromium matched to the pinned Playwright version and requires those browser tests to run. Preview the interfaceAfter compiling, start the local preview:
Open README artwork lives in ContributingBug reports, documentation improvements, provider fixes, and pull requests are welcome. Open an issue with steps to reproduce the problem, your VS Code version, and the relevant provider or runtime. Remove credentials and private workspace content from any logs or screenshots you share. For code changes, include focused verification and screenshots when the interface changes. Keep pull requests scoped so the behavior and its validation are easy to review. LicenseOpenCursor is available under the MIT License. Credits
Thank you to these projects and their contributors. |