Skip to main content

CLI Commands

Agent management, credential management, channel setup, blackboard / queue inspection, cron management, and other per-agent operations are available as interactive REPL commands inside openlegion start.

Command Details

openlegion start

Launches the mesh host, spins up agent containers, and starts the interactive REPL. On first run (no credentials configured), runs inline setup — API key entry, model selection, and optional agent creation — right in the terminal.

openlegion stop

Cleanly shuts down all openlegion_* Docker containers and the mesh host. Sends SIGTERM to the background host process if running, then cleans up any remaining containers.

openlegion chat [NAME]

Connect to a running agent from a separate terminal. Useful when running in daemon mode (-d). If no name is given, prompts to select from running agents.

openlegion status

Show health and status of all configured and running agents.

openlegion projects

List active projects in the running fleet.

openlegion project <ID>

Show details for a single project (members, goal, context, recent activity).

openlegion tasks

List durable task records from the V2 orchestration ledger (OPENLEGION_ORCHESTRATION_TASKS_V2=1, default ON).

openlegion pending

List open pending operator actions. Some operator-initiated edits (model, permissions, budget, thinking) require explicit confirmation via confirm within 30 minutes; soft edits (instructions, soul, heartbeat, interface, role) have a 5-minute undo window.

openlegion confirm <NONCE>

Confirm a pending operator action. Use openlegion pending to find the nonce.

openlegion cancel <NONCE>

Cancel a pending operator action without applying it.

openlegion reset

Stop the runtime and wipe config/, data/, agent skills, and Docker volumes. Keeps .env so your API keys survive. Pass --yes/-y to skip the confirmation prompt.

openlegion wallet init

Generate a 24-word BIP-39 mnemonic and store it in .env as OPENLEGION_SYSTEM_WALLET_MASTER_SEED. The seed is shown once — there is no second-chance reveal. Per-agent EVM keys derive via BIP-44 (m/44'/60'/{agent_index}'/0/0); per-agent Solana keys via HMAC-SHA512 over a PBKDF2 of the seed.

openlegion wallet show [AGENT_ID]

Show wallet addresses on all supported chains (EVM: ethereum, base, arbitrum, polygon, sepolia; Solana: mainnet, devnet). Pass an agent ID to scope to that agent.

openlegion version

Show version and environment information.

Interactive REPL Commands

When running openlegion start, you’re in the interactive REPL. These commands are only available inside the REPL session:

Chat & Navigation

Agent Management

Monitoring & Debugging

Automation

5-field cron (minute granularity) or every N[s/m/h/d] interval syntax. No 6-field / seconds support. Pass heartbeat=true for autonomous monitoring with built-in probes.

Credentials & Channels

Projects

Aliases: /exit = /quit, /traces = /debug, /agents = /status.

Team Templates

Templates offered during first-run setup (via openlegion start) and applied via the operator’s apply_template tool (per-slot — not atomic; mid-loop failures leave earlier-created agents in place). Each template references models via the "{default_model}" placeholder, substituted at apply time. apply_template accepts agent_overrides per slot (model, instructions ≤12K chars, soul ≤4K, heartbeat, interface ≤4K; role is template-fixed).