AI agent in
your terminal

One-shot questions, interactive REPL, pipe mode.
Powered by agentic-claw.

GitHub See Demo ↓
$ npm i -g claw-cli copy

Three modes, one command

Ask a question, start a conversation, or pipe in a file.

terminal
# One-shot $ claw "What is quantum computing?" Quantum computing uses qubits in superposition... # Interactive REPL $ claw -i > Tell me about qubits Qubits are the fundamental unit of quantum info... > What did I just ask? You asked about qubits — I remember. # Pipe mode $ cat report.md | claw "summarize" • Revenue grew 23% YoY • Cloud became the largest segment # JSON output $ claw --json "Hello" { "answer": "Hello!", "rounds": 1 }

What you get

💬 One-shot

Ask a question, get an answer, done. Scripts and automation friendly.

🔄 Interactive REPL

Multi-turn conversations with memory. Context preserved across turns.

📄 Pipe mode

Pipe files and stdin. Combine with other CLI tools. Unix philosophy.

🌊 Streaming

Tokens arrive as they're generated. No waiting for the full response.

📋 JSON output

Clean JSON on stdout for scripting. Debug logs go to stderr.

🔧 Any provider

Anthropic, OpenAI, or any compatible API. Custom base URL and proxy.

Options

Flag
Description
-i, --interactive
Interactive REPL mode
--config
Configure API key + provider
--provider <name>
LLM provider (anthropic / openai)
--model <name>
Model name
--api-key <key>
API key (or set AGENTIC_API_KEY)
--base-url <url>
Custom API base URL
--proxy <url>
Proxy URL
--system <prompt>
System prompt
--json
JSON output (clean stdout)
--no-stream
Disable streaming
--version
Show version