@townco/cli
v0.1.88
Published
Run AI agents from the command line.
Downloads
8,337
Keywords
Readme
Town CLI
Run AI agents from the command line.
Quick Start
npx @townco/cli configure # Set up API keys
npx @townco/cli create
npx @townco/cli run my-agent # Run in terminal (TUI)
npx @townco/cli run my-agent --gui # Run with web interfaceCommands
create [name] - Create an agent
npx @townco/cli create # Interactive wizard
npx @townco/cli create --name my-agent # With name
npx @townco/cli create \
--name my-agent \
--model claude-sonnet-4-5-20250929 \
--tools web_search,todo_write \
--system-prompt "You are a helpful assistant"list - List all agents
npx @townco/cli listconfigure - Set up API keys
npx @townco/cli configureSets ANTHROPIC_API_KEY, EXA_API_KEY, etc. in ~/.config/town/.env
run <name> - Run an agent
npx @townco/cli run my-agent # TUI mode (default)
npx @townco/cli run my-agent --gui # Web interface
npx @townco/cli run my-agent --http # HTTP API server
npx @townco/cli run my-agent --http --port 8080delete <name> - Delete an agent
npx @townco/cli delete my-agentModels
claude-sonnet-4-5-20250929- Latest (recommended)claude-opus-4-20250514- Most capableclaude-3-5-haiku-20241022- Fastest
Tools
todo_write- Task managementweb_search- Web search (requires EXA_API_KEY)generate_image- Image generation (requires GEMINI_API_KEY)browser- Browser automation (requires KERNEL_API_KEY)
