Skip to main content

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

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:
  1. OPENROUTER_API_KEY → OpenRouter
  2. EACHLABS_API_KEY → each::labs
  3. ANTHROPIC_API_KEY → Anthropic
Override with --provider flag.

Model Auto-Detection

If no model is specified, klaw uses defaults based on provider:

Chat Modes

Terminal Mode (Default)

Styled terminal output with colors and formatting:

TUI Mode

Rich terminal UI with Bubble Tea:
Features:
  • 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

Environment Variables

See Also