
curl -fsSL https://raw.githubusercontent.com/colbymchenry/codegraph/main/install.sh | shbash and it will fail) · macOS/Linux: open Terminal.▶️ Usage summary
- Install:
curl -fsSL https://raw.githubusercontent.com/colbymchenry/codegraph/main/install.sh | sh - Non-interactive (scripting / CI):
codegraph install --yes # auto-detect agents, install global - 3. Initialize Projects:
cd your-project - Add to ~/.claude.json:
{
codegraph — A pre-indexed code knowledge graph that auto-syncs on code changes, for Claude Code, Codex, Gemini, Cursor, OpenCode, AntiGravity, Kiro, Copilot, and Hermes Agent — fewer tokens, fewer tool calls, 100% local.
What is codegraph?
codegraph is a skill (a capability for AI agents such as Claude, Codex and Cursor) on GitHub (colbymchenry/codegraph). A pre-indexed code knowledge graph that auto-syncs on code changes, for Claude Code, Codex, Gemini, Cursor, OpenCode, AntiGravity, Kiro, Copilot, and Hermes Agent — fewer tokens, fewer tool calls, 100% local.
What can codegraph do?
- Prompts to install codegraph on your PATH (so agents can launch the MCP server)
- Asks whether configs apply to all your projects or just this one
- Sets up auto-allow permissions when Claude Code or Qwen Code is one of the targets
- Trust the results — don't re-verify with grep, and check the staleness banner after edits.
- Install from npm (npm i @colbymchenry/codegraph) so the matching per-platform package is fetched
- The API runs on your runtime, so it needs Node 22.5+ for the built-in node:sqlite
How to install codegraph
See the ⚡ Quick install section at the top of the page — it has a ready-to-copy command taken from the author’s README, plus where to run it. For the full instructions, see the README at the end of the page.
Frequently asked questions about codegraph
Is codegraph free?
Yes. codegraph is an open-source project on GitHub, so you can download and use it for free.
Is codegraph hard to install?
No. You only need to run one command above.
Download & source code
The source code, README and latest updates of codegraph are at github.com/colbymchenry/codegraph. The star count and update date on this page sync automatically from GitHub.
📖 Full guide
Loading the guide…