Minimal overhead. Maximum agent.
Lean context, native speed, open all the way down.
English · 简体中文
Open the full-quality intro ↗- Small and fast — A single native Go binary with minimal context overhead. No Node.js or Python required.
- A less opinionated harness — A model-agnostic runtime with a consistent interface for shaping agent behavior through system prompts, personas, skills, and tools.
- Multi-agent coordination — Subagents, cross-session messaging, and Flow collaboration blueprints.
- Control and visibility — Configure execution permissions and inspect model context and tool calls.
The name — San, written 三 ("three") and drawn ☰. From the Dao De Jing, 三生万物 — "three begets the ten-thousand things": one runtime that becomes any agent, running a three-step loop (reason → act → observe). The command stays san.
macOS / Linux — choose one:
# Homebrew
brew install genai-io/san/san
# Or use the install script
curl -fsSL https://raw.githubusercontent.com/genai-io/san/main/install.sh | bashWindows (PowerShell)
irm https://raw.githubusercontent.com/genai-io/san/main/install.ps1 | iexOther installation methods, updates and uninstall
Uninstall
# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/genai-io/san/main/install.sh | bash -s uninstall# Windows (PowerShell)
& ([scriptblock]::Create((irm https://raw.githubusercontent.com/genai-io/san/main/install.ps1))) uninstallGo Install (requires Go 1.26.9+)
go install github.com/genai-io/san/cmd/san@latestBuild from Source
git clone https://github.com/genai-io/san.git
cd san
go build -o san ./cmd/san
mkdir -p ~/.local/bin && mv san ~/.local/bin/Updates
- Automatic: new releases install in the background; the status line prompts you to restart.
- Manual: run
san update, orbrew update && brew upgrade genai-io/san/sanfor Homebrew installations. The Homebrew formula syncs daily, so newly published releases may take time to appear. - Disable automatic updates: use
/settings› General or setSAN_DISABLE_AUTOUPDATE=1.
Run san, then choose a model and add its API key when prompted.
san # interactive
san "explain this function" # one-shot
san -p "do something" # print mode (no TUI), pipe-friendly
san --continue # resume the latest session
san --resume # pick a past session to resumeUse san --help for CLI options and /help for interactive commands.
Compared with Claude Code v2.1.112 on Apple Silicon, same model (claude-sonnet-4-6):
| Metric | San | Claude Code | Advantage |
|---|---|---|---|
| Download size | 12 MB | 63 MB (+ Node.js 112 MB) | 5x smaller |
| Disk footprint | 38 MB | 175 MB | 4.6x smaller |
| Startup time | ~0.01s | ~0.20s | 20x faster |
| Startup memory | ~32 MB | ~189 MB | 5.8x less |
| Simple task | ~2.4s / 39 MB | ~10.4s / 286 MB | 4.3x faster, 7.3x less memory |
| Tool-use task | ~3.3s / 39 MB | ~26.0s / 285 MB | 7.9x faster, 7.2x less memory |
| Harness context* | ~2.3k tokens | ~20.9k tokens | ~9x leaner |
*Context overhead is system prompt + tool schemas on an empty first turn, measured separately on San v1.22.0 vs Claude Code v2.1.220 — see method. All other rows are from the v1.13.2 / v2.1.112 run.
Comparable feature sets — the gap is client-side overhead, not capability. docs/operations/benchmark.md
- Get started — install San and run your first session.
- Features · San blog — browse capabilities or see them in use.
- Guides — configure and extend San.
- Documentation index — find concepts, package internals, and contributor resources.
- Claude Code — Anthropic's AI coding assistant
- Aider — AI pair programming in terminal
- Continue — Open-source AI code assistant
Two ways in — WeChat for the Chinese community, Slack for everyone else:
- WeChat — 关注公众号「极客外传」· 回复
san或三入群 - Slack — Join our Slack
Contributions welcome! See CONTRIBUTING.md for guidelines.
Apache License 2.0 - see LICENSE for details.