The independent coding harness for serious work.
One signed Rust binary. Local sandbox & network proxy. Auto mode. Any provider.
curl -fsSL https://megacode-harness.vercel.app/install.sh | sh
Sandboxed and hands-off.
The OS confines every command, a built-in proxy gates the network, and a judge approves the routine.
- Sandboxed by the OSSeatbelt on macOS. bubblewrap on Linux and WSL2.
- A judge for the routineDecision model based. Risky commands come to you.
- Steer instead of stoppingDeny a command with a note and the agent adjusts mid-turn.
- Keys out of reach
~/.ssh, cloud logins and tokens stay out of the box. Host-bound secrets inject at the proxy. - Built-in network proxyOff by default. Allowlist hosts through the in-process proxy, or approve per command.
- Writes stay in the projectOnly the project and a temp folder are writable.
Batteries included.
For those who just need to get stuff done.
Subagents
Parallel background helpers — even across different models and providers.
Side questions
Ask while a tool is still running.
Undo
Snapshots before every edit and shell command — even files git doesn't track.
Away mode
Walk away mid-task safely: /away refuses risky asks, blocks escapes, and trips a breaker.
Hooks
Sandboxed gates before tools, on prompts, or at turn-end until checks pass.
Tunable guardrails
Hidden files, protected paths, network allowlists, and judge rules in one config.toml.
MCP
Sandboxed local servers and remote HTTPS endpoints, allowlisted per tool.
Native scrollback
Real terminal output — no more broken scrollback, copy-paste, or tmux panes.
Any provider.
Bring your API keys, or sign in with your ChatGPT subscription.
- Anthropic
- OpenAI
- Gemini
- xAI
- Z.ai
- DeepSeek
- Moonshot AI
- Hugging Face
- OpenRouter
- Together
- Amazon Bedrock
- Ollama
- LM Studio
ChatGPT subscription
Use your ChatGPT plan directly. No separate API billing.
/login openaiLocal & custom
Ollama, LM Studio, or any OpenAI or Anthropic-compatible endpoint.
[providers.<name>]
No key? Use ours.
Hosted models, free for a limited time.
$0for now
A paid plan comes later.
/loginSign in with Google.
- mega:full
- The main model.
- mega:flash
- Lighter. Runs the sub-agents.
- Auto mode
- The judge is included. No second key.
- Daily allowance
- Resets at 00:00 UTC.
Terminal, script, or SDK.
Four ways into one core.
Bring your setup over.
Move from Claude Code or Codex in one command. Your original setup stays untouched.
/migrate claude-code/migrate codexPick what to copy from an interactive checklist. Re-run or undo anytime.
Your original files stay untouched.
- Skills
- Plain, account, and plugin skills.
- Agents
- Custom agents, with tools and model aliases translated.
- Instructions
CLAUDE.md,AGENTS.md, and rules.- Isolated copy
- Stored separately. Never reads settings, transcripts or keys.
Event-sourced architecture.
Every command, file edit, network call, and model request crosses one typed boundary into a single append-only log.
One effect boundary
Commands, files, and network share one interface, so the sandbox can't be bypassed.
Single source of truth
Conversation, cost, judge calls, hooks, and MCP exchanges all project from one local log.
Crash-safe resume
Kill the terminal mid-command and resume knowing exactly what finished and what may have partly run.
FAQ.
What leaves my machine?
Prompts go to your model. In auto mode the judge sees each command and your messages since the last compaction, with secrets redacted. The harness checks for updates and, signed in, sends daily usage counts: never prompts, files or commands. The full list.
What happens when the free period ends?
A paid plan takes over the hosted models. Your own keys and ChatGPT subscription keep working.
Can I use my ChatGPT, Claude, or Gemini subscription?
ChatGPT subscriptions work directly — sign in from the harness. For Claude and Gemini, use an API key (including any monthly API credits from your plan).
Does auto mode need a second key?
Not if you sign in: the judge is included. On your own keys alone it needs a TypeSafe key.
Can I run it in a container or VM?
Yes. Say the machine is the sandbox: mode = "external" under [sandbox].
Does it run on Windows?
Yes, through WSL2.
Install it in one line.
curl -fsSL https://megacode-harness.vercel.app/install.sh | sh megacode run /login
Linux, macOS 15.4 or later, Windows through WSL2.