CLI
The komand CLI provides a terminal-first interface for interacting with your Komand agents. It connects to the same REST API as the web dashboard but is designed for developers and power users who prefer the command line.
Installation
Section titled “Installation”dotnet tool install -g komandPrompt Sessions
Section titled “Prompt Sessions”Interactive Mode
Section titled “Interactive Mode”komand promptThis opens an interactive prompt session connected to your default agent. Type naturally and the agent responds in real time.
|<_ komand promptConnected to agent: default
You: What meetings do I have tomorrow?Agent: You have two meetings tomorrow: 1. 10:00 AM — Standup with the engineering team 2. 2:00 PM — Demo with Acme Corp (Bob Smith)
You: Reschedule the demo to 3pmAgent: Done. I've moved the Acme Corp demo to 3:00 PM and notified Bob Smith.Connect to a Specific Agent
Section titled “Connect to a Specific Agent”komand prompt --agent sales-botConnect to a Remote Server
Section titled “Connect to a Remote Server”komand prompt --server https://app.komand.ai --token YOUR_API_TOKENOne-Shot Commands
Section titled “One-Shot Commands”Send a single message without entering interactive mode:
komand prompt --message "How many open deals do I have?"Pipe Input
Section titled “Pipe Input”echo "Summarize today's sales activity" | komand promptAgent Management
Section titled “Agent Management”# List all agentskomand agent list
# Get agent detailskomand agent info sales-bot
# Create or update an agentkomand agent create --id sales-bot --name "Sales Assistant" \ --model claude-sonnet-4-20250514 \ --prompt "You are a friendly sales assistant."
# Store a memorykomand agent memory set sales-bot company_timezone "Australia/Brisbane"
# Recall a memorykomand agent memory get sales-bot company_timezoneSkill Management
Section titled “Skill Management”# Search the marketplacekomand skill search "crm contact"
# View skill detailskomand skill info crm-contact-lookup
# Install a skill for an agentkomand skill install crm-contact-lookup --agent sales-bot
# List installed skillskomand skill list --agent sales-botSession Management
Section titled “Session Management”# View active sessionskomand session list
# Get session infokomand session info "WebChat:default:user-1"
# Bind an agent to a sessionkomand session bind "WebChat:default:user-1" --agent sales-bot
# End a sessionkomand session end "WebChat:default:user-1"Configuration
Section titled “Configuration”The CLI stores configuration in ~/.komand/config.json:
{ "server": "http://localhost:5000", "defaultAgent": "default", "token": null}| Setting | Description |
|---|---|
server | Komand API base URL |
defaultAgent | Agent used when --agent is not specified |
token | API token for authentication (set via komand auth login) |
Authentication
Section titled “Authentication”# Login and store token
# Verify current authenticationkomand auth whoami
# Logout (clear stored token)komand auth logoutOutput Formats
Section titled “Output Formats”The CLI supports multiple output formats for scripting:
# Default: human-readablekomand agent list
# JSON output for scriptingkomand agent list --output json
# Quiet mode (minimal output)komand agent list --output quietHosted Prompt
Section titled “Hosted Prompt”A hosted version of the CLI is available at prompt.komand.ai — a web-based terminal interface that works without installing anything. It connects to your Komand instance via the same API.