v0.3.2 · 27 providers · Open source

Code with
any AI, anywhere

The open-source AI coding agent that works with 27 providers, remembers your preferences, coordinates across machines — all on your own hardware.

Install Now View on GitHub ↗
27
AI Providers
75+
Built-in Tools
100+
Slash Commands
3
Platforms

Everything you need,
nothing you don't.

A modern AI coding agent that puts you in control — your provider, your hardware, your workflow.

27 Providers

OpenAI, DeepSeek, Groq, xAI, Mistral, Ollama (local), and 21 more. Switch mid-session with /model.

Persistent Memory

MiMo-inspired SQLite store with importance ranking, confidence scoring, and cross-session persistence. Auto-consolidation via Dream + Distill.

75+ Built-in Tools

Read, Write, Edit, Grep, Bash, Browser, MCP, peer coordination, ProcessPeer, MemoryFeedback, and more — all in one bundle.

LAN Peer Swarm

Discover Clew instances on your network. Assign tasks, sync memory, and run swarm commands across all machines in parallel.

MCP + Plugins

Connect external tools via Model Context Protocol. Extend with plugins, skills via SKILL.md, or hooks at every lifecycle stage.

Goal Verification

Track task completion with heuristic checks and independent LLM verification. Max Mode generates parallel candidates, picks the best.

Pick your poison.
Or switch anytime.

Set one API key and go, or switch mid-session. Your workflow, your provider.

OpenAI
Google Gemini
DeepSeek
Groq
xAI (Grok)
Mistral
Cohere
Perplexity
Cerebras
Moonshot (Kimi)
Zhipu (GLM)
NVIDIA NIM
OpenRouter
OpenCode
KiloCode
Ollama (Local)
Together AI
Fireworks AI
Deep Infra
SiliconFlow
Hugging Face
Poe
DigitalOcean
Cline
Custom API Gateway

Up and running
in one command.

Install, run, and start coding. No cloud sign-up required.

curl -fsSL https://raw.githubusercontent.com/ClewCode/ClewCode/main/scripts/install.sh | bash
irm https://raw.githubusercontent.com/ClewCode/ClewCode/main/scripts/install.ps1 | iex
npm install -g clew-code

Simple by design.

Four execution layers, one coherent system.

Agent

An AI worker with a prompt, model, tools, and permissions. The main chat session is the primary agent. Extend with custom agents.

Subagent

Short-lived child agents for parallel exploration, test triage, or review. The built-in Explore agent is read-only and safe.

LAN Peer

Network of Clew instances on your LAN. Discover, message, assign tasks, and run swarm commands across machines.

Process Peer

Delegate to external workers like Codex via ProcessPeer. Personal profile turns Clew into a command center.

Frequently Asked
Questions

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.

Ready to code
on your terms?

Open source. Local-first. 27 providers. One tool.

Install Clew Code Star on GitHub ↗