Clew Code Docs
Open-source AI coding agent — local-first, multi-provider, in your terminal.
Clew Code is a terminal-native AI coding agent that routes work across 29+ LLM providers, 76+ built-in tools, persistent SQLite memory, and LAN peer machines — without locking your workflow to one AI.
Getting Started
- Quick Start — Launch the CLI and start coding in minutes
- Installation — One-liner, npm, or build from source
- CLI Reference — Full CLI usage, providers, memory, peers, and config
Key Features
| Feature | Description |
|---|---|
| 29+ Providers | OpenAI, DeepSeek, Groq, Anthropic, Google, Ollama (local), OpenGateway, and 24 more. Switch mid-session with /model. |
| Persistent Memory | SQLite-backed, MiMo-inspired store with importance ranking, Dream + Distill consolidation. |
| 76+ Built-in Tools | Read, Write, Edit, Grep, Bash, Browser, MCP, peer coordination, ExecAgent, Goal, and more. |
| LAN Peer Swarm | Zero-config peer discovery with UDP multicast. Sync memory, delegate tasks, swarm commands. |
| MCP + Plugins + Skills | Model Context Protocol, lifecycle hooks, SKILL.md, and plugin marketplace. |
| Background Daemon | Task queue, cron scheduling, dead-letter retries, memory maintenance. |
All Documentation
Reference
- Commands Reference — 100+ slash commands
- Configuration Guide — Settings, hooks, permission modes
- Providers — All 29+ providers and environment variables
- CLI Reference — Full CLI usage, flags, sessions
- Security & Permissions — Permission scopes, guardian system
Concepts
- Execution Layers: Agents, Subagents, Peers — Architecture overview
- Profiles: Coding vs Personal — Command center mode, ExecAgent delegation
- Project Rules — Auto-observed behavioral rules per project
- Workspace Linking — Cross-repo project linking
- SQLite Memory System — Long-term memory internals
- Peer-to-Peer LAN Swarm — Discovery, messaging, swarm execution
Extending
- Model Context Protocol (MCP) — Connect external tools and APIs
- Skills System — Automate repeatable workflows
- Plugins System — Lifecycle hooks and customization
Development
- Development Guide — Build, test, project layout
- Code Intelligence — CodeGraph, graphify, LSP
- Troubleshooting — Common issues and fixes
- Contributing — How to contribute
Links
Clew Code — GPL-3.0 Licensed