Skip to content
Nattapong Tapachoom edited this page Jun 20, 2026 · 5 revisions

Clew Code

The open-source AI coding agent — in your terminal and on your LAN.

Clew Code is a multi-provider AI coding CLI that works with 27 AI providers, remembers your preferences across sessions, coordinates across machines on your LAN, and runs autonomously — all on your own hardware.

# Install
curl -fsSL https://raw.githubusercontent.com/ClewCode/ClewCode/main/scripts/install.sh | bash

# Run in any project
cd my-project
clew

Why Clew Code?

Feature Why it matters
27 providers Not locked into one API. Switch between OpenAI, DeepSeek, Groq, Ollama (local), and 23 more — mid-session.
Persistent memory Remembers your project context, preferences, and decisions across sessions. SQLite-backed, importance-ranked.
LAN peer swarm Multiple machines coordinate as one. Send tasks, sync memory, run shell commands on all peers in parallel.
Local-first Your API keys, your hardware. No cloud dependency. Works fully offline with Ollama.
75+ built-in tools Read, Write, Edit, Grep, Bash, Browser, MCP, peer coordination, and more.
MCP + plugins + skills Extend with external tools, community plugins, or custom skills without touching source.

Quick start

# First run
clew

# Pick a provider (inside the REPL)
> /provider openai
> /model gpt-5.5

# Or go local with Ollama
> /model ollama/llama3.3

# One-shot mode
clew -p "summarize CHANGELOG.md"

# Resume last session
clew --resume last

Getting started

  • Installation — One-liner, npm, or build from source
  • Quick-Start — First run, in-session commands, one-shot mode
  • Providers — All 27 providers and their environment variables

Reference

Deep dive

Links

Legal


Clew Code — GPL-3.0 Licensed.

Clone this wiki locally