--- description: Start NanoClaw v2 — ECC's persistent, zero-dependency REPL with model routing, skill hot-load, branching, compaction, export, and metrics. --- # Claw Command Start an interactive AI agent session with persistent markdown history and operational controls. ## Usage ```bash node scripts/claw.js ``` Or via npm: ```bash npm run claw ``` ## Environment Variables | Variable | Default | Description | |----------|---------|-------------| | `CLAW_SESSION` | `default` | Session name (alphanumeric + hyphens) | | `CLAW_SKILLS` | *(empty)* | Comma-separated skills loaded at startup | | `CLAW_MODEL` | `sonnet` | Default model for the session | ## REPL Commands ```text /help Show help /clear Clear current session history /history Print full conversation history /sessions List saved sessions /model [name] Show/set model /load Hot-load a skill into context /branch Branch current session /search Search query across sessions /compact Compact old turns, keep recent context /export [path] Export session /metrics Show session metrics exit Quit ``` ## Notes - NanoClaw remains zero-dependency. - Sessions are stored at `~/.claude/claw/.md`. - Compaction keeps the most recent turns and writes a compaction header. - Export supports markdown, JSON turns, and plain text.