The open-source AI coding agent that works with 27 providers, remembers your preferences, coordinates across machines — all on your own hardware.
A modern AI coding agent that puts you in control — your provider, your hardware, your workflow.
OpenAI, DeepSeek, Groq, xAI, Mistral, Ollama (local), and 21 more. Switch mid-session with /model.
MiMo-inspired SQLite store with importance ranking, confidence scoring, and cross-session persistence. Auto-consolidation via Dream + Distill.
Read, Write, Edit, Grep, Bash, Browser, MCP, peer coordination, ProcessPeer, MemoryFeedback, and more — all in one bundle.
Discover Clew instances on your network. Assign tasks, sync memory, and run swarm commands across all machines in parallel.
Connect external tools via Model Context Protocol. Extend with plugins, skills via SKILL.md, or hooks at every lifecycle stage.
Track task completion with heuristic checks and independent LLM verification. Max Mode generates parallel candidates, picks the best.
Set one API key and go, or switch mid-session. Your workflow, your provider.
Install, run, and start coding. No cloud sign-up required.
Four execution layers, one coherent system.
An AI worker with a prompt, model, tools, and permissions. The main chat session is the primary agent. Extend with custom agents.
Short-lived child agents for parallel exploration, test triage, or review. The built-in Explore agent is read-only and safe.
Network of Clew instances on your LAN. Discover, message, assign tasks, and run swarm commands across machines.
Delegate to external workers like Codex via ProcessPeer. Personal profile turns Clew into a command center.
Everything you need to know about Clew Code's internals and security.
Yes. Clew Code is licensed under GPL-3.0 and is completely free to self-host. Since it connects directly to your own API providers (like OpenAI or DeepSeek) or local endpoints (like Ollama), you only pay for the API credits you actually consume.
Clew Code uses mdns (Multicast DNS) to discover other running Clew instances on your local area network (LAN). Once connected, they form a secured peer network where tasks can be shared, models can be queried in parallel, and context can be replicated across dev machines.
It's a persistent agent memory system backed by SQLite. Clew scores facts by importance and confidence. During quiet periods, Clew runs background routines (Dream & Distill) to merge overlapping memories, prune outdated ones, and build optimized semantic indexes for fast retrieval.
Yes. By configuring Ollama or Llama.cpp as your provider, Clew Code works 100% offline. All built-in tools (file viewing, writing, grep, terminal runs) run locally on your sandbox without sending any code or context to remote servers.
Clew Code prompts for permission before running any read, write, or terminal execution. You can fine-tune auto-approve rules per workspace, ensuring that commands only run once you've reviewed them.
Open source. Local-first. 27 providers. One tool.