codegraph install guide

Install codegraph on Windows, macOS or Linux

Pre-indexed code knowledge graph, 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

★ 72k stars WindowsmacOS and Linux README verified

Install codegraph with one command

Pick your system, reveal the command, copy it, paste it into your terminal and press Enter. This command was taken from the project's own documentation and checked against it.

PowerShell

What exactly does this do?

On Windows, open PowerShell (press Win, type PowerShell, hit Enter) and paste the command. On macOS or Linux, open Terminal — on a Mac it's in Applications ▸ Utilities, or press Cmd+Space and type Terminal — and paste the command there.

Run codegraph --help to see the available commands, and codegraph --version to confirm the install worked. If your shell complains about permissions, that project usually documents a corrected command on its own site.

This asks PowerShell to download a small installer script from the project, then execute it in memory. Nothing is saved to disk. The script is the project's own, but it's worth reading it first — that's why there's a note above.

What codegraph does

  • Ask whether configs apply to all your projects or just this one
  • Trust the results — don't re-verify with grep, and check the staleness banner after edits
  • TypeScript types ship with the package. As with any Node-targeting library
  • Mixed iOS / React Native / Expo bridging
  • Set up auto-allow permissions when Claude Code is one of the targets
  • Files larger than 1 MB — generated bundles, minified JS, vendored blobs

Summarised from codegraph's own README.

About codegraph

Pre-indexed code knowledge graph, 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

CategoryAI agent
Install methodPowerShell one-liner (irm | iex)
Windowsdocumented install command available
macOS / Linuxdocumented install command available
PriceFree and open source
Command verifiedYes — checked against the project README
Popularity72k stars on the project's public repository

On mobile

codegraph is a command-line tool, so there is no phone app for it — a phone has no shell to run it in. You'll need a desktop, or a remote shell into a machine that has one.

codegraph is developed by its own authors. This page is an independent reference; we are not affiliated with or sponsored by the project. The command shown here was reproduced from the project's public documentation — always check the project's own documentation before running anything.