1. Local Disk Discovery
When you log into the official Claude Code CLI, Codex CLI, or Grok CLI, your authenticated session tokens are stored locally on disk (in ~/.claude.json, ~/.codex/auth.json, and ~/.grok/auth.json).
Zero API Keys Needed · Active Subscriptions Auto-Bridged · Native MCP & CLI
Stop copy-pasting code between browser tabs. MegaPad automatically bridges your existing Claude Code, ChatGPT Plus / Codex, and Grok CLI logins into one local control plane. Race frontier models head-to-head in your terminal, or consult peer models inside Claude Code and Cursor over native MCP.
See It in Action
Both models run concurrently against your exact prompt. Compare architectures, inspect microsecond latency, token throughput, and exact cost side-by-side in your terminal.
┌──────────────────────────┬────────┬──────────┬──────────┬──────────┬───────────┬─────────────┬──────────────────┐
│ Provider / Model │ Status │ Latency │ In / Out │ Total │ Speed │ Cost (USD) │ vs Claude Cost │
├──────────────────────────┼────────┼──────────┼──────────┼──────────┼───────────┼─────────────┼──────────────────┤
│ OpenAI GPT-6 Astra │ ✔ OK │ 1,020ms │ 120/510 │ 630 │ 130 tok/s │ $0.00000 │ $0 Extra (Codex) │
│ Claude Fable 5.1 │ ✔ OK │ 1,140ms │ 120/480 │ 600 │ 110 tok/s │ $0.00000 │ Base (100%) │
└──────────────────────────┴────────┴──────────┴──────────┴──────────┴───────────┴─────────────┴──────────────────┘
Total Parallel Wall Clock Time: 1,142ms
pub struct LockFreeQueue<T> {
buffer: Vec<AtomicPtr<T>>,
read_idx: CachePadded<AtomicUsize>,
write_idx: CachePadded<AtomicUsize>,
}
// Cache-padded atomic indices prevent false sharing between CPU cores
pub struct RingBuffer<T> {
buffer: Box<[UnsafeCell<MaybeUninit<T>>]>,
head: AtomicUsize,
tail: AtomicUsize,
capacity_mask: usize,
}
// CAS-free atomic ring buffer using power-of-two masking
Get Started in 30 Seconds
Just like Caveman and CodeGraph, MegaPad is built to get out of your way and start working in seconds.
Install MegaPad globally via npm, or run directly using npx. Everything is self-contained with zero runtime dependencies.
Run pad status. MegaPad automatically discovers existing login sessions from your disk. No API key copy-pasting required.
Run head-to-head duels from your terminal, or ask Claude inside Claude Code / Cursor to consult GPT-6 via native MCP tools.
Flexible Developer Workflow
Whether you love fast terminal commands or want Claude Code and Cursor to consult rival models automatically, MegaPad fits your workflow.
pad)Lightweight, blazing-fast terminal companion for side-by-side model races, granular duels, and git diff peer reviews.
pad "How do I optimize this Postgres query?" executes across all available engines at once.pad vs grok "prompt" or pad vs deepseek "prompt" pits your primary model against a specific rival.git diff | pad review sends your staged git changes to a council of OpenAI + DeepSeek for edge cases.Turn your active AI coding agent into a multi-model orchestrator. Auto-configured over stdio with zero background daemons.
npx mechapad install detects and configures Claude Code and Cursor automatically.megapad_consult_peer.megapad_council_code_review to find security vulnerabilities and memory bugs before applying edits.Zero API Key Architecture
You already pay $20/month for AI subscriptions. MegaPad makes sure you never pay twice for API tokens.
When you log into the official Claude Code CLI, Codex CLI, or Grok CLI, your authenticated session tokens are stored locally on disk (in ~/.claude.json, ~/.codex/auth.json, and ~/.grok/auth.json).
MegaPad reads those credentials directly on localhost. Prompts and responses stream straight between your terminal and the official endpoints over stdio. No third-party servers, no middleman proxy.
Because your queries run through your existing flat-rate subscriptions (ChatGPT Plus, Claude Pro, Grok), you don't burn through costly API credit cards. Routine tasks route to Gemini Flash (100% free) or DeepSeek for pennies.
Scientific Telemetry
Every time you run a query, MegaPad measures microsecond latency, input/output token counts, exact generation speed in tokens/second, and calculates exact dollar cost vs Claude Fable 5.1.
| Provider / Model | Status | Latency | Speed | Per-Query Cost | vs Claude Cost |
|---|---|---|---|---|---|
| Claude Fable 5.1 / Sonnet 5 | Active Session | 1,140ms | 110 tok/s | $0.00000 | $0 Extra (Claude Sub) |
| OpenAI GPT-6 Astra / Sol | Active Session | 1,020ms | 130 tok/s | $0.00000 | $0 Extra (Codex Sub) |
| Grok 4.6 / Build | Active Session | 1,620ms | 69 tok/s | $0.00000 | $0 Extra (Grok Sub) |
| Kimi K2.7 Code / TC | Active Cloud | 480ms | 195 tok/s | $0.00011 | 98% Cheaper |
| DeepSeek V4.1 Flash / R1 | Active Cloud | 689ms | 185 tok/s | $0.00010 | 97% Cheaper |
| Gemini 3.8 Flash | Free Forever | 940ms | 145 tok/s | $0.00000 | 100% Free ($0) |
Native Model Context Protocol
Zero background daemons to manage. Wire MegaPad into your active AI coding agent in one command.
One command scans and auto-configures Claude Code, Cursor, and Codex CLI:
npx mechapad install
Provides megapad_compare, megapad_consult_peer, and megapad_council_code_review tools inside your active editor.
Runs cleanly over stdio. Starts when your AI agent runs, stops when it exits. No persistent memory leaks, no background batteries drained.
The Cost Slasher
MegaPad routes your routine coding tasks to free and ultra-cheap models (DeepSeek, Gemini Free Tier), reserving expensive frontier models only for complex architectural decisions.
ChatGPT Plus ($20) + Claude Pro ($20) + Cursor Pro ($20) + Grok ($40)
Open-source software. Run models concurrently on your machine.
Install via NPXFrequently Asked Questions
Straight answers on local session auth, MCP integration, and multi-model workflows.
MegaPad automatically reads session credentials from your local configuration files (like ~/.claude.json, ~/.codex/auth.json, and ~/.grok/auth.json). You use the flat-rate subscriptions you already pay for instead of paying twice for API tokens.
MegaPad executes prompts across frontier models concurrently with zero manual copying. You get exact microsecond latency, tokens/second speed benchmarks, and full code responses side-by-side in your terminal or IDE without context switching.
Yes. MegaPad is a Native Model Context Protocol (MCP) server. Running npx mechapad install configures your Claude Code and Cursor environments to provide multi-model compare, peer consultation, and review tools directly inside your editor.
MegaPad natively supports Claude (Fable 5.1, Sonnet 5), OpenAI (GPT-6 Astra, Sol, 4o), Grok (4.6, Build), Kimi (K2.7 Code / TC), DeepSeek (V4.1 Flash, R1), and Gemini (3.8 Flash, Free Tier). You can race models in parallel or duel them 1-on-1 with live telemetry.
No. MegaPad auto-bridges your existing local session credentials from ~/.claude.json, ~/.codex/auth.json, and ~/.grok/auth.json. You use the subscriptions you already pay for. Routine edits can also route to Gemini 3.8 Flash (100% free forever) or local DeepSeek via Ollama for zero-cost operation.
No. MegaPad is 100% open-source and runs entirely on your local machine. Prompts and code are sent only to official model endpoints using your own authenticated sessions over stdio.
Get Started in Seconds
No signup. No credit card. Install globally and run your first multi-model duel.