18MB binary. Four LLM providers. Six chat adapters. Multi-agent orchestration. Zero dependencies. From your terminal to your phone.
A complete agent runtime in a single binary
Four patterns: Supervisor, Pipeline, Parallel, and Debate. Run complex workflows with specialized agents working together.
Per-tool danger levels with approval workflows. Credential scanning. Path traversal guards. No secrets leak.
Read, write, edit files. Execute shell commands. Search code. Git integration. Your agent can do anything your CLI can.
Run agents overnight on cron schedules. PR reviews at 9 AM. Security scans at 2 AM. Daily briefings for your team.
Three-tier memory system — episodic, semantic, procedural. SQLite-backed. Your agent remembers across sessions.
Connect to any MCP tool server. Discover tools automatically. Extend your agent with any capability.
Built-in web interface. Access from any browser, any device. Deploy once, use from your phone at night.
Smart history trimming, tool result truncation, token budget allocation. Following Anthropic's production guidelines.
Microdollar accounting with daily/monthly budgets. Know exactly what each agent costs. No surprise bills.
Six ways to talk to your agents
Use the right model for each task
Claude Sonnet, Opus, Haiku
API keyGemini 2.5 Flash & Pro
GCP creditsGPT-4o, GPT-4o-mini
API keyLlama, Mistral, any local
Free & offlineMarsClaw vs the alternatives
| OpenClaw | PicoClaw | ZeroClaw | MarsClaw | |
|---|---|---|---|---|
| Language | TypeScript | Go | Rust | Go |
| Binary | npm install | 8MB | 3.4MB | 18MB |
| Memory | 200MB+ | <20MB | <15MB | <50MB |
| CVEs | 512+ | 0 | 0 | 0 |
| Multi-agent | ✕ | ✕ | ✕ | 4 patterns |
| Providers | 1 | 1 | 1 | 4 |
| Web UI | ✓ | ✕ | ✕ | ✓ |
| Chat adapters | ✕ | ✕ | ✕ | 6 |
| MCP client | ✕ | ✕ | ✕ | ✓ |
| Scheduled tasks | ✕ | ✕ | ✕ | ✓ |
| Persistent memory | ✕ | ✕ | ✕ | ✓ |
| Cost tracking | ✕ | ✕ | ✕ | ✓ |
| Offline mode | ✕ | ✕ | ✕ | ✓ |
One command to install. One command to run.
# Install
go install github.com/marsstein/marsclaw/cmd/marsclaw@latest
# Set your API key (pick one)
export GEMINI_API_KEY="..."
export ANTHROPIC_API_KEY="..."
export OPENAI_API_KEY="..."
# Run
marsclaw "explain this codebase"
# Or start the Web UI
marsclaw serve
# Or use offline with Ollama (free)
marsclaw -m llama3.1 "review this code"
Open source. Apache 2.0. Built by Marsstein.