The agentOS CLI is the developer entry point for running and inspecting the
local runtime.
agentOS status
agentOS status --format jsonShows the local runtime configuration and component readiness.
agentOS quickstart
agentOS quickstart --template coding --path agentos-starter
agentOS quickstart --format jsonPrints the recommended first-run workflow for a new developer.
agentOS docs
agentOS docs --format jsonLists important project documentation files and what each one is for.
agentOS check-links
agentOS check-links --format jsonChecks local Markdown links in project documentation and fails if a referenced local file is missing.
agentOS doctor
agentOS doctor --format jsonChecks that important project files and runtime defaults are available.
agentOS env
agentOS env --format jsonShows supported AgentOS environment variables, resolved values, and whether each value came from the environment or the default runtime config.
agentOS capabilities
agentOS capabilities --format jsonLists known capability names and categories that can be used with
init-agent.
agentOS templates
agentOS templates --format jsonLists available init-agent templates, their prompts, and their default
capabilities.
agentOS run --agent examples/simple_agent.tomlStarts an agent from a TOML config file.
agentOS inspect-config --agent examples/simple_agent.toml
agentOS inspect-config --agent examples/simple_agent.toml --format json
agentOS inspect-config --agent examples/simple_agent.toml --strict-capabilitiesReads an agent config and prints its name, prompt length, and capabilities
without starting the agent. It also reports unknown capabilities. Use
--strict-capabilities to fail when unknown capabilities are present.
agentOS init-agent --name research-agent --output agents/research.toml \
--capability memory_write --capability trace_recordCreates a new agent TOML config file. Use --force to replace an existing file.
Use --strict-capabilities to fail when a capability is not in the known
AgentOS capability catalog.
Available templates:
agentOS init-agent --name research-agent --template research --output agents/research.toml
agentOS init-agent --name coding-agent --template coding --output agents/coding.toml
agentOS init-agent --name security-agent --template security --output agents/security.toml
agentOS init-agent --name ops-agent --template ops --output agents/ops.tomlagentOS init-runtime --output agentos.tomlCreates a runtime TOML config file with host, HTTP port, gRPC port, SSE event stream port, max agent count, data directory, and commented agent preload examples.
agentOS init-workspace --path agentos-starter --template researchCreates a starter workspace containing agentos.toml and an agents/
directory with a template-based agent config.
agentOS inspect-runtime --config agentos.toml
agentOS inspect-runtime --config agentos.toml --format jsonValidates and prints a runtime TOML config file, including host, ports, heartbeat timeout, data directory, and preloaded agents.
agentOS validate-runtime --config agentos.toml
agentOS validate-runtime --config agentos.toml --format jsonValidates runtime configuration rules and reports errors or warnings for ports, agent limits, heartbeat settings, and unknown capabilities.
agentOS validate-workspace --path agentos-starter
agentOS validate-workspace --path agentos-starter --format jsonValidates a starter workspace directory, including agentos.toml, agents/,
agent TOML files, and capabilities.
agentOS summary --path agentos-starter
agentOS summary --path agentos-starter --format jsonSummarizes a workspace: runtime settings, agent files, agent count, and capability usage.
agentOS graph --path agentos-starter
agentOS graph --path agentos-starter --format json
agentOS graph --path agentos-starter --format mermaid
agentOS graph --path agentos-starter --format markdown
agentOS graph --path agentos-starter --format mermaid --output docs/workspace-graph.mmd
agentOS graph --path agentos-starter --format markdown --output docs/workspace-graph.mdGenerates a topology graph of the runtime, core components, and workspace agents. Mermaid output can be pasted directly into GitHub Markdown.
agentOS ps
agentOS ps --all
agentOS logs --id agent_123
agentOS trace --id agent_123
agentOS replay --checkpoint ckpt_456These commands define the intended developer workflow for inspecting agents, logs, traces, and replay checkpoints.
Recorded execution sessions (journals) unlock deterministic replay and fork:
# Re-execute a recorded session with recorded LLM responses.
# No API key or network needed; drift against the recording is reported.
agentOS replay --session agent_123
# Replay the first 2 recorded exchanges, then continue with the live provider.
agentOS fork --session agent_123 --at 2 --prompt "Try a different approach"
# Fork after a specific exchange checkpoint (ids shown by replay --session).
agentOS fork --from <exchange_checkpoint>Sessions are journaled automatically by agentOS run under
<data_dir>/journals/. Replays and forks are journaled too, so a fork can
itself be replayed or forked. Replay is deterministic at the LLM boundary;
tools re-execute for real and any changed tool behavior is reported as drift.
agentOS state inspect
agentOS state inspect --input backup.json
agentOS state inspect --input backup.json --jsonReads the current state file or an external backup without modifying anything.
agentOS state doctorChecks the local state file and recovers from corruption by backing up the damaged file.
agentOS state export --output backup.json --pretty
agentOS state import --input backup.json --dry-run --merge
agentOS state import --input backup.json --merge
agentOS state import --input backup.json --replaceExports and imports state before SQLite persistence. --replace creates an
automatic backup of the current state before writing.
agentOS state clean --status completed --dry-run
agentOS state clean --older-than 7d --dry-run
agentOS state clean --all --dry-runCleans local state by status, age, or all agents. Use --dry-run first to see
what would be removed.
agentOS completions bash
agentOS completions zsh
agentOS completions fish
agentOS completions powershellGenerate shell completions for the selected shell.