Setup Guide
Install Dual-Graph globally once, then run it on any project in seconds. Everything runs 100% locally — no account, no API key, no cloud.
Prerequisites
- →An active Claude, OpenAI, Cursor, Gemini, OpenCode, or GitHub Copilot subscription
- →macOS, Linux, or Windows
The installer handles everything else automatically — Python, Node.js, and your chosen AI tool are installed for you if missing.
Run the installer
One command installs everything. It will ask before installing any missing dependencies (Python, Node.js, Claude Code / Codex).
1curl -sSL https://raw.githubusercontent.com/kunal12203/Codex-CLI-Compact/main/install.sh | bash2source ~/.zshrc
Run on your project
Open a new terminal, navigate to your project, and run:
1dgc . # Claude Code2dg . # Codex CLI3graperoot . --cursor # Cursor IDE4graperoot . --gemini # Gemini CLI5graperoot . --opencode # OpenCode6graperoot . --copilot # GitHub Copilot (VS Code)
Run this every time you start a project session. All six tools share the same dual-graph engine.
Run the installer
One command installs everything. It will ask before installing any missing dependencies (Python, Node.js, Claude Code / Codex).
1curl -sSL https://raw.githubusercontent.com/kunal12203/Codex-CLI-Compact/main/install.sh | bash2source ~/.bashrc
Run on your project
Open a new terminal, navigate to your project, and run:
1dgc . # Claude Code2dg . # Codex CLI3graperoot . --cursor # Cursor IDE4graperoot . --gemini # Gemini CLI5graperoot . --opencode # OpenCode6graperoot . --copilot # GitHub Copilot (VS Code)
Run this every time you start a project session. All six tools share the same dual-graph engine.
Run the installer (PowerShell)
One command installs everything. It will ask before installing any missing dependencies (Python, Node.js, Claude Code / Codex) via winget.
1Set-ExecutionPolicy RemoteSigned -Scope CurrentUser2irm https://raw.githubusercontent.com/kunal12203/Codex-CLI-Compact/main/install.ps1 | iex
Run on your project
Open a new PowerShell window, navigate to your project, and run:
1dgc . # Claude Code2dg . # Codex3graperoot . --cursor # Cursor IDE4graperoot . --gemini # Gemini CLI
Run this every time you start a project session. All six tools share the same dual-graph engine.
Per IDE
Set up with your IDE
One local MCP server. Each IDE just needs to know where to find it. Click any tool below to see exactly what to run — and run it every time you start a session.
Keep the terminal running
The launch command starts the local MCP server and stays attached. If you close the terminal window, the server stops — and your IDE will lose context. Leave it open for the whole session. To stop, press Ctrl + C in that terminal.
Claude CodeCLI agent
Run in any terminal — VS Code, JetBrains, plain shell. No IDE config needed.
$ dgc .- 1Open a terminal in your project folder.
- 2Run dgc . — Claude Code launches with the dual-graph MCP server.
- 3That's it. Hooks fire on session start to prime context.
Codex CLICLI agent
Same idea as Claude Code — runs anywhere there's a terminal.
$ dg .- 1cd into your project.
- 2Run dg . — Codex starts with the MCP server attached.
- 3Use Codex normally; the graph context is already there.
Gemini CLICLI agent
Terminal-based; works from any IDE's integrated shell.
$ graperoot . --gemini- 1From your project folder, run graperoot . --gemini.
- 2Gemini CLI opens with the MCP server connected.
- 3No IDE config file needed.
CursorAI-native IDE
Writes .cursor/mcp.json once, then Cursor finds the server every time.
$ graperoot . --cursor- 1Run graperoot . --cursor in your project — Cursor opens automatically.
- 2Open Cursor Settings → Tools & Integrations → MCP.
- 3Toggle dual-graph on. The config file is already written.
GitHub Copilot (VS Code)AI-native IDE
Writes .vscode/mcp.json — picked up by Copilot Chat in Agent mode.
$ graperoot . --copilot- 1Run graperoot . --copilot — VS Code opens with the server running.
- 2Open the Copilot Chat panel and switch to Agent mode.
- 3Enable dual-graph in the MCP servers list.
OpenCodeAI-native IDE
Writes opencode.json. No extra in-app step — shows up as '1 MCP'.
$ graperoot . --opencode- 1Run graperoot . --opencode in your project.
- 2OpenCode launches with the dual-graph MCP server pre-registered.
- 3Confirm the '1 MCP' badge in the OpenCode status bar.
Got questions?
All FAQs live in one place now.
Install issues, privacy, billing, updates — answered on the docs page.