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 ↗
clew
$ clew
Pick a provider to get started:
> /provider openai
> /model gpt-5.5
Ready. How can I help?
> /peer discover
Found 3 peers on LAN.
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

Up and running
in one command.

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

# Install (macOS / Linux)
$ curl -fsSL https://raw.githubusercontent.com/ClewCode/ClewCode/main/scripts/install.sh | bash
# Or with npm
$ npm install -g clew-code
# Run in any project
$ cd my-project
$ clew

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.

Ready to code
on your terms?

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

Install Clew Code Star on GitHub ↗