CLI Commands¶
Complete reference for OmniAgent CLI commands.
Global Options¶
Gateway¶
gateway run¶
Start the gateway server.
Flags:
| Flag | Description |
|---|---|
--config |
Path to config file |
--address |
Override gateway address |
Examples:
# Start with default settings
omniagent gateway run
# Start with config file
omniagent gateway run --config omniagent.yaml
# Start with custom address
omniagent gateway run --address 0.0.0.0:8080
Voice¶
voice serve¶
Start the voice gateway server for full-duplex phone calls.
Flags:
| Flag | Description | Default |
|---|---|---|
--listen |
Listen address | :8080 |
--public-url |
Public URL for Twilio webhooks | - |
--ngrok |
Use ngrok tunnel for public URL | false |
--ngrok-domain |
Custom ngrok domain (paid plan) | - |
--phone |
Twilio phone number for outbound | - |
--stt |
STT provider: deepgram, whisper, google |
deepgram |
--tts |
TTS provider: elevenlabs, openai, google |
elevenlabs |
--voice |
TTS voice ID | - |
--llm |
LLM provider: anthropic, openai |
anthropic |
--model |
LLM model | claude-sonnet-5 |
--system-prompt |
Custom system prompt | - |
Examples:
# With public server
omniagent voice serve \
--listen :8081 \
--public-url https://your-server.com \
--stt deepgram \
--tts elevenlabs \
--llm anthropic
# With ngrok (local development)
omniagent voice serve --listen :8081 --ngrok
# With custom ngrok domain
omniagent voice serve --listen :8081 --ngrok --ngrok-domain myapp.ngrok.io
# With OpenAI
omniagent voice serve \
--listen :8081 \
--ngrok \
--stt whisper \
--tts openai \
--llm openai \
--model gpt-4o
voice status¶
Show voice gateway configuration and provider status.
Output:
Voice Gateway Configuration
===========================
Twilio:
Account SID: ACxx...xxxx
Auth Token: Configured
Ngrok:
Auth Token: Configured (use --ngrok flag)
STT Providers:
Deepgram: Configured
OpenAI: Configured (Whisper)
TTS Providers:
ElevenLabs: Configured
OpenAI: Configured
LLM Providers:
Anthropic: Configured (Claude)
OpenAI: Configured (GPT-4o)
voice call¶
Make an outbound call to a phone number.
Flags:
| Flag | Description |
|---|---|
--public-url |
Public URL for webhooks (required) |
Examples:
Meeting¶
meeting join¶
Attend a Zoom, Google Meet, or Microsoft Teams meeting by phone dial-in. OmniAgent reads the dial-in number, meeting ID, and passcode from the invitation, calls in through Twilio or Telnyx, announces itself, prints the transcript as it goes, answers when addressed by name, and writes meeting notes with a summary when the meeting ends or you press Ctrl+C.
Flags:
| Flag | Description | Default |
|---|---|---|
--invite |
Invitation text or .ics file, or - for standard input (required) |
- |
--provider |
Telephony provider: twilio or telnyx |
twilio |
--phone |
Caller ID for the call, in E.164 form | TWILIO_PHONE_NUMBER or TELNYX_PHONE_NUMBER |
--public-url |
Public URL where the provider reaches this machine | - |
--ngrok |
Open an ngrok tunnel instead of --public-url |
false |
--ngrok-domain |
Custom ngrok domain | - |
--listen |
Address to listen on for the provider's webhooks | :8080 |
--country |
Country of the dial-in number to call | US |
--name |
Name the agent announces itself with | OmniAgent |
--on-behalf-of |
Person the agent attends for, named in the announcement | - |
--no-announce |
Do not announce the agent; it then never speaks | false |
--no-answer |
Do not answer when addressed by name | false |
--answer-to |
Other names the agent answers to, besides --name (repeatable) |
- |
--stt, --stt-model, --language |
Speech-to-text provider, model, and language | deepgram |
--tts, --voice |
Text-to-speech provider (deepgram, elevenlabs, openai) and voice for the announcement and answers |
deepgram |
--llm, --model |
LLM provider and model for answers and the summary | detected from API keys |
--no-summary |
Skip the summary | false |
--out |
Meeting notes Markdown file | meeting-<time>.md |
--json |
Also write the full record as JSON to this file | - |
--max-duration |
Leave the meeting after this long | 2h |
Examples:
# Attend from a calendar file through an ngrok tunnel
omniagent meeting join --invite meeting.ics --ngrok
# Pipe the invitation text, using Telnyx
pbpaste | omniagent meeting join --invite - --provider telnyx --public-url https://agent.example.com
See Attending Meetings by Phone for credentials and limitations.
Skills¶
skills list¶
List all discovered skills.
Output:
✓ 🎵 sonoscli - Control Sonos speakers via CLI
✓ 🐙 github - GitHub CLI operations
✗ ☀️ weather - Weather forecasts (missing: weather binary)
✓- Skill is available (requirements met)✗- Skill unavailable (missing requirements)
skills info¶
Show detailed information about a skill.
Example:
Output:
Name: sonoscli
Description: Control Sonos speakers via CLI
Path: /Users/example/.omniagent/skills/sonoscli
Emoji: 🎵
Requirements:
Binaries: sonos
Env Vars: (none)
Status: ✓ Available
skills check¶
Check requirements for all skills.
Output:
Checking skill requirements...
✓ sonoscli
- sonos binary: found at /usr/local/bin/sonos
✓ github
- gh binary: found at /usr/local/bin/gh
✗ weather
- weather binary: NOT FOUND
Install: brew install weather
Summary: 2/3 skills available
Channels¶
channels list¶
List registered channels.
Output:
channels status¶
Show detailed channel status.
Output:
WhatsApp:
Status: connected
Phone: +1 555-123-4567
Session: whatsapp.db
Telegram:
Status: disabled
Discord:
Status: disabled
OpenAI¶
openai spec¶
Generate OpenAPI specification from the API server.
Flags:
| Flag | Description | Default |
|---|---|---|
--output, -o |
Output file path | stdout |
--format, -f |
Output format: yaml, json |
yaml |
Examples:
# Output to stdout (YAML)
omniagent openai spec
# Generate JSON file
omniagent openai spec --format json --output docs/api/openapi.json
# Generate YAML file
omniagent openai spec -f yaml -o docs/api/openapi.yaml
The generated spec includes:
- All API endpoints (chat completions, models, tools, agents, cron, usage)
- Request/response schemas
- Authentication requirements
- OpenAPI 3.1 compatibility
Config¶
config show¶
Display current configuration.
Flags:
| Flag | Description |
|---|---|
--format |
Output format: yaml, json |
Example:
Version¶
version¶
Show version information.
Output:
Flags:
| Flag | Description |
|---|---|
--json |
Output as JSON |
{
"version": "0.4.0",
"commit": "abc1234",
"build_date": "2026-03-01",
"go_version": "go1.25",
"platform": "darwin/arm64"
}
Healthcheck¶
healthcheck¶
Probe a running gateway's /health endpoint and exit 0 (healthy) or 1
(unreachable/unhealthy). Loads no config and resolves no credentials —
it exists specifically for container HEALTHCHECK exec-form on
shell-less runtime images (e.g. Chainguard static), which have no
wget/curl/shell to run an HTTP probe with.
Reads the target address from OMNIAGENT_GATEWAY_ADDRESS (defaulting
to 127.0.0.1:18789); a bind-all host (0.0.0.0/::) is normalized to
127.0.0.1 since it isn't itself dialable.
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
CMD ["/opt/omniagent/omniagent", "healthcheck"]
/health vs /readyz¶
The healthcheck subcommand (and the Dockerfile HEALTHCHECK above)
probes /health (also served at /api/health) — liveness: the
process is up and serving HTTP. It always returns 200 while the gateway
is running.
/readyz — readiness: whether the instance can actually serve right
now. It aggregates a small set of checkers and returns 200 only if all
pass, 503 with per-check detail otherwise:
curl http://127.0.0.1:18789/readyz
# {"status":"ok","checks":[{"name":"storage","status":"ok"},{"name":"agent_configured","status":"ok"}]}
- storage — a real write/read/delete round-trip against the configured storage backend; the only check here that reflects live runtime state (a backend fine at startup can still fail later — a corrupted SQLite file, a dropped Redis connection).
- agent_configured — a static check that an agent was constructed at startup with a non-empty API key. This does not make a live LLM API call on every probe (readiness is typically polled every few seconds; a billed request per poll would be wasteful for a signal that's effectively constant once the process is up).
Not checked: live channel-connection state (e.g. is Discord actually
still connected right now) — omnichat's Provider interface doesn't
expose a connected-state query today, so this is intentionally omitted
rather than faked from the one-time startup ConnectAll result.
Use /health for a container orchestrator's liveness/restart decision
and /readyz for load-balancer traffic-routing or a deployment's
post-rollout verification gate.
Setup¶
setup¶
Interactive setup wizard for first-time configuration.
Flags:
| Flag | Description | Default |
|---|---|---|
--output, -o |
Output config file path | omniagent.yaml |
--force |
Overwrite existing config | false |
The wizard guides you through:
- LLM Provider - Choose Anthropic (Claude) or OpenAI (GPT)
- API Key - Enter your provider API key
- System Prompt - Optional custom system prompt
- Channels - Configure Telegram, Discord, etc.
- Observability - Optional OpenTelemetry setup
Example:
# Run interactive setup
omniagent setup
# Output to custom path
omniagent setup --output ~/.config/omniagent/config.yaml
# Overwrite existing config
omniagent setup --force
Doctor¶
doctor¶
Run diagnostic checks on your OmniAgent installation.
Flags:
| Flag | Description |
|---|---|
--verbose, -v |
Show detailed output |
Checks performed:
- Configuration file validity
- API key presence
- Network connectivity to API endpoints
- Optional dependencies (git, docker, chrome, ffmpeg)
- Environment variables for channels
Example:
Output:
OmniAgent Doctor
================
Version: 0.11.0
Go: go1.26.4
OS/Arch: darwin/arm64
Checks
------
[✓] Config file: Found at omniagent.yaml
[✓] API key: API key configured
[✓] HOME: /Users/example
[✓] Data directory: /Users/example/.local/share/omniagent
[✓] Anthropic API: Reachable
[✓] OpenAI API: Reachable
[✓] Git: Found (skill installation from git repositories)
[!] Docker: Not found (sandbox execution)
[✓] Chrome/Chromium: Found as chromium (browser automation)
Summary: 8 passed, 1 warnings, 0 errors
Sessions¶
sessions list¶
List all stored conversation sessions.
Flags:
| Flag | Description |
|---|---|
--db |
Database path (default: ~/.local/share/omniagent/data.db) |
Example:
Output:
SESSION ID MESSAGES CREATED UPDATED
telegram:123456789 42 2026-06-28 10:30 2026-06-28 14:22
discord:987654321 15 2026-06-27 09:15 2026-06-28 11:45
whatsapp:[email protected] 8 2026-06-28 08:00 2026-06-28 08:30
Total: 3 sessions
sessions show¶
Display details of a specific session.
Flags:
| Flag | Description |
|---|---|
--json |
Output as JSON |
--db |
Database path |
Example:
Output:
Session: telegram:123456789
Created: 2026-06-28T10:30:00Z
Updated: 2026-06-28T14:22:00Z
Messages: 42
Conversation:
-------------
[1] user: Hello!
[2] assistant: Hello! How can I help you today?
[3] user: What's the weather like?
...
sessions delete¶
Remove a session and its conversation history.
Flags:
| Flag | Description |
|---|---|
--db |
Database path |
Example:
sessions clear¶
Remove all sessions.
Flags:
| Flag | Description |
|---|---|
--force |
Skip confirmation prompt |
--db |
Database path |
Example:
# With confirmation prompt
omniagent sessions clear
# Skip confirmation
omniagent sessions clear --force
Exit Codes¶
| Code | Description |
|---|---|
| 0 | Success |
| 1 | General error |
| 2 | Configuration error |
| 3 | Connection error |