v0.2.4 — 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.

npm install -g clew-code GitHub →
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, Copilot, 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

### 24/7 Autonomous Mode

Persistent daemon with task queue, auto-scheduling, health checks, auto-respawn, and worker session orchestration.

/daemon /task

### Smart Memory

Cross-lingual semantic search, hybrid recall (local + LLM), auto-memory capture, and team sync.

/memory

### 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.

Category | Commands | Description
--- | --- | ---
Files | `/read` `/edit` `/write` `/glob` `/grep` | Read, edit, create, and search files
Git | `/diff` `/commit` `/branch` | Version control operations
Model | `/model` `/provider` `/cost` `/usage` `/stats` | Switch models and track usage
Session | `/clear` `/compact` `/resume` `/session` `/rewind` | Context and session management
Config | `/permissions` `/plan` `/config` `/theme` | Settings and preferences
Extend | `/plugin` `/skill` `/agent` `/agents` `/mcp` | Plugins, skills, agents, MCP
Peer | `/peer` `/peer share` `/peer discover` `/peer join` `/peer list` `/peer todo` `/peer name` `/peer role` | LAN peer discovery, task delegation, and role management
Daemon | `/daemon` `/task` `/loop` | 24/7 autonomous agent, task queue, and recurring tasks
Automation | `/autofix-pr` | Fix CI errors and review comments on a PR via Clew on the web
System | `/help` `/status` `/doctor` `/exit` | Help, diagnostics, and exit

## AI Providers

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

Provider | Config | Models
--- | --- | ---
Anthropic | `ANTHROPIC_API_KEY` | claude-opus-4-7, claude-sonnet-4-6
OpenAI | `OPENAI_API_KEY` | gpt-5.5, gpt-5.4-mini
Google | `GOOGLE_API_KEY` | gemini-3.1-pro, gemini-3.1-flash
DeepSeek | `DEEPSEEK_API_KEY` | deepseek-v4-pro, deepseek-v4-flash
OpenRouter | `OPENROUTER_API_KEY` | 100+ models via routed API
Ollama | `OLLAMA_HOST` | llama3.3, llama4:70b, qwen3.6
xAI | `XAI_API_KEY` | grok-4.3
Mistral | `MISTRAL_API_KEY` | mistral-large-3, mistral-small-4
Groq | `GROQ_API_KEY` | llama-3.3-70b, deepseek-v4
Cohere | `COHERE_API_KEY` | command-a-plus
Copilot | `COPILOT_GITHUB_TOKEN` | claude, GPT models
KiloCode | `KILOCODE_API_KEY` | kilo-auto/free, kilo-auto/balanced

## Plugins & Skills

Extend functionality with built-in and marketplace plugins.

Plugin | Description
--- | ---
`commit-commands` | Git workflow: commit, push, PR creation
`code-review` | Automated PR code review
`feature-dev` | Guided feature development with agents
`frontend-design` | Production-grade UI/UX generation
`verify` | Typecheck, lint, build, and test
`debug` | Debugging assistance
`commit` | Conventional git commits
`simplify` | Code quality and reuse review
`web-search` | Multi-provider web search
`scrapling` | Web scraping with Scrapling
`skillify` | Create skills from workflows
`remember` | Save user preferences

## v0.2.4 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 →