ArgentOSDocs

CLI Reference

All available argent CLI commands for managing your ArgentOS installation.

Overview

The argent CLI is the primary interface for managing your ArgentOS installation. It handles gateway management, channel configuration, memory operations, and system status.

Installation

The CLI is installed automatically during setup:

npx argentos init

After installation, the argent command is available in your PATH.

Always use argent (not openclaw). The openclaw command is the upstream npm package and does not include ArgentOS-specific features like the model router. Using it will produce errors on custom config keys.

Command Groups

GroupDescription
argent gatewayStart, stop, and manage the gateway service
argent channelsAdd, remove, and configure channels
argent memorySearch and manage agent memory
argent statusSystem health overview
argent setupInitial configuration wizard
argent licenseLicense management
argent tasksTask management
argent configConfiguration management
argent dashboardOpen the web dashboard
argent marketplaceBrowse and install packages

Global Options

FlagDescription
--helpShow help for a command
--versionShow ArgentOS version
--verboseIncrease log output
--config <path>Use alternative config file

Common Workflows

First-Time Setup

npx argentos init    # Install
argent setup         # Configure API keys
argent gateway start # Start the gateway
argent channels add telegram  # Connect a channel

Daily Operations

argent status           # Check system health
argent gateway logs -f  # Monitor activity
argent tasks list       # View tasks
argent memory search "query"  # Search memory

Troubleshooting

argent gateway status   # Check gateway
argent config validate  # Validate config
argent gateway restart  # Restart gateway
argent gateway logs     # View logs

Tab Completion

Enable tab completion for your shell:

# Bash
argent completion bash >> ~/.bashrc

# Zsh
argent completion zsh >> ~/.zshrc

# Fish
argent completion fish > ~/.config/fish/completions/argent.fish