Skip to content

CLI Reference

The prx binary is the single entry point for all PRX operations -- interactive chat, daemon management, channel administration, and system diagnostics.

Global Flags

These flags are accepted by every subcommand.

FlagShortDefaultDescription
--config-c~/.config/prx/config.tomlPath to the configuration file
--log-level-linfoLog verbosity: trace, debug, info, warn, error
--no-colorfalseDisable colored output
--quiet-qfalseSuppress non-essential output
--help-hPrint help information
--version-VPrint version

Commands

CommandDescription
prx agentSingle-turn LLM interaction (pipe-friendly)
prx chatRich terminal chat with streaming and history
prx daemonStart the full PRX runtime (gateway + channels + cron + evolution)
prx gatewayStandalone HTTP/WebSocket gateway server
prx onboardInteractive setup wizard
prx channelChannel management (list, add, remove, start, doctor)
prx cronCron task management (list, add, remove, pause, resume)
prx evolutionSelf-evolution operations (status, history, config, trigger)
prx authOAuth profile management (login, refresh, logout)
prx configConfiguration operations (schema, split, merge, get, set)
prx doctorSystem diagnostics (daemon health, channel status, model availability)
prx serviceSystemd/OpenRC service management (install, start, stop, status)
prx skillsSkill management (list, install, remove)
prx statusSystem status dashboard
prx models refreshRefresh provider model catalogs
prx providersList all supported LLM providers
prx completionsGenerate shell completions (bash, zsh, fish)

Quick Examples

bash
# First-time setup
prx onboard

# Start interactive chat
prx chat

# Single-turn query (scriptable)
echo "Summarize this file" | prx agent -f report.pdf

# Start the daemon with all services
prx daemon

# Check system health
prx doctor

Shell Completions

Generate completions for your shell and add them to your profile:

bash
# Bash
prx completions bash > ~/.local/share/bash-completion/completions/prx

# Zsh
prx completions zsh > ~/.zfunc/_prx

# Fish
prx completions fish > ~/.config/fish/completions/prx.fish

Environment Variables

PRX respects the following environment variables (these override config file values):

VariableDescription
PRX_CONFIGPath to config file (same as --config)
PRX_LOGLog level (same as --log-level)
PRX_DATA_DIRData directory (default: ~/.local/share/prx)
ANTHROPIC_API_KEYAnthropic provider API key
OPENAI_API_KEYOpenAI provider API key
GOOGLE_API_KEYGoogle Gemini provider API key

Released under the Apache-2.0 License.