Run your first context in 5 minutes. Choose your path below.
Manage contexts like a normal notes app — browse, search, and edit. No CLI required.
Recommended doc types: Project background, Known pitfalls, API contracts, Acceptance criteria
Cmd/Ctrl + KIf you use Cursor or other AI assistants, you can directly cite content from the Desktop app — no CLI needed.
| Action | Steps | Effect |
|---|---|---|
| Cite text snippet | Select text → Right-click → "Copy Citation" | Agent reads snippet + source |
| Cite document | Click citation icon next to doc title | Agent gets full doc + stable_id |
| Cite folder | Right-click folder → "Copy Folder Citation" | Agent batch-reads all docs inside |
Desktop is enough for:
You need CLI if you want:
→ Continue to Path B below for CLI setup
Let Cursor or coding agents call OpenContext as MCP tools, with beginner-friendly slash commands.
Prerequisites
Run this inside the repo where you want Cursor features:
Default Paths
~/.opencontext/contexts~/.opencontext/opencontext.dbOverride with environment variables:
Ordered from "safe default" to "powerful" — start from the top:
/opencontext-help Not sure which to use? Start here /opencontext-context (Safe default) Load background before working /opencontext-search Discover existing docs (no auto index build) /opencontext-create Draft a new doc/idea /opencontext-iterate Persist conclusions & citations These commands read/write your global OpenContext library (~/.opencontext/contexts), not the current repo.
Use OpenContext purely from the command line for management and search.
Desktop App: Auto Index
The Desktop app automatically builds and updates the search index in the background. No manual oc index build needed — just configure your embedding provider in Settings.
--mode keyword No embeddings needed
--mode vector Requires embeddings + index
--mode hybrid Requires embeddings + index (default)
CLI Index Cost Policy
When using CLI, semantic search requires oc index build which may use paid APIs. AI assistants are NOT allowed to auto-run it by default.
For CLI users: To enable hybrid/vector search, configure your embedding provider:
/opencontext-context Load project background + known pitfalls
/opencontext-search Search existing conclusions when uncertain
/opencontext-iterate Record decisions, pitfalls & next steps
OpenContext runs as a standard MCP server (stdio).
oc mcpBrowse and edit contexts in your browser without the desktop app.
Default address: http://127.0.0.1:4321
By design. Contexts are stored in a global shared library (~/.opencontext/contexts) for cross-repo reuse.
Set environment variables before running oc commands:
Index may not be built or embeddings not configured. Use keyword search/manifest first; configure embeddings and run oc index build when ready.