v0.2.7 — Multi-Provider AI CLI

Code with
any model

A terminal-based AI coding assistant with multi-provider routing, extensible plugin architecture, and a comprehensive tool system for professional development workflows.

clew — ~/project
$ clew ╭──────────────────────────────────────────╮ │ Clew · model: deepseek-v4-flash │ │ provider: DeepSeek · context: 78% │ ╰──────────────────────────────────────────╯ > "find all unused exports in src/" Searching 3 files... Found 2 unused exports.
27
AI Providers
80+
Slash Commands
50+
Built-in Tools
100%
Open Source

Features

Everything you need for AI-assisted development — from a single terminal.

Multi-Provider Routing

Switch between Anthropic, OpenAI, Google Gemini, DeepSeek, OpenRouter, Ollama, xAI, Mistral, Groq, Cohere, KiloCode, and OpenAI-compatible endpoints at runtime.

/model /provider

65+ Built-in Tools

Read, Edit, Write, Glob, Grep, Bash, Web Search, Research, MCP, LSP, Agent, Task, Monitor, and Workflow tools.

/tools

Plugin System

Extend with commands, agents, skills, hooks, and MCP servers. Pre/post tool hooks for custom automation.

/plugin /skill

Agent View

Multi-session dashboard with supervisor daemon, background tasks, IPC communication, worktree isolation, PR column display, dispatch autocomplete, and keyboard shortcuts.

/agents

Background Shell

Run long-lived commands as persistent background agent tasks with !bg <command>. Live status, exit codes, stderr capture, and full dashboard integration.

!bg

Peer-to-Peer

LAN peer discovery, task delegation, role-based naming, and autonomous AI peer coordination across machines.

/peer peer_send_task

Bridge Mode

WebSocket remote collaboration with session sharing, team onboarding, and mobile/web clients.

Bridge

KiloCompact

Local context compaction: log/trace snipping, failed-state consolidation, semantic turn pruning.

/compact

Permission Modes

Default, Auto, Plan, YOLO Lite, YOLO, YOLO MAX — granular control over tool execution safety.

/permissions

Preference Learning

Local-first taste system that learns your coding style from accept/reject/edit signals. Interactive menu, edit validation, config live-reload, and prompt injection.

/taste

Quick Start

From zero to coding in under a minute.

bash
$ npm install -g clew-code
$ export ANTHROPIC_API_KEY=sk-ant-...
$ clew

# Ask a question
> "find all unused exports in src/"

# Switch model on the fly
> /model deepseek-v4-flash

# Context management
> /clear    # Fresh start
> /compact # Compress context
> /resume  # Resume last session

Slash Commands

80+ commands to control every aspect of your workflow.

CategoryCommandsDescription
Files/read /edit /write /glob /grepRead, edit, create, and search files
Git/diff /commit /branchVersion control operations
Model/model /provider /cost /usage /statsSwitch models and track usage
Session/clear /compact /resume /session /rewindContext and session management
Config/permissions /plan /config /themeSettings and preferences
Extend/plugin /skill /agent /agents /mcpPlugins, skills, agents, MCP
Peer/peer /peer share /peer discover /peer join /peer list /peer todo /peer name /peer roleLAN peer discovery, task delegation, and role management
Daemon/daemon /task /loop24/7 autonomous agent, task queue, and recurring tasks
Automation/autofix-prFix CI errors and review comments on a PR via Clew on the web
System/help /status /doctor /exitHelp, diagnostics, and exit

AI Providers

Bring your own key — use the model that works best for each task.

ProviderConfigModels
AnthropicANTHROPIC_API_KEYclaude-opus-4-7, claude-sonnet-4-6
OpenAIOPENAI_API_KEYgpt-5.5, gpt-5.4-mini
GoogleGOOGLE_API_KEYgemini-3.1-pro, gemini-3.1-flash
DeepSeekDEEPSEEK_API_KEYdeepseek-v4-pro, deepseek-v4-flash
OpenRouterOPENROUTER_API_KEY100+ models via routed API
OllamaOLLAMA_HOSTllama3.3, llama4:70b, qwen3.6
xAIXAI_API_KEYgrok-4.3
MistralMISTRAL_API_KEYmistral-large-3, mistral-small-4
GroqGROQ_API_KEYllama-3.3-70b, deepseek-v4
CohereCOHERE_API_KEYcommand-a-plus
CopilotCOPILOT_GITHUB_TOKENclaude, GPT models
KiloCodeKILOCODE_API_KEYkilo-auto/free, kilo-auto/balanced

Plugins & Skills

Extend functionality with built-in and marketplace plugins.

PluginDescription
commit-commandsGit workflow: commit, push, PR creation
code-reviewAutomated PR code review
feature-devGuided feature development with agents
frontend-designProduction-grade UI/UX generation
verifyTypecheck, lint, build, and test
debugDebugging assistance
commitConventional git commits
simplifyCode quality and reuse review
web-searchMulti-provider web search
scraplingWeb scraping with Scrapling
skillifyCreate skills from workflows
rememberSave user preferences

v0.2.7 Updates

  • Peer-to-peer collaboration — LAN peer discovery via UDP multicast + file registry. Share as worker, discover peers, join by port, assign tasks, set names and roles. Interactive /peer menu with keyboard navigation. 9 AI tools for autonomous coordination.
  • Taste system — Local-first preference-learning runtime. Interactive /taste menu with Spinner loading, edit validation in permission dialogs, status line in footer, config live-reload, and prompt injection with <clew_taste> block.
  • Model picker grouped by provider — /model now shows all models from all providers in separate named sections instead of only the active provider's models.
  • Provider auto-persist — Last-used provider+model saved to provider.json without --global.
  • Security hardening — PowerShell prefix/wildcard rules, malformed tool call guard, bash 100MB output limit, Guardian auto-review with circuit breaker.
  • Bridge v2 — Provider-agnostic WebSocket remote control, relay client, REPL bridging.
  • PR commands — /pr create, list, view, review, merge, status.
Full Changelog →