CLI Reference

Complete reference for all `octomind` CLI commands and flags.

octomind run [TAG] [MESSAGE]

Start an interactive or non-interactive AI session.

FlagShortDescription
TAGAgent tag or role name (e.g., developer, octomind:assistant). Uses default from config if omitted.
--name-nNamed session identifier
--resume-rResume a specific session by name
--resume-recentResume the most recent session
--formatOutput format: plain (default for pipe), jsonl (structured JSON Lines)
--model-mOverride model (provider:model format)
--daemonDaemon mode: stay alive after message, accept injected messages
--sandboxRestrict filesystem writes to working directory
--hookActivate webhook hook(s) by name. Can be specified multiple times.

Examples:

# Interactive session with default role
octomind run

# Interactive with specific role
octomind run developer

# Tap agent
octomind run octomind:developer

# Non-interactive: pipe message via stdin
echo "Explain the auth module" | octomind run developer --format plain

# Named session
octomind run --name feature-auth

# Resume session
octomind run --resume feature-auth
octomind run --resume-recent

# Daemon mode with webhook
octomind run --name ci-watcher --daemon --format jsonl --hook github-push

# Model override
octomind run -m anthropic:claude-sonnet-4

octomind server [TAG]

Start a WebSocket server for remote AI sessions.

FlagShortDescription
TAGAgent tag or role name
--hostBind address (default: 127.0.0.1)
--port-pPort (default: 8080)
--sandboxRestrict filesystem writes to working directory

Examples:

octomind server
octomind server --host 0.0.0.0 --port 9090
octomind server developer --sandbox

octomind acp [TAG]

Run as Agent Client Protocol agent over stdio (for editor integration).

FlagShortDescription
TAGAgent tag or role name
--name-nSession name (used when client creates a session)
--resume-rResume a specific session by name
--resume-recentResume the most recent session
--model-mOverride model (provider:model format)
--sandboxRestrict filesystem writes to working directory
--hookActivate webhook hook(s) by name. Can be specified multiple times.

Examples:

octomind acp developer
octomind acp context_gatherer --sandbox
octomind acp developer:general -m openai:gpt-4o

octomind tap [TAP] [PATH]

Add or list registry taps (Homebrew-style agent sources).

ArgumentDescription
TAPTap identifier (user/repo format). Omit to list all taps.
PATHOptional local path. If provided, symlinks instead of cloning from GitHub.

Examples:

# List all taps
octomind tap

# Add tap from GitHub
octomind tap myorg/my-tap

# Add local tap (symlink)
octomind tap myorg/my-tap /path/to/local/tap

octomind untap <TAP>

Remove a previously added tap.

octomind untap myorg/my-tap

octomind vars

Show all placeholder variables and their current values.

FlagShortDescription
--preview-pShow preview of placeholder values (3 lines)
--expand-eShow full expanded values for placeholders
octomind vars
octomind vars --preview
octomind vars --expand

Displays: {{CWD}}, {{ROLE}}, {{DATE}}, {{SHELL}}, {{OS}}, {{BINARIES}}, {{GIT_STATUS}}, {{README}}, etc.

octomind send

Send a message to a running daemon session by name.

FlagShortDescription
--name-nName of the running session to send to (required)
MESSAGEMessage text. If omitted, reads from stdin.
echo "Check build status" | octomind send --name ci-watcher
octomind send --name ci-watcher "Check build status"

octomind config [OPTIONS]

Generate, validate, or display configuration.

FlagDescription
--modelSet root-level model (provider:model format)
--api-keySet API key (provider:key format)
--log-levelSet log level
--mcp-providersSet MCP providers
--mcp-serverAdd/configure MCP server
--systemSet custom system prompt (or default to reset)
--markdown-enableEnable/disable markdown rendering
--markdown-themeSet markdown theme
--list-themesList available markdown themes
--showDisplay current configuration with defaults
--validateValidate configuration without making changes
--upgradeUpgrade config file to latest version

Examples:

# Generate default config
octomind config

# Show current settings
octomind config --show

# Validate config
octomind config --validate

# List themes
octomind config --list-themes

octomind completion <SHELL>

Generate shell completion scripts.

ArgumentDescription
SHELLTarget shell: bash, zsh, fish, powershell, elvish
ShellCommand
Bashoctomind completion bash > ~/.local/share/bash-completion/completions/octomind
Zshoctomind completion zsh > ~/.zfunc/_octomind
Fishoctomind completion fish > ~/.config/fish/completions/octomind.fish
PowerShelloctomind completion powershell > octomind.ps1

Global Flags

FlagDescription
--helpShow help
--versionShow version