# Command line reference

`maxxing` is installed in `/usr/local/bin`. Run `maxxing <command> --help` for every option.

## Server and setup

| Command | Purpose |
|---|---|
| `maxxing serve [--host IP] [--port N]` | run the web server (used by the `claude-maxxing` service) |
| `maxxing setup-link [--reset]` | print the one-time setup link; `--reset` forgets the password and starts the setup again |
| `maxxing password` | set a new UI password (interactive) |
| `maxxing 2fa status\|off\|forget-browsers` | two-step sign-in (Telegram, authenticator app): state, turn it off - both methods, recovery codes dropped (the way back in when Telegram does not answer or the phone is lost) -, make every browser ask again |
| `maxxing status [--json]` | version, URL, service, Claude auth, Telegram, backup, paths |
| `maxxing doctor [--json] [--live] [--offline] [--deps]` | check the installation; `--live` makes a real Claude call, `--offline` skips the update checks (GitHub, Claude Code release), `--deps` also looks up known vulnerabilities of the installed packages (osv.dev) |
| `maxxing proxy on [HOST:PORT] [--domain D] [--new-secret]` / `proxy off` / `proxy status [--json]` | a second private listen address (default `172.17.0.1:8790`) for a reverse proxy in Docker, guarded by a secret header; writes the Traefik block to `<state>/reverse-proxy.conf` (`--new-secret`: a new header, copy the block again); `off` also forgets the secret and the block; restart the service after (see [Installation](installation.md#behind-a-proxy-in-docker)) |
| `maxxing harden [--undo] [--no-restart]` | apply (or remove) the systemd sandbox of the service, then restart it; restores the previous settings if the service does not come back (see [Security](security.md)) |

## maxxing init

Creates or refreshes the configuration, workspace, skills and default jobs. Safe to run again:
existing values and files are kept unless you pass a flag.
Workspace templates (default projects `general`, `system`, `tutorial`) are copied only when
missing, and a default project or topic you deleted is never re-created. Default jobs are created
once each (Memory compaction, Check for updates, and Morning tasks, which starts disabled).
As root on systemd it also writes the slices of the [CPU priorities](settings-and-keys.md#cpu-priorities)
(`maxxing-live.slice`, `maxxing-turns.slice`, `maxxing-jobs.slice`; the server joins its slice at its next restart).

| Option | Effect |
|---|---|
| `--workspace PATH` | workspace folder (default `/root/maxxing`) |
| `--files-root PATH` | root of the Files page (default: home folder) |
| `--port N` | HTTP port (default 8787) |
| `--bind IP` | `127.0.0.1` or the Tailscale IP; public addresses are refused |
| `--public-url URL` | e.g. `https://ui.example.com`; `""` clears it; a malformed URL is refused |
| `--timezone TZ` | IANA name (default: the system zone). Keep it equal to the system zone (`timedatectl`), which cron uses - unless the server clock is kept. An unknown zone is refused |
| `--system-clock follow\|keep` | `follow`: changing the time zone in the UI also switches the system zone; `keep`: never touch it (shared server), jobs check their schedule in your zone |
| `--claude-dir PATH` | Claude Code folder for Harness Maxxing (default `~/.claude`; `""` = back to it). Another folder keeps it apart from a Claude Code already used on the server (passed to sessions as `CLAUDE_CONFIG_DIR`) |
| `--language en\|fr\|es\|de\|zh\|ja` | interface language (also the language of what the server writes) |
| `--count yes\|no` | the anonymous daily count of installations, as answered at the installation (the installer passes it; later: Settings -> Profile) |
| `--secret-from-stdin NAME` | store a secret read from stdin: `claude_oauth_token`, `anthropic_api_key`, `github_update_token` |
| `--no-crons` | do not create the default jobs |
| `--quiet`, `--json` | output control |

Example: `printf %s "$TOKEN" | maxxing init --quiet --secret-from-stdin claude_oauth_token`.

Restart the service after changing the port, bind address or public URL:
`systemctl restart claude-maxxing`.

## maxxing update

| Option | Effect |
|---|---|
| (none) | fetch the new version, replay your customizations on top, sync dependencies, refresh skills/templates, restart, check the service answers (else roll back), print the changelog. Exit codes: `0` done, `3` customizations conflict (nothing changed - adapt them, then `--resume`), `4` rolled back, `1` other error |
| `--resume` | finish an update after the customizations were adapted by hand (rebase completed) |
| `--rollback` | go back to the code that ran before the last update (refuses, changing nothing, while the code directory has unsaved changes) |
| `--branch B` | switch to and follow branch `B` |
| `--check` | only check: installed vs latest version and the changelog lines in between. Changes nothing; exit code 0 whether or not an update exists, 1 only when the check fails |
| `--check --notify` | also send a Telegram message (Crons thread) when an update is available; nothing happens when Telegram is not configured. Used by the weekly job "Check for updates" |
| `--check --json` | machine-readable result `{ok, current, latest, behind, available, changelog, ...}` |
| `--no-restart` | do not restart the service |
| `--preflight` | simulate the update on a throw-away copy: per customization *carries over* / *on code that changed* / *now included* / *conflicts*, plus unsaved edits, web UI edits, extensions the new version does not support, upgrade notes to apply, and a verdict (`simple` or `adapt`). Changes nothing; `--json` for machine-readable |
| `--verify` | check that every extension loads and every widget answers, and run each customization's check. Exit `0` everything works, `1` something to fix |
| `--with-harness` | update even when customizations conflict: nothing to adapt, the usual update; otherwise a `system/harness` session adapts the changes, then updates (or says in the notifications what blocks). The automatic update does the same by itself |
| `--smart` | used by the Update button: after the restart the server opens a `system/harness` session that applies the upgrade notes |
| `--auto` | used by the automatic update (Settings -> Updates): after the restart, a notification says which upgrade notes are left to apply |

Every install fetches the new version from its git remote (a private fork or mirror: with the read token stored as
`github_update_token`). A server installed with a key before 2.0.0a87 first moves to the public git repository by
itself (see [License](license.md)). After an update, the command
lists the **workspace upgrade notes** of the versions installed (`<code>/docs/upgrade/<version>.md`):
instructions for Claude to adapt your workspace. The easiest path is the topic `system/harness` (`system/update` on older servers):
say "update" and Claude checks, explains, updates after your yes, then applies these notes.

**Signed versions.** Every published version carries the signature of one of its publishers. By default
(`"update_verify_signature": "stable"` in `/var/lib/claude-maxxing/config.json`), a server that follows the published
versions (branch `stable`) installs a new version only when its tag is signed by one of the keys shipped with the
version already installed (`server/maxxing/release-signers`), checked before anything changes. Otherwise the update
stops (exit code `1`, a warning in the notifications feed and on Telegram) and the current version keeps running.
`true` asks for a signature on every branch (also `beta` and `main`, whose commits are not signed: add your own
keys with `gpg --import` or `gpg.ssh.allowedSignersFile`). In the mode `"stable"`, a server without `ssh-keygen` or
with a git older than 2.34 cannot check: it says so and updates. With `true`, such a server stops and `maxxing update` and `maxxing doctor` say what to install (or to turn the check off). `false` turns the check off;
`maxxing doctor` and Settings -> Security tell whether the check is on.

## maxxing license

| Command | Effect |
|---|---|
| `maxxing license status [--json]` | the optional Enterprise key of this server (type, email, end date) and where updates come from |
| `maxxing license activate [HM-…]` | record an Enterprise key, checked by the license server (asked hidden; `--key-from-stdin` reads it from stdin) |
| `maxxing license remove` | forget the key and free its place on the license |
| `maxxing license release` | free the key's place without forgetting it |

See [License](license.md).

## maxxing video, maxxing pdf

| Command | Effect |
|---|---|
| `maxxing video new DIR` | create a Remotion project in DIR (node_modules linked to the shared install) |
| `maxxing video render [DIR] [--id Intro] [--out out/video.mp4] [--device auto\|NAME\|server]` | render a Remotion project: on one of your computers whose Compute function is on (Devices), else on this server with the background priority (through `maxxing heavy`) |
| `maxxing video status` | Node.js, Remotion and the headless browser on this server (exit 1 if not ready) |
| `maxxing pdf IN.html OUT.pdf` | print an HTML file or an `https://` URL to PDF (A4, backgrounds) |
| `scrapling extract get\|fetch URL OUT.md` | fetch a page (HTTP / browser) to Markdown, text or HTML |
| `scrapling-python SCRIPT.py` | run a scraping script with Scrapling and its browser |
| `bash /opt/claude-maxxing/install.sh --tools` | (re)install Node.js, Chromium, Remotion and Scrapling (= `maxxing deps update`) |

## maxxing heavy

| Command | Effect |
|---|---|
| `maxxing heavy COMMAND [ARGS…]` | run a long, CPU-hungry command (render, encode, build, compression) with the background priority: when the processor is full it goes after the interface and the sessions, and is never slowed otherwise. Same terminal, same output, same exit code. Runs in a scope of `maxxing-jobs.slice` (named after the session or job that started it); without systemd or as a normal user, under `nice -n 10` and `ionice -c3` |

See [CPU priorities](settings-and-keys.md#cpu-priorities).

## maxxing import

| Command | Effect |
|---|---|
| `maxxing import --prompt [hermes\|claude-code\|openclaw\|other]` | print the prompt to give your old agent |
| `maxxing import ZIP --dry-run [--json]` | show what would be imported |
| `maxxing import ZIP [--json]` | import it (nothing overwritten; see [Import](import.md)), then print the message that lets a session finish (tasks, scheduled jobs, keys) |

## maxxing custom

Changes made to the product code, recorded so updates carry them over (see [Customizing](customizing.md)).

| Command | Effect |
|---|---|
| `maxxing custom` / `status [--json]` / `list` | customizations, unsaved changes in the code directory, the customized interface, pending update |
| `maxxing custom save "TITLE" --why "REASON" [--files F…] [--check "CMD"]` | commit the uncommitted changes as one customization (refused under `web/dist`, the shipped interface build); `--check` = a command that succeeds while it works, run after every update |
| `maxxing custom check ID "CMD"` | set (or clear with `""`) the check of a customization |
| `maxxing custom drop ID` | remove one customization |
| `maxxing custom export` | rewrite `<workspace>/CUSTOMIZATIONS.md` and `customizations/*.patch` |
| `maxxing custom restore [--from DIR] [--stat]` | re-apply the saved patches (new server); `--stat` only lists the patches that would be applied |
| `maxxing custom build [--force] [--json]` | typecheck and build the customized interface into the state directory (shown at once; the first build installs the build tools) |

## maxxing deps

The external components (`server/maxxing/deps.toml`: uv, Python, Node.js, Claude Code, Caddy, Scrapling, Chromium,
Remotion, the Whisper models, Garage). As root.

| Command | Effect |
|---|---|
| `maxxing deps list [--json] [--quiet]` | installed and expected version of each one (exit 1 when one is missing or outdated); `--quiet`, on any `deps` command, prints only problems |
| `maxxing deps verify [NAME...]` | checksums of the installed binaries, files not owned by root or writable by others |
| `maxxing deps update [NAME...] [--notify]` | install the pinned versions next to the old ones, switch once they work (every `maxxing update` does it) |
| `maxxing deps remove NAME [--force]` | delete what the manifest lists for it (`--force` for uv, Python, Claude Code) |
| `maxxing deps clean [--dry-run] [--caches]` | old versions, unused browsers, leftovers, oversized logs (weekly job); `--caches` also empties root's uv / npm / pip / npx caches, shared with the other tools of the server |
| `maxxing deps check [--notify] [--json]` | known vulnerabilities (osv.dev) in the lockfiles and components (weekly job, notification); exit code 1 when something is vulnerable, 0 with `--notify` (the notification reports it) |

## maxxing uninstall

| Option | Effect |
|---|---|
| (none) | remove the service, Caddy site, managed crontab block, product skills and `/usr/local/bin/maxxing`; keep code, state and workspace |
| `--purge` | also delete the code (`/opt/claude-maxxing`), the state (`/var/lib/claude-maxxing`) and the external components of `deps.toml` (uv, Node.js, the tools; Claude Code and Caddy when the installer installed them; its swap file); a code or state directory that is a link is kept |
| `--purge-workspace` | also delete the workspace (irreversible; kept if it is a link, a system directory or has no `CLAUDE.md` nor `projects/`) |
| `--yes` | do not ask for confirmation |

## Scheduled jobs

| Command | Purpose |
|---|---|
| `maxxing cron list` | jobs, schedules, last results |
| `maxxing cron run <id>` | run a job now in your terminal and wait for it; `--detach` starts it in its own systemd unit with the memory limits and returns (it runs it here if systemd refuses) (what the crontab calls); `--if-due` runs it only if its schedule matches now in your zone (server clock kept) |
| `maxxing cron sync` | rewrite the managed crontab block from the job list |
| `maxxing cron tick` | start the missed runs and the retries that are due (what the server does every 5 minutes) |
| `maxxing cron deleted` | the removed jobs that are kept |
| `maxxing cron restore <id>` | put a removed job back |
| `maxxing cron show <id>` | one job as JSON |
| `maxxing cron edit <id> [--prompt\|--schedule\|--name\|--on\|--off ...] [--if-updated STAMP]` | change only the fields given |
| `maxxing cron delete <id> [<id>...]` | remove jobs (kept, back with `cron restore`) |

## Notifications feed

| Command | Purpose |
|---|---|
| `maxxing feed post "Title" [--body] [--level info\|success\|warning\|error] [--source NAME] [--url] [--dedupe KEY] [--group KEY] [--quiet] [--json]` | add an event (dashboard, and Telegram per the source's rule); `--dedupe` ignores a repeat, `--group` folds repeats |
| `maxxing feed list [--unread] [--source] [--limit] [--json]` | latest events |
| `maxxing feed read-all` | mark everything read |
| `maxxing packs list [--json]` | starter projects and whether they are installed |
| `maxxing packs add ID [ID...] [--json]` | add starter projects (never overwrites: only missing files are added; jobs created disabled) |

## Team

| Command | Purpose |
|---|---|
| `maxxing team send NAME MESSAGE... [--file PATH] [--json]` | send a message to a contact or a group, in your name (name: case and accents ignored, a unique beginning is enough, or a contact's address; `-` reads the message from stdin; `--file` repeatable). Team must be on |
| `maxxing team list [--json]` | the contacts and groups you can write to |

## Keys

| Command | Purpose |
|---|---|
| `maxxing keys list [--json]` | names, notes and whether each key is exposed, files marked `file`, and between brackets the projects / topics a key is limited to (never the values or contents) |
| `maxxing keys get NAME` | print a value (exit code 1 when missing) |
| `printf %s "$VALUE" \| maxxing keys set NAME [--note TEXT] [--no-expose] [--topics PATHS]` | create or update a key; the value comes from stdin, never from the command line. `--topics projects/a,projects/b/topics/c` gives it only to the sessions and jobs of these projects / topics (`--topics ""`: every topic again; without the option an update keeps its scope). A new key is exposed (environment variable of every session and shell job) unless `--no-expose`; an update keeps its note and exposure; a multi-line value (PEM, SSH key) keeps its final line break; a value that is not UTF-8 text is refused (use `put-file`) |
| `maxxing keys delete NAME` | remove a key |
| `maxxing keys put-file NAME PATH [--note TEXT] [--no-expose] [--topics PATHS]` | store a secret **file** (keystore, service-account JSON, certificate; 1 byte to 1 MiB) read from `PATH`, or from stdin with `-`. A new file is exposed (the environment variable `NAME` holds its path in sessions and shell jobs) unless `--no-expose`; `--topics` as for `set`; never in the backup |
| `maxxing keys get-file NAME [--output PATH] [--force]` | write the file to stdout, or to `PATH` (mode 600; refuses an existing path unless `--force`) |
| `maxxing keys delete-file NAME` | remove a secret file |
| `maxxing keys check-set NAME "command"` | give a key a health check: a shell command run with the key as `$NAME` (30 s at most, exit code 0 = it works), once a day by the server; a failure posts one notification naming the agents that use the key. `""` removes it. Refused in an agent's turn |
| `maxxing keys check [NAME] [--json]` | run the checks now (all, or NAME): ok / FAILED and their output (300 characters, the value hidden); exit code 1 when one fails |
| `maxxing keys encrypt` | seal the server's secrets on disk (as root): `secrets.json` becomes `secrets.json.cred`, encrypted by `systemd-creds` with this machine's key (and its TPM when systemd uses one), checked by decrypting it back before the clear file is removed. A copy kept of a once damaged `secrets.json` (`secrets.json.damaged-*`) is not sealed: it is named in a warning, to compare and delete. Refuses, changing nothing, when `systemd-creds` is missing (systemd older than 250) or the check fails. Nothing else changes: the server and every `maxxing` command read it as before. See [Security](security.md#secrets-sealed-on-disk-optional) for what it protects and what it does not |
| `maxxing keys decrypt` | undo it: a clear `secrets.json` (mode 600) again. Needed before moving the state folder to another server |
| `maxxing infra status` / `infra list [--kind K] [--all] [--json]` | the Infra inventory: sources, problems, every site / database / bucket / domain / server (last snapshot); `--all` includes hidden and system resources |
| `maxxing infra refresh` | read everything now (this server, other servers over SSH, Cloudflare, Hostinger, URL checks) |
| `maxxing infra mail [--refresh] [--json]` | e-mail, view only: mailboxes of the E-mail page, Cloudflare Email Routing forwards, Hostinger e-mail, DNS health (MX, SPF, DKIM, DMARC) of the mail domains with what to fix |
| `maxxing infra site add NAME (--dir D \| --port N) [--host H] [--dns] [--project P] [--keep-prefix]` | put a site online: `https://<Harness address>/<NAME>/` (sandboxed) or its own host (`--dns`: create its DNS record on Cloudflare); `--keep-prefix`: an app under `/<NAME>/` that handles the prefix itself; `site remove NAME`, `site list`, `infra reserved` (the names a site cannot take) |
| `maxxing infra db install` / `db create NAME` / `db sqlite PATH` / `db backup` | PostgreSQL on localhost, one database + user per app (URL in the vault as `DB_<NAME>_URL`), nightly backups |
| `maxxing infra bucket install` / `bucket create NAME [--public]` | S3 buckets on this server (Garage), keys in the vault as `S3_<NAME>_*` |
| `maxxing infra server connect TARGET [--user U] [--port N] [--label L]` | connect another server: an address, or a Hostinger VPS id (see `infra list --kind server`) |
| `maxxing infra server add NAME HOST [--user U] [--port N] [--key K] [--note T] [--label L] [--force]` | read another server over SSH with a key you already have (`server rename NAME LABEL`, `server remove NAME`, `server list`) |
| `maxxing infra remote TOPIC [SERVER FOLDER] [--credentials] [--check] [--off]` | run a topic's sessions on another server of Infra over SSH (Claude Code there, in FOLDER); without SERVER: show it; `--off`: back on this server |
| `maxxing infra domain add NAME` / `domain remove NAME` / `domain list` | domains added by hand (any registrar) |
| `maxxing infra docker status` / `docker install [--restart]` | Docker on this server: installed from Docker's signed repository, with safe defaults (ports on 127.0.0.1 unless a file says otherwise, rotated logs); `--restart` applies the defaults to a Docker already running (restarts its containers) |
| `maxxing infra app add NAME --compose FILE [--host H] [--dns] [--port N] [--project P] [--env K=V] [--secret K] [--allow-socket]` | run a Docker app the standard way: the compose file is checked (`app check FILE`), copied to `/srv/apps/NAME/`, started, and served at its own address; `--secret K` generates a value kept in Keys as `APP_<NAME>_<K>`. `app list`, `app status|logs|start|stop|restart NAME`, `app page NAME [--off]` (a page of Harness showing it), `app remove NAME [--purge]` (data kept unless `--purge`) |
| `maxxing infra annotate ID [--project P] [--note T] [--hide\|--show]` | attach a resource to a project, note it, hide it |

Scripts read keys from the environment (`os.environ["NAME"]`, `$NAME`); a script that renews a token
(a 24-hour shop token, a webhook secret it just created) writes it back with `maxxing keys set`.

## MCP servers

| Command | Purpose |
|---|---|
| `maxxing mcp list [--json] [--no-check]` | every MCP server of Claude Code, where it applies and its state (asks Claude Code first, a few seconds) |
| `maxxing mcp add NAME URL [--where projects/P/topics/T] [--header 'Name: value'] [--sse]` | add a server by address, for every session or one topic; secrets as `${KEY}` from the vault |
| `maxxing mcp add NAME --command 'npx -y pkg' [--env KEY=VALUE] [--where …]` | add a local program |
| `maxxing mcp remove NAME [--where …]` | remove it |
| `maxxing mcp load NAME [--session ID]` | in a session (setting *Load MCP servers only when a session needs them*): load that server from the next turn on; Harness continues the turn by itself |

OAuth sign-ins (state "To connect") are done in Settings -> MCP -> **Connect**. See [MCP servers](mcp.md).

## Agents

| Command | Purpose |
|---|---|
| `maxxing agents list [--json]` | every agent: path, name, on/off, triggers, cost of the day |
| `maxxing agents run AGENT [TASK] [--data] [--json]` | start it now (a new session); `--data`: the text is outside data, not a task; exit 1 when a limit refused it |
| `maxxing agents send AGENT TEXT [--json]` | from an agent's session: hand work to another agent (the text is given as data; 3 hops at most) |
| `maxxing agents ask AGENT QUESTION [--file PATH]... [--option LABEL]... [--json]` / `--list` / `--cancel ID` | ask the owner to review a deliverable: a card with the files, buttons and a comment box; the answer starts a new run of the agent (an agent asks for itself only) |
| `maxxing agents on AGENT` / `off AGENT` | switch it on / off |
| `maxxing agents silent AGENT` / `loud AGENT` | it works without notifying you (no Telegram, notifications already read, nothing unread) / back to normal |
| `maxxing agents templates [--lang L] [--json]` | the ready-made agents (id, name, trigger) |
| `maxxing agents create P/T/A --role TEXT\|--role-file F\|--template ID [--lang L] [--name N] [--model M] [--permission M] [--approvals] [--keys A,B] [--trust-outside] [--telegram] [--usd-per-day N] [--runs-per-hour N] [--domains H,H] [--writable D,D] [--mail ADDRESS] [--no-sandbox] [--off] [--json]` | create an agent in a topic (sandboxed unless `--no-sandbox`; `--template`: a ready-made agent, the other options override it; `--mail`: a mailbox for the agent - the one an e-mail template needs, or for a role-only agent read + drafts with the `maxxing mail` tool allowed) |
| `maxxing agents check [AGENT] [--json]` | readiness of an agent (all without AGENT): keys, MCP servers, browser and devices, paths of its role, role size, its last 7 days; each problem with its fix. Exit code 0 when ready, 1 otherwise. In an agent's turn: itself only |
| `maxxing agents show AGENT` | its settings, role, triggers, schedule jobs and webhook URLs (JSON, no secret) |
| `maxxing agents set AGENT FIELD=VALUE... [--json FIELDS]` | change its settings (JSON values: `approvals=true`, `domains='["example.com"]'`, `limits.usd_per_day=3`, `model=sonnet`); `--json`: the fields as one JSON object. From the agent's own runs, what makes it less safe waits for your OK (see [Agents](agents.md)) |
| `maxxing agents cron AGENT --schedule CRON [--prompt T] [--name N] [--json]` | add a schedule (a Claude job in the agent folder) |
| `maxxing agents cron AGENT --job ID [--schedule CRON] [--prompt T] [--name N] [--on \| --off] [--remove]` | change one of its schedules (its id: `agents show`), switch it on or off, or remove it |
| `maxxing agents webhook AGENT [--kind generic\|stripe\|shopify\|github] [--prompt T] [--levels L] [--match W] [--unsigned] [--json]` | add a webhook and print its URL (a generic one: also its signing secret, once; `--unsigned` for a service that cannot sign) |
| `maxxing agents watch AGENT --source S [--levels L] [--match W] [--prompt T] [--json]` | start it on new feed events of a source |
| `maxxing agents after AGENT OTHER [--on ok\|error\|any] [--match W] [--prompt T] [--json]` | start AGENT on the result of each automatic run of OTHER |
| `maxxing agents need AGENT FIELD=VALUE... --why TEXT` | from the agent's own turns: ask the owner for an access (keys, domains, browser, devices, writable, limits...; list values are added); an Allow / Deny card, never applied by itself |
| `maxxing agents later AGENT DELAY "TEXT" [--json]` / `--list` / `--cancel ID` | one run of the agent in DELAY (15m, 2h, 1d; 5 min to 7 days) with that instruction; at most 10 pending |
| `maxxing agents teach AGENT "RULE" [--section NAME]` | add a dated rule of the owner to its role (default section `Owner's rules`); refused in its runs |
| `maxxing agents propose-role AGENT FILE --why "REASON" [--json]` | propose a whole new role (FILE = the new CLAUDE.md): a card with Apply / Refuse for the owner (its runs: itself only) |
| `maxxing agents role-history AGENT [--json]` | the kept versions of its role (the last 20) |
| `maxxing agents role-restore AGENT N` | put version N of its role back (owner only) |
| `maxxing agents export AGENT [-o FILE]` | the agent as a Claude Code agent file (`.claude/agents/<name>.md`) |
| `maxxing agents import FILE --topic P/T [--name N]` | create an agent from a Claude Code agent file |
| `maxxing agents sandbox-setup` | install what the agents' sandbox needs (root): `bubblewrap`, `socat`, the AppArmor profile |
| `maxxing agents group list [--json]` | the agent groups: path, name, members |
| `maxxing agents group show P/G [--messages N]` | a group: members, goal, options, last messages (JSON) |
| `maxxing agents group create P/G --member AGENT[=ROLE] ... [--name N] [--emoji E] [--goal T] [--lead AGENT] [--no-shared-files] [--ask-on-handover] [--json]` | create a group of 2 to 6 agents of project P |
| `maxxing agents group update P/G [--name N] [--emoji E] [--goal T] [--lead AGENT] [--member AGENT[=ROLE] ...] [--shared-files on\|off] [--trust-members on\|off]` | change a group (`--member` replaces the members) |
| `maxxing agents group say P/G TEXT` | write to a group as yourself; its members answer in turn (refused in an agent's run) |

`AGENT` = `project/topic/agent` (or `projects/P/topics/T/agents/A`, or the agent's name when it is unique). See
[Agents](agents.md) and [Agent groups](agent-groups.md).

## Community packages

What an extension, a skill or a theme written by someone else does, read before it is installed
([13-page-extensions.md](page-extensions.md#what-a-package-does-before-it-is-installed)). A reading aid, not a verdict.

| Command | Purpose |
|---|---|
| `maxxing community check PATH [--kind extension\|skill\|theme] [--json]` | read a folder or a zip without running it: code on the server, network, keys, processes, downloads, paths outside its folder (file and line), and the sha256 of the content; nothing installed |
| `maxxing community install PATH [--sha256 HASH] [--yes] [--read] [--force] [--source TEXT]` | show the report, ask, then install exactly that content (refused when it differs from `--sha256`); `--yes` needs `--sha256`, findings marked danger need `--read`; `--force` replaces an installed one; exit code 3 = waiting for the owner's agreement; refused in an agent's run |
| `maxxing community list [--json]` | what was installed this way: sha256, source, date, and whether its files changed since |

## Themes

Settings -> Appearance -> [Theme](themes.md): a theme is a `theme.json` of values (no code; at most one field of advanced CSS), made or
installed by Harness (skill `maxxing-theme`).

| Command | Purpose |
|---|---|
| `maxxing themes list [--json]` | installed themes, and folders that are not usable with the reason |
| `maxxing themes check FOLDER [--json]` | read a theme like the interface will: what it sets, what is dropped and why (nothing installed) |
| `maxxing themes install FOLDER [--force]` | check it (a folder or a zip), then copy it into `<workspace>/themes/<id>/` (`--force` replaces it); refused in an agent's run |
| `maxxing themes install FOLDER --sha256 HASH [--source TEXT] [--yes] [--read]` | a theme from outside: installs only the content `maxxing community check` reported, and records it |
| `maxxing themes verify ID` | its advanced CSS was checked with this version of the interface: switch it back on (an update that changes the interface's CSS switches it off); refused in an agent's run |
| `maxxing themes remove ID` | delete an installed theme (browsers using it go back to its base); refused in an agent's run |
| `maxxing themes tokens [--json]` | the variables a theme may set and their kind |

## Webhooks and events

Settings -> Automate -> [Webhooks](webhooks.md) and [Events](events.md): automations without AI (one trigger,
one action). Harness creates them from a session; the definition is JSON (see the skill `maxxing-webhooks`).

| Command | Purpose |
|---|---|
| `maxxing webhooks list [--json]` | every webhook and event: id, on/off, sentence, last call (`[needs its signing secret]` when a Stripe / Shopify / GitHub one has none) |
| `maxxing webhooks show ID [--json] [--sign-secret]` | one of them, with its URL; `--sign-secret` prints the key that signs its calls (`X-Harness-Signature`) |
| `maxxing webhooks add [--spec JSON]` | create one from its JSON definition (`--spec`, or JSON on stdin); prints its id and URL (a new generic webhook: also its signing secret, once; `"unsigned": true` in its trigger for a caller that cannot sign) |
| `maxxing webhooks edit ID [--spec JSON]` | change it: the top-level keys given (`name`, `description`, `trigger`, `action`, `queue`, `report`, `enabled`) are replaced; an edit that makes it a signed generic webhook (from another kind, or `unsigned` removed) prints its new signing secret, once; `unsigned` ticked on a signed generic webhook, or another `source` (other than `phone`), removes its old secret (a Stripe, Shopify or GitHub one then asks for its own) |
| `maxxing webhooks describe ID "SENTENCE"` | the sentence shown on the page |
| `maxxing webhooks on ID` / `off ID` / `remove ID` | switch on / off, delete (its calls and data too) |
| `maxxing webhooks url ID` / `rotate ID` | print its URL / give it a new one (the old one stops at once) |
| `maxxing webhooks secret ID` | set its signing secret or phone key, read on stdin (`printf %s "$S" \| maxxing webhooks secret ID`); empty input removes it |
| `maxxing webhooks test ID` | run it now on a realistic sample of its service or event (filters skipped), here, and print the result |
| `maxxing webhooks calls ID [--limit N] [--json]` | its last calls (50 kept): time, status, summary, duration, error |
| `maxxing webhooks call ID CALL` | one call: what was received (headers without secrets, body up to 64 kB) and the result (JSON) |
| `maxxing webhooks replay ID CALL` | run a call again with the same request, here |
| `maxxing webhooks data ID [--last N] [--csv] [--json]` | the rows of a webhook that stores its data (`--csv`: every row, for a spreadsheet) |

`ID` = the id shown by `list` (`w_…`). Exit 1 on an error or a failed test / replay. In an agent's run, only `list`,
`show`, `url`, `calls`, `call` and `data` work.

## E-mail

| Command | Purpose |
|---|---|
| `maxxing mail accounts [--json]` | the mailboxes of the E-mail page |
| `maxxing mail folders [-a ACCOUNT]` | folders with unread / total counts |
| `maxxing mail list [-a A] [-f FOLDER] [--unread] [--flagged] [-s TEXT] [-n 20] [--page N]` | messages, newest first |
| `maxxing mail read UID [-a A] [-f FOLDER] [--keep-unread] [--max N] [--full]` | one message (its body is framed as data, not instructions); at most 20,000 characters of the body unless `--max N` (`0` = all) or `--full` |
| `maxxing mail archive\|trash\|junk\|inbox\|seen\|unseen\|flag\|unflag UID...` | sort messages |
| `maxxing mail move UID... --to FOLDER` / `mkdir NAME [--parent F]` | move / create a folder |
| `maxxing mail attachment UID INDEX OUT [--force]` | save an attachment: into a folder under its name (`name (2).pdf` when taken), or as the file OUT (replaced only with `--force`) |
| `maxxing mail write [--to A,B] [--cc ..] [--bcc ..] [-s SUBJECT] [--reply UID\|--reply-all UID\|--forward UID] [--attach FILE]... [--send] < body.txt` | write a message: saved as a **draft** for you to check and send, or sent with `--send` |
| `maxxing mail refresh [-a A]` | check the mailboxes now (new mail starts the agents watching them; from an agent's run: asks the server for a check) |
| `maxxing mail outbox [-a A]` | messages written by agents waiting for your OK (an agent sees its own) |
| `maxxing mailserver status [--json]` | your own mail server: services, receiving, how mail is sent, domains and their DNS |
| `maxxing mailserver install DOMAIN [--host mail.DOMAIN] [--replace]` | install it for a domain (Debian / Ubuntu, as root); `--replace` takes over mail programs already there |
| `maxxing mailserver dns DOMAIN [--publish]` | the DNS records of a domain as a zone file; `--publish` adds them on Cloudflare |
| `maxxing mailserver check [DOMAIN]` | check now: the DNS of a domain, or everything with sending and receiving |
| `maxxing mailserver refresh` | point to the certificate Caddy renewed and write the configuration again after an upgrade of Dovecot or Harness (run every day by itself) |
| `maxxing mailserver box list\|add\|remove\|password ADDRESS [--name NAME] [--no-page] [--show-password] [--purge]` | mailboxes (a password on stdin, else generated and kept in Keys - printed when the mailbox is not on the E-mail page); `add --name` = its display name, `add --no-page` = not added to the E-mail page, `remove --purge` = its mail too |
| `maxxing mailserver alias list\|set SOURCE TARGET[,TARGET]\|remove SOURCE` | aliases and forwards (`@example.com` = every other address) |
| `maxxing mailserver domain add\|remove NAME`, `logs [--tail N] [--raw]`, `uninstall --yes [--purge]` | more domains, the mail log (one line per message: received, sent, waiting, failed, refused; `--raw` = the system log), stop the server (the mail stays unless `--purge`) |
| `printf %s "$PW" \| maxxing mail add ADDRESS [--imap HOST[:PORT]] [--smtp HOST[:PORT]]` | add a mailbox (password on stdin) |

`ACCOUNT` = id or address (default: the first mailbox). See [E-mail](mail.md).

## Harness Browser

| Command | Purpose |
|---|---|
| `maxxing browser enable` / `disable` | switch the feature on or off (as Settings -> Features); `enable` installs what is missing first (root) |
| `maxxing browser setup [--exits]` | install what it needs on this server (root): `socat`, Chromium, its user, its AppArmor profile, the browser tools; `--exits`: also Tailscale and wireproxy (exits by a phone or a box) |
| `maxxing browser status [--json]` | feature on or off, what is missing, the settings, the profiles and their exit, the exits, requests waiting for you |
| `maxxing browser settings [--ask \| --no-ask] [--wait MIN] [--downloads \| --no-downloads] [--idle MIN] [--tab-sleep MIN] [--max-tabs N] [--max-profiles N]` | the settings shared by every profile: ask you when stuck, how long it waits for you, downloads, a profile / a tab sleeps after, tabs awake per profile, profiles running at once |
| `maxxing browser profile add NAME [--exit ID] [--fallback-vps]` | a new profile (its id is made from the name); `--exit`: an exit id or `direct`; `--fallback-vps`: when its exit is down, go out by the server's address instead of waiting |
| `maxxing browser profile set ID [--name N] [--exit ID] [--fallback-vps \| --wait-exit]` | change a profile |
| `maxxing browser profile rm ID` | delete a profile and its sign-ins (`main` cannot be deleted; an agent that had it has no browser any more) |
| `maxxing browser exit test ID\|direct` | what the sites see through an exit (`direct` = the server): address, country, operator, kind, delay, speed; exit code 1 when it fails |
| `maxxing browser set PATH on\|off\|inherit [--profile ID\|inherit]` | let a project (`acme`), a topic (`acme/blog`) or an agent (`acme/blog/writer`) use it, or not (`inherit` = its parent's switch, not for an agent); sessions use their project's profile (made the first time); `--profile` (an agent only): another profile, `inherit` = its project's again |
| `maxxing browser show PATH [--json]` | what it gets (on or off, its profile) and where each is inherited from |
| `maxxing browser forget ID` | erase a profile's sign-ins, tabs and journal |

`PATH` = `<project>`, `<project>/<topic>`, `<project>/<topic>/<agent>` or the full folder. `on`, `off`, `use`,
`profile`, `forget`, `setup` and `settings` are refused in an agent's runs. Exits are added in Settings -> Browser
(their passwords go to Settings -> Keys).

See [Harness Browser](browser.md).

## Devices

| Command | Purpose |
|---|---|
| `maxxing devices enable` / `disable` | switch the feature on or off (as Settings -> Features) |
| `maxxing devices list [--json]` | the devices (online or not, mode, who may use them), the codes not used yet, the devices waiting for your OK |
| `maxxing devices add [--os windows\|darwin\|linux\|android]` | a one-time code to connect a device (15 minutes), with the command to paste on it or the link for a phone |
| `maxxing devices confirm ID [--refuse]` | accept a device waiting for your OK, or refuse it (it is disconnected and forgets this server) |
| `maxxing devices remove ID` | remove a device: Claude can no longer use it, Harness Link there forgets this server |
| `maxxing devices functions ID` | what Claude may use on the device now: its mode (`maxxing devices mode ID view\|power\|control`) and what the device itself turned off (there: `harness-link allow F`) |
| `maxxing devices rename ID NAME` | rename a device |
| `maxxing devices mode ID view\|power\|control` | View only (Claude looks), Power (+ the computer's models, renders and connection) or Control (+ clicks, typing, terminal) |
| `maxxing devices screen ID N\|main` | Harness Link before 0.2 with several screens: the one Claude sees and uses (and Watch shows); `list` shows their numbers, `*` = the one used. Harness Link 0.2 shows the screen of the active window by itself |
| `maxxing devices access ID [--all] [--project NAME]... [--agent PATH]...` | who may use it: every project and agent, some projects, some agents (`projects/<p>/topics/<t>/agents/<a>`); none of them = nobody |

`ID` = the device's id (`dev_…`) or its name. An agent also needs the device in its own settings. See [Devices](devices.md).

## Local models

| Command | Purpose |
|---|---|
| `maxxing local-models enable` / `disable` | switch the feature on or off (as Settings -> Features) |
| `maxxing local-models status [--json]` | every model found with what it does (text, image, embeddings, voice), the servers, the address and the keys |
| `maxxing local-models url` | the address for OpenAI / Anthropic clients, and the one for this server |
| `maxxing local-models key` | the default API key (also `$LOCAL_MODELS_API_KEY`) |
| `maxxing local-models key new NAME` / `key revoke ID` | another key (shown once) / stop a key |
| `maxxing local-models server add URL` / `server rm URL` | serve an OpenAI-compatible engine the scan does not find (another port or machine) |

See [Local models](local-models.md).

## Engines

| Command | Purpose |
|---|---|
| `maxxing engines list [--json]` | the active engine, and what each engine can do and is missing (not installed, no key, not signed in) |
| `maxxing engines use ENGINE` | switch the whole of Harness to an engine (as **Switch all of Harness to …** in Settings -> Engine); refused with the reason when something is missing |
| `maxxing engines install ENGINE` | install the pinned version of an engine |
| `maxxing engines model ENGINE MODEL [--small]` | an engine's default model; `--small`: its small model (titles, summaries) |
| `maxxing engines favorite ENGINE MODEL [--remove]` | a model offered in the chat's model menu |
| `maxxing engines provider PROVIDER KEY` | the entry of Settings -> Keys used for a key provider (`maxxing engines provider openrouter OPENROUTER_API_KEY`) |
| `maxxing engines accounts [ENGINE] [--json]` / `accounts use ENGINE ID` | the subscription accounts of an engine (never a credential) / make one the active account |
| `maxxing engines test ENGINE [--only WORD] [--json]` | run the conformance scenarios against an engine of your own (its folder, or its id in `<workspace>/engines`) |

`ENGINE` = `claude-code`, `codex`, `opencode`, `kimi`, `deepseek-harness`, `qwen`, `copilot`, `vibe`, `grok`,
`antigravity` or `maxxing-code`. See [Engines](engines.md) and [Several accounts per engine](engine-accounts.md).

## Memory and sessions

| Command | Purpose |
|---|---|
| `maxxing search "words" [--kind session,memory,file,task] [--in PATH] [--session ID] [--limit N] [--json]` | search past sessions, memory files (and their archive), files and tasks, with the passage around each result; `--in projects/<p>/topics/<t>` narrows to a folder, `--session ID` shows more of one session. What Claude runs to look a fact up |
| `maxxing memory [--json]` | every memory.md with its line count and the line limit (Settings -> Memory) |
| `maxxing memory-review undo ID` / `list [--json]` / `apply ID\|all` / `reject ID` / `daily` | what [agents and topics learned](memory.md): `undo` takes back a bullet or a skill that was written (same as Undo of its notification); `list`, `apply`, `reject` are for the proposals that wait in `"memory_review": "ask"` mode; `daily` runs the daily look at the busy topics now |
| `maxxing memory-review run SESSION [--prompt a\|b\|agent] [--model M] [--json]` / `learn projects/P/topics/T [--model M] [--write]` | by hand: review one session and store its proposals / print the skills and rules the recent sessions of a topic repeat (nothing kept; `--write` writes the skills into the topic) |
| `maxxing sessions send SESSION MESSAGE... [--file PATH] [--report-to SESSION\|me] [--json]` | write to a session as if typed in it (SESSION: its id, its first 8 characters or its title - case and accents ignored, a unique beginning is enough; `--file` repeatable). `--report-to`: the session its next answers are reported to (`me` = the session of this turn). Run by Claude from a session, the message says which session sent it; 3 sends in a row between sessions or agents at most. Refused in a sandboxed agent |
| `maxxing sessions new TOPIC [MESSAGE...] [--title T] [--model M] [--effort E] [--file PATH] [--report-to SESSION\|me] [--fresh REASON] [--json]` | start a session in a topic (TOPIC: `<project>/<topic>` or `projects/<project>/topics/<topic>`) with a first message; no `--title`: made from the message. Run by Claude from a session or an agent, the message says which session started it, with the same limit of 3 sends in a row. From Jarvis's conversation it is refused (exit 3, with their list, closest to the subject first) while the topic has sessions that can take the work: `sessions send` to one of them, or `--fresh "<reason>"` for another subject (the reason shows on its work board card). An agent is started with `maxxing agents run` instead. Refused in a sandboxed agent |
| `maxxing sessions list [--json]` | the sessions that are not archived: id, state, topic, title |
| `maxxing sessions list --topic <project>/<topic> [--days N] [--json]` | a topic's sessions of the last 30 days (or N) with what Jarvis needs to continue one: start of the last answer, who started it, `reusable` or why not |
| `maxxing topics list [--json]` | every project and topic with its description |
| `maxxing topics new PROJECT/TOPIC [--description T] [--project-description T]` | create a topic, and its project when it is new (lowercase letters, digits, `-`); the description is the first paragraph of its `CLAUDE.md` |
| `maxxing sessions compact-logs [--dry-run]` | clip the tool outputs of existing session logs and drop the bulky Claude start-up lists and progress lines (frees disk space; `--dry-run` only reports what would be saved) |
| `maxxing sessions trace SESSION [TURN\|last] [--json]` | what a turn did, step by step: each call to the model (context read, share from the cache), each tool with its duration and the ones that failed, the turn's tokens and cost. Without TURN: the list of the session's turns. Read from the session's log (the **Turn details** window of the interface) |
| `maxxing usage export [--group days\|projects\|topics\|agents\|sessions] [--format csv\|json] [-o FILE]` | tokens, turns and cost as a file (Settings -> Usage -> CSV / JSON) |
| `maxxing logs [--since 15m\|1h\|6h\|24h\|7d\|30d] [--level info\|warning\|error] [--grep TEXT] [--unit NAME] [--session ID] [-n N] [--json]` | search the journal of Harness Maxxing (or of another service of the System page) |
| `maxxing metrics [status\|on\|off\|token]` | the `/metrics` address for Prometheus: `on` prints the address and, the first time, its token; `token` makes a new one |
| `maxxing sessions token-report [--days N] [--json]` | where the tokens of your sessions go, read from Claude Code's transcripts: context size per call, cache rewritten after an idle hour or a model switch, the tools whose outputs fill the context, and what automatic compaction at 400k / 300k / 250k / 200k would have saved on the same calls |

## Jarvis

| Command | Purpose |
|---|---|
| `maxxing jarvis status [--json]` | on or off, its conversation, its settings, the open work |
| `maxxing jarvis say "TEXT"` | a message into its conversation of the moment |
| `maxxing jarvis new` | its next message starts a new conversation |
| `maxxing jarvis work [--all] [--json]` / `work close REF` | the work board (`--all`: closed entries too) / an entry is done (REF: its number or its session id) |
| `maxxing jarvis digest [--since H] [--mark]` | what changed since the last night pass (`--since`: the last H hours instead; `--mark`: the next digest starts now) |
| `maxxing jarvis brief` / `dream` | the morning brief, now / the night pass, now (a separate session) |
| `maxxing jarvis set KEY VALUE` | one of its settings: `model`, `dream_model`, `root`, `ask_first`, `internals`, `daily`, `brief`, `dream`, `compact_tokens`, `telegram`, `report_effort`, `reuse`, `archive_done` |

See [Jarvis](jarvis.md).

## Backup

| Command | Purpose |
|---|---|
| `maxxing backup status [--json]` | configuration and last run |
| `maxxing backup run` | back up now (exit code 2 if a secret was found) |
| `maxxing backup restore [--ref COMMIT]` | restore the whitelisted files |
| `maxxing backup restore --from OWNER/NAME [--token T] [--hold]` | new server: configure an existing backup repository, then restore (token also from `$MAXXING_GITHUB_TOKEN`); `--hold`: keep off what would run code here (jobs, extensions, hooks, local MCP servers), as on a server in use |
| `maxxing backup held` / `backup release` | what the last restore kept off / turn all of it on, once checked |

## Telegram

| Command | Purpose |
|---|---|
| `maxxing telegram status [--json]` | bot, chat, mode, threads, settings, last error |
| `maxxing telegram mode [simple\|threads\|mirror]` | show or change the mode (to `simple`: the session threads and Crons / Alerts / Notifications are deleted from Telegram) |
| `maxxing telegram test` | send a test message |
| `maxxing voice status [--json]` | voice messages: engine, model, readiness |
| `maxxing voice set [--engine] [--model] [--language]` | change the voice settings |
| `maxxing voice download [model]` | download a local speech model |
| `maxxing voice install [model]` | local dictation: install faster-whisper if needed, then download the model |
| `maxxing voice remove <model>` | delete a downloaded speech model |
| `maxxing voice tts-install [voice…]` | reading aloud: install Piper if needed, then the voices (default: French and English) |
| `maxxing voice transcribe <file>` | transcribe an audio file with the configured engine |

## Installer

```bash
curl --proto '=https' --tlsv1.2 -fsSL https://get.harness-maxxing.com | bash   # install / repair (from the public git repository, no key)
bash /opt/claude-maxxing/install.sh --update                # = maxxing update
bash /opt/claude-maxxing/install.sh --uninstall [--purge] [--purge-workspace]
bash /opt/claude-maxxing/install.sh --tools                 # (re)install Node.js, Chromium, Remotion, Scrapling (= maxxing deps update)
SOURCE_DIR=/path/to/copy bash /path/to/copy/install.sh      # install a local copy of the code (no download)
bash /opt/claude-maxxing/install.sh --secure                # security updates, fail2ban, firewall (FIREWALL=0: no firewall)
curl --proto '=https' --tlsv1.2 -fsSL https://get.harness-maxxing.com | bash -s -- --check   # look at the server first, change nothing
```
Variables: see [Installation](installation.md).

## Environment variables

| Variable | Use |
|---|---|
| `MAXXING_STATE` | state directory (default `/var/lib/claude-maxxing`); set by the service and the CLI wrapper |
| `MAXXING_GITHUB_TOKEN` | token for `maxxing backup restore --from` |
| `NO_COLOR` | plain output |
