✓ OpenCode Desktop✓ OpenCode TUIClaude Code — soonCodex — soonCursor — soon

Your codebase, pre-computed before the LLM sees a single token.

OpenKrak runs the Dorchester engine on your repo — dependency graphs, hotspot scoring, blast radius analysis — and delivers a structured brief to the LLM before it touches a single file. Supports TypeScript, JavaScript, Python, Go, Rust, Java, and C#.

INSTALL
npm install -g openkrak-mcp
TUTORIAL
1
Install OpenKrak
npm install -g openkrak-mcp

Requires Node.js ≥ 18.

2
Open your OpenCode config

In OpenCode Desktop: Settings → MCP → Edit Config File. Or open manually:

Windows: C:\Users\<username>\.config\opencode\opencode.jsonc
macOS / Linux: ~/.config/opencode/opencode.jsonc
3
Add OpenKrak to the config
{ "$schema": "https://opencode.ai/config.json", "mcp": { "openkrak": { "type": "local", "enabled": true, "command": ["npx", "--yes", "openkrak-mcp"] } } }
4
Restart OpenCode

Restart OpenCode Desktop. Look for the green MCP dot in the bottom status bar — "openkrak Connected".

5
Run your first analysis

Open a repo in OpenCode and send:

analyze_repo on /path/to/your/repo

OpenKrak also runs automatically when you give OpenCode a coding task — no manual invocation needed.

AVAILABLE TOOLS
analyze_repo
When: Before any coding task on a new repo.
Full pipeline. Returns dependency graph, hotspot rankings, blast radius, and threat matrix.
analyze_repo on /path/to/repo with objective "refactor auth module"
get_mahadata
When: When you need repo-wide context mid-session.
Compact repo brief — structure, entry points, constraints, risk score.
get_mahadata on /path/to/repo
get_hotspots
When: Before reviewing or refactoring.
Ranked list of high-risk files by complexity, coupling, and change frequency.
get_hotspots on /path/to/repo
blast_radius
When: Before modifying a critical file.
Impact map — which files, modules, and APIs are affected.
blast_radius on /path/to/repo for file src/api/routes/user.ts
Pro license

Add your key to the MCP config to activate unlimited queries:

"env": { "OPENKRAK_KEY": "your-key" }
THE ENGINE
/1
Scan every file, map every dependency
DeepStrike

Full static analysis across your entire repo. Every import, every export, every coupling resolved before the LLM ever runs.

/2
Rank complexity, surface risk
Hotspot Registry

Files ranked by change frequency, coupling density, and cognitive load. The LLM goes where it matters.

/3
Trace impact across the codebase
Blast Radius

Change one file and know exactly what breaks. Dependency chains mapped before you commit.

/4
Structured context, not raw tokens
Mahadata

Execution brief instead of 50,000 tokens of raw code. The LLM reads signal, not noise.

~18K
tokens total with Dorchester vs 59K–63K without — zero manual file reads
70–92%
token reduction benchmarked on real repositories
10 tools
available via MCP — topology, hotspots, blast radius, dead code, cycles, security, and more
THIS MONTH
0
tokens saved by OpenKrak.
Reset every month.
ALL TIME
0
tokens never sent to an LLM.
Saved. Every analysis. Compounding.
PLANS

Free tier: 15 queries per 24-hour rolling window, no account needed. Pro: unlimited. Activate with OPENKRAK_KEY=your-key in your MCP config.

FREE
$0
forever
Full MCP server. 15 queries per 24h rolling window, no account, no signup required.
-Full Dorchester analysis
-All 10 MCP tools
-15 queries / 24h rolling
-No account required
Install Free
PRO MONTHLY
$8
per month · 31-day license key
Unlimited queries. No daily cap. Dorchester runs on every session, every task.
Everything in Free
Unlimited queries
31-day license key via email
No subscription, no auto-renewal
PRO ANNUAL
SAVE 30%
$67
per year · 366-day key
approx $5.60/month
Everything in Pro Monthly
366-day license key
Save $28.80 vs monthly

Secure checkout via Payhip · License key delivered instantly to your email · No subscription, no auto-renewal