# CLI

Source: https://pal.konvert7.com/docs/cli

Everything PAL does runs through `pal cli`: skills, hooks, the control room and you. Each command prints its own help with `--help`.

Running pal with no arguments starts the first installed agent, in this order: Claude Code, Codex, Cursor CLI, Copilot CLI, opencode, Antigravity CLI. Claude Code sessions print a summary on exit.

Every command, its arguments and its options: https://pal.konvert7.com/docs/cli

Environment:

```text title="Text"
PAL_HOME          Override user state directory (default: ~/.pal or repo root)
PAL_PKG           Override package root
PAL_CLAUDE_DIR    Override Claude config dir (default: ~/.claude)
PAL_OPENCODE_DIR  Override opencode config dir (default: ~/.config/opencode)
PAL_CURSOR_DIR    Override Cursor config dir (default: ~/.cursor)
PAL_COPILOT_DIR   Override Copilot config dir (default: ~/.copilot)
PAL_CODEX_DIR     Override Codex config dir (default: ~/.codex)
PAL_GEMINI_DIR    Override Antigravity's Gemini dir (default: ~/.gemini)
PAL_AGENTS_DIR    Override agents dir (default: ~/.agents)
```

| Command | What it does |
| --- | --- |
| [`init`](/docs/cli/init) | Scaffold PAL home and install (default: every installed agent) |
| [`install`](/docs/cli/install) | Register hooks and skills (default: every installed agent), then run the doctor |
| [`uninstall`](/docs/cli/uninstall) | Remove hooks and skills (default: every agent) |
| [`update`](/docs/cli/update) | Update PAL (git pull or bun add -g) |
| [`export`](/docs/cli/export) | Export your state to a zip |
| [`import`](/docs/cli/import) | Merge your state from a zip (default: the newest export or backup) |
| [`status`](/docs/cli/status) | Show PAL configuration |
| [`doctor`](/docs/cli/doctor) | Find what is wrong and how to fix it; exits 1 on any failure |
| [`migrate`](/docs/cli/migrate) | Run pending data migrations, or the one named |
| [`usage`](/docs/cli/usage) | Summarize every agent's token usage and cost for today, 7 and 30 days |
| [`cost`](/docs/cli/cost) | What each month was paid against its API-equivalent cost, per agent |
| [`wrapped`](/docs/cli/wrapped) | A year of your work in numbers, read from the event log |
| [`env`](/docs/cli/env) | The OS and script languages PAL tells every agent about |
| [`report`](/docs/cli/report) | Anonymous reports to the PAL repository about a bug in PAL itself |
| [`sync`](/docs/cli/sync) | End-to-end encrypted sync of your memory between your machines |
| [`auth`](/docs/cli/auth) | When the active agent's login expires |
| [`patterns`](/docs/cli/patterns) | How you work across projects, read from the event log |
| [`content`](/docs/cli/content) | PAL's local content store (never exported) |
| [`events`](/docs/cli/events) | PAL's local event log |
| [`evidence`](/docs/cli/evidence) | What PAL learns from: the turns the user typed, with their text |
| [`infer`](/docs/cli/infer) | Run one inference call on the active agent's model; prompt on stdin |
| [`judge`](/docs/cli/judge) | Answer typed questions with the System One model or the small tier; JSON request from a file or stdin |
| [`actor`](/docs/cli/actor) | Show or rename this actor — who caused a record |
| [`machine`](/docs/cli/machine) | Show or rename this machine — where a record was written |
| [`telos`](/docs/cli/telos) | Which TELOS topics are answered, in interview order |
| [`timezone`](/docs/cli/timezone) | Show the configured timezone, or set it to an IANA name |
| [`telemetry`](/docs/cli/telemetry) | The daily anonymous heartbeat that counts PAL installs |
| [`settings`](/docs/cli/settings) | Read and change PAL's settings; each change is recorded |
| [`knowledge`](/docs/cli/knowledge) | Query and manage the knowledge store |
| [`ledger`](/docs/cli/ledger) | Query the action ledger |
| [`rule`](/docs/cli/rule) | Review the rules PAL drafted from your corrections |
| [`correction`](/docs/cli/correction) | The kinds of mistakes you corrected, and how often |
| [`compaction`](/docs/cli/compaction) | The shadow rule that predicts an auto compaction |
| [`algorithm-run`](/docs/cli/algorithm-run) | ALGORITHM runs recorded in shadow mode |
| [`progress`](/docs/cli/progress) | The progress tree: what is active, parked, waiting, and where each piece stopped |
| [`timebox`](/docs/cli/timebox) | Stop work at a deadline and report what was found |
| [`unattended`](/docs/cli/unattended) | Work without the user until a deadline: no questions, approved tasks only |
| [`minimum`](/docs/cli/minimum) | Keep working at least until a floor time, improving the weakest part each pass |
| [`schedule`](/docs/cli/schedule) | Prompts added at a time of day, for you or for one project |
| [`server`](/docs/cli/server) | Start, stop and inspect the local control room |
| [`skill`](/docs/cli/skill) | Manage personal skills under ~/.pal/skills/ |
| [`subagent`](/docs/cli/subagent) | Manage personal subagents under ~/.pal/agents/ |
| [`worktree`](/docs/cli/worktree) | Clean up this repo's git worktrees |
| [`algorithm-reflect`](/docs/cli/algorithm-reflect) | Log algorithm performance after the LEARN phase |
| [`algorithm-synthesize`](/docs/cli/algorithm-synthesize) | Cluster algorithm reflections into candidate ALGORITHM.md changes |
| [`analyze`](/docs/cli/analyze) | PAL Learning Analysis — unified graduation + ratings report |
| [`interaction`](/docs/cli/interaction) | How the user's turns went, and whether replies changed under each label |
| [`project`](/docs/cli/project) | Manage PAL project state (ISA.md backed) |
| [`synthesize`](/docs/cli/synthesize) | Aggregate recent PAL activity into compact state |
| [`debug`](/docs/cli/debug) | Verbose hook debug logging (persisted) |
| [`version`](/docs/cli/version) | Print the installed PAL version |