CLI Reference
The aios CLI is a zero-dependency Node.js script (scripts/aios.mjs, Node ≥ 18). Install it from aios-workspace:
# From inside an aios-workspace clone:npm link # or add to PATH: export PATH="$PWD/bin:$PATH"Configure your workspace’s aios.yaml:
version: 1brain_url: https://your-brain.example.comapi_key: aios_<key_id>_<secret>team: your-team-slugsync: tiers: [team, external] include: - 0-context - 2-work - 3-log - 4-sharedCommands
Section titled “Commands”aios status
Section titled “aios status”Preview what would be pushed without sending anything.
aios status# → Lists files that are new, modified, or unchanged since last pushaios push
Section titled “aios push”Push tier-eligible content to the Team Brain.
aios push # push everything eligibleaios push --dry-run # preview only (same as status)aios push 2-work/retro.md # push specific path(s)Only files whose frontmatter audience maps to team or external are sent. Files without frontmatter are skipped with a warning.
aios pull
Section titled “aios pull”Fetch team updates from the brain into 1-inbox/from-brain/.
aios pull# → Downloads items updated since last pull, writes to 1-inbox/from-brain/# → Also fetches task rows and writes them to 3-log/tasks-from-brain.mdaios query
Section titled “aios query”Natural-language query against the Team Brain. Streams the answer.
aios query "what blocked sprint 1?"aios query "who owns the auth decision?"aios export-okf
Section titled “aios export-okf”Export a tier-filtered OKF (Open Knowledge Framework) bundle from the brain to a local directory.
aios export-okf # exports to .aios/okf/aios export-okf ./my-bundle # exports to specified directoryaios pull-bundle
Section titled “aios pull-bundle”Pull the OKF link graph from the brain into .aios/bundle.json for offline traversal.
aios pull-bundle# → Use /okf-traverse inside Claude Code to query offlineaios graph
Section titled “aios graph”Traverse the local OKF bundle and print the link graph.
aios graphaios graph --from 2-work/retro.md # start from a specific nodeaios assess-codebase
Section titled “aios assess-codebase”Score a repo’s AEM agent-readiness (L0–L5) offline; optionally record the scan in the Team Brain.
aios assess-codebase # score the current repo (offline)aios assess-codebase ./path # score another repoaios assess-codebase --push # also POST to /api/v1/codebases (team-tier key)aios analyze
Section titled “aios analyze”Build an Agentic Engineering Maturity report from your local agent-session logs (Claude, Codex, Cursor): it computes structural signals (delegation, verification, cost, …) and places you on the AEM Spine. With --push, the daily aggregate goes to the brain — ratios and counts only, never raw session text.
aios analyze # last 7 days, printedaios analyze --since 30d --report # longer window + full reportaios analyze --push # also POST to /api/v1/metrics (team-tier key)aios relay
Section titled “aios relay”Run an automated Opus ↔ Cursor plan/review loop over a task: Opus plans, Cursor executes, Opus reviews, repeating for N rounds (default 3).
aios relay "add rate-limit tests" # 3 rounds, /review-planaios relay "refactor parser" --rounds 2 # custom round countaios relay "tidy imports" --dry-run # plan/review without writingEnvironment variables
Section titled “Environment variables”| Variable | Description |
|---|---|
AIOS_API_KEY | Overrides api_key in aios.yaml |
AIOS_BRAIN_URL | Overrides brain_url in aios.yaml |
AIOS_TEAM | Overrides team in aios.yaml |