Usage
Description
Start an interactive chat session with an AI agent. This is the primary way to interact with klaw for development and exploration.Flags
| Flag | Short | Description | Default |
|---|---|---|---|
--model | -m | Model to use | Auto-detected |
--provider | -p | Provider: anthropic, openrouter, eachlabs | Auto-detected |
--agent | -a | Agent name to use | default |
--tui | Use TUI mode (Bubble Tea) | false | |
--simple | Simple terminal mode (no styling) | false |
Examples
Basic Chat
Specify Model
Use TUI Mode
Chat with Specific Agent
Specify Provider
Provider Auto-Detection
klaw automatically detects the provider based on available environment variables:OPENROUTER_API_KEY→ OpenRouterEACHLABS_API_KEY→ each::labsANTHROPIC_API_KEY→ Anthropic
--provider flag.
Model Auto-Detection
If no model is specified, klaw uses defaults based on provider:| Provider | Default Model |
|---|---|
| Anthropic | claude-sonnet-4-20250514 |
| OpenRouter | anthropic/claude-sonnet-4 |
| each::labs | anthropic/claude-sonnet-4-5 |
Chat Modes
Terminal Mode (Default)
Styled terminal output with colors and formatting:TUI Mode
Rich terminal UI with Bubble Tea:- Syntax highlighting
- Scrollable history
- Progress indicators
- Keyboard shortcuts
Simple Mode
Basic terminal without styling (for compatibility):Tool Execution
During chat, agents can use tools:Keyboard Shortcuts
| Key | Action |
|---|---|
Enter | Send message |
Shift+Enter | New line |
Ctrl+C | Exit |
Ctrl+L | Clear screen |
Up/Down | History navigation |

