MAX messenger CLI setup and maintenance commands
Login, profiles, configuration, the background server, the local store, diagnostics, agent connection and updates.
This reference covers setup and maintenance commands. Use it to look up login, profiles, configuration, the background server, the local store, diagnostics and agent connection.
Login, profiles, configuration, the background server, the local store, diagnostics, agent connection and updates.
Global options
Apply to every command.
Commands
max session
the stored MAX session for this profile
max session start
log this profile in to MAX
Changes something outside this computer: in MAX or in an external service.
max session start [method] [options]| Argument | Requirement | Meaning |
|---|---|---|
method | optional | token (pasted or piped), qr, qr-chrome or sms. One of: token, qr, qr-chrome, sms. Default: token. |
| Option | Purpose |
|---|---|
--answer-stdin | with --json and no terminal: print each question as a needs line on stderr and read its answer, one line, from stdin. |
--credential-storage <storage> | where the token is kept: keyring (the default, which falls back to a private file by itself when no keyring works), or file, not recommended. One of: keyring, file. Default: keyring. |
Returns: log this profile in to MAX
Example: max personal session start
max session end
log this profile out on MAX's side and forget the session here
Changes something outside this computer: in MAX or in an external service.
max session endReturns: log this profile out on MAX's side and forget the session here
Example: max personal session end
max setup
set up your personal MAX account and connect your agent
Changes something outside this computer: in MAX or in an external service.
max setup [options]| Option | Purpose |
|---|---|
--agent <agent> | install the skill for this agent; asks at a terminal, otherwise none. One of: none, codex, cursor, claude, gemini, all. |
--method <method> | how to log in when there is no session. One of: token, qr, qr-chrome, sms. Default: qr. |
Returns: set up your personal MAX account and connect your agent
Example: max personal setup
max account
the logged-in account
max account list
every account profile on this computer, and the account each is logged in as; a name that is only a bot is left out (bot list has it), one that is a bot too says bot: true; asks the messenger nothing
max account list [query]| Argument | Requirement | Meaning |
|---|---|---|
query | optional | field:value terms that narrow the list — the fields are below. |
Returns: account profile — profile, current, account, name, signed_in, bot; every field: max commands info account list
Example: max personal account list
max account show
who this profile is logged in as, with the phone number
max account show [options]| Option | Purpose |
|---|---|
--hide-phone | leave the phone number out. |
Returns: account — provider, id, name, username, phone, scope; every field: max commands info account show
Example: max personal account show
max account update
change the name, the description or the photo everyone sees on your profile
Changes something outside this computer: in MAX or in an external service.
max account update [options]| Option | Purpose |
|---|---|
--first-name <name> | your first name. |
--last-name <name> | your last name. |
--description <text> | about you. |
--photo <file> | a new profile photo — an image file. |
--hide-phone | leave the phone number out of the answer. |
Returns: account change — operation_id, account; every field: max commands info account update
Example: max personal account update --first-name Alex
max account sessions
where else this account is logged in — not max session, which is this tool's own login
max account sessions list
every device and app logged in to this account; nothing is ended
max account sessions list [query]| Argument | Requirement | Meaning |
|---|---|---|
query | optional | field:value terms; this list filters by none yet. |
Returns: account session — current, client, device, location, last_active_at, created_at; every field: max commands info account sessions list
Example: max personal account sessions list
max account sessions end
log out every other device, your phone included; this one stays
Changes something outside this computer: in MAX or in an external service.
max account sessions end [options]| Option | Purpose |
|---|---|
--others | every session but this one. |
Returns: ended account sessions — operation_id, sessions; every field: max commands info account sessions end
Example: max personal account sessions end --others
max account remove
sign the profile out, then forget it on this computer: its settings, its saved sign-in and its files; --keep-data leaves its messages in the store, where search still finds them, --delete-data deletes them; asks first, or --yes
Changes something outside this computer: in MAX or in an external service.
max account remove [options]| Option | Purpose |
|---|---|
--keep-data | leave what the store holds of this account, still searchable. |
--delete-data | delete what the store and the tool's own files hold of this account. |
--dry-run | list what it would remove and keep, and change nothing. |
Returns: account removal — profile, data, dry_run, account, revoked, config_file, removed, kept; every field: max commands info account remove
Example: max personal account remove --keep-data --dry-run, max personal account remove --delete-data --yes
max account privacy
who may find, call or add the account
max account privacy show
the account's privacy settings; reading changes nothing
max account privacy showReturns: account privacy — find_by_phone, phone_number, calls, chat_invites, hide_online, read_receipts, profile_photo, about, and 1 more; every field: max commands info account privacy show
Example: max personal account privacy show, max personal account privacy show --json
max account privacy set
change who may find, call or add the account; the settings not named stay
Changes something outside this computer: in MAX or in an external service.
max account privacy set [options]| Option | Purpose |
|---|---|
--find-by-phone <who> | who finds the account by its number: everyone, contacts or nobody. |
--phone-number <who> | who sees the number: everyone, contacts or nobody. |
--calls <who> | whose calls ring: everyone, contacts or nobody. |
--chat-invites <who> | who may add the account to groups and channels: everyone, contacts or nobody. |
--hide-online <on|off> | hide online status and last seen. |
Returns: account privacy change — operation_id, privacy; every field: max commands info account privacy set
Example: max personal account privacy set --find-by-phone contacts, max personal account privacy set --hide-online on
max store
the local store of messages
max store status
per chat: messages stored, the oldest and newest, and the stretches held completely
max store status [chat]| Argument | Requirement | Meaning |
|---|---|---|
chat | optional | a chat: its id, or part of its title. |
Returns: store chat status — chat_id, title, kind, messages, oldest_at, newest_at, last_stored_at, held; every field: max commands info store status
Example: max personal store status "Book club"
max store chats
the account's chats as the store holds them
max store chats status
over this account's searchable chats of every kind, channels included: fetched (back to the first message, up to date, no gaps), partial, never (no fetch recorded and no message held), and the oldest message held; reads the store only
max store chats statusReturns: chat coverage — chats, fetched, partial, never, oldest_message_at; every field: max commands info store chats status
Example: max personal store chats status
max store gaps
inspect recorded interior coverage gaps and explicitly fetch them
max store gaps show
local coverage plan; missing message ids alone do not imply missing history
max store gaps show <chat>| Argument | Requirement | Meaning |
|---|---|---|
chat | required | a chat: its id, or part of its title. |
Returns: store gap plan — version, scope, account, chat, ordering, held, gaps, unknown, and 2 more; every field: max commands info store gaps show
Example: max personal store gaps show "Book club"
max store gaps repair
fetch bounded interior gaps and recheck coverage; never delete unseen messages
Changes something only on this computer.
max store gaps repair <chat> [options]| Argument | Requirement | Meaning |
|---|---|---|
chat | required | a chat: its id, or part of its title. |
| Option | Purpose |
|---|---|
--limit <n> | total messages in this repair, 500 by default. |
--max-gaps <n> | at most this many gaps, 5 by default. |
--repair-time <duration> | time budget for the repair, 30s by default. Default: 30s. |
--page-size <n> | messages per provider page. |
--pause <duration> | provider pause between pages. Default: 5s. |
--fingerprint <hash> | refuse if this previously inspected coverage plan changed. |
--catch-up | prepare local search after repair; overrides search_catch_up. |
--no-catch-up | skip local search preparation after repair. |
--catch-up-chunks <n> | maximum local chunks prepared. |
--catch-up-messages <n> | maximum stored messages read for preparation. |
--catch-up-time <duration> | preparation time within the repair's remaining budget. |
--background | repair as an existing store job; inspect store jobs show. |
Returns: store gap repair — job, pid, chat, log, version, scope, before, after, and 6 more; every field: max commands info store gaps repair
Example: max personal store gaps repair "Book club" --limit 100
max store jobs
background sync jobs
max store jobs list
background sync jobs, newest first
max store jobs list [query] [options]| Argument | Requirement | Meaning |
|---|---|---|
query | optional | field:value terms that narrow the list — the fields are below. |
| Option | Purpose |
|---|---|
--limit <n> | how many to show. |
--page <n> | which page, starting at 1. |
--all | every row, no paging. |
Returns: job — id, chat, state, pid, started_at, fetched, finished_at, message_limit, and 5 more; every field: max commands info store jobs list
Example: max personal store jobs list
max store jobs show
one background job — the newest when none is named — and what the store now holds of its chat
max store jobs show [job]Returns: store job details — chat, state, pid, started_at, fetched, job, profile, progress, and 11 more; every field: max commands info store jobs show
Example: max personal store jobs show
max store jobs cancel
stop a running background job after its current page; a later sync resumes where it stopped
Changes something only on this computer.
max store jobs cancel <job>| Argument | Requirement | Meaning |
|---|---|---|
job | required | the job id. |
Returns: store job cancel — job, cancelled; every field: max commands info store jobs cancel
Example: max personal store jobs cancel job-101
max store jobs retry
start a partial, failed or died job again, as a new job; the sync resumes where the store stopped
Changes something only on this computer.
max store jobs retry [job] [options]| Argument | Requirement | Meaning |
|---|---|---|
job | optional | the job id. |
| Option | Purpose |
|---|---|
--failed | every chat whose newest job partial, failed or died. |
Returns: store job retry — job, pid, chat, log, retried, error; every field: max commands info store jobs retry
Example: max personal store jobs retry --failed
max store jobs clear
forget finished jobs and remove their logs; a running job is kept
Changes something only on this computer.
max store jobs clearReturns: store job clear — cleared; every field: max commands info store jobs clear
Example: max personal store jobs clear
max store export
a chat's stored messages, oldest first: --jsonl one message per line, --json the list envelope of messages; never asks the messenger
Changes something only on this computer.
max store export [chat] [options]| Argument | Requirement | Meaning |
|---|---|---|
chat | optional | a chat: its id, or part of its title; several with --output-dir. |
| Option | Purpose |
|---|---|
--format <format> | jsonl: one message per line, the default with --output; markdown: a transcript with a heading per day, replies and forwards quoted. |
--since-time <time> | only from this ISO 8601 time, or 30m / 2h / 1d ago, on. |
--output <file> | write JSON lines, or the transcript, to this new file, readable only by you. |
--output-dir <dir> | write into this folder, a file per chat and a manifest; run again on it for only what changed since. |
--include <kinds> | with --output-dir: every stored chat of these kinds, comma-separated: dialog, group, channel, saved. |
--all | with --output-dir: every stored chat of this account. |
--encrypt | compress and encrypt with a password, typed at a hidden prompt or piped on stdin; it is never kept — lose it and the file cannot be opened. |
Returns: store export — ref, id, chat_id, sender_id, sender_name, sender_is_me, timestamp, edited_at, and 36 more; every field: max commands info store export
Example: max personal store export "Book club" --output ./messages.jsonl
max store clear
delete from the store the chats this account has left, with their messages
Changes something only on this computer.
max store clear [options]| Option | Purpose |
|---|---|
--left | the chats this account has left — the only thing this clears. |
--allow-dangerous | yes, delete — it cannot be undone, and a chat you left cannot be fetched again. |
--dry-run | list the chats it would delete, and delete nothing. |
Returns: store clear — cleared, chats, messages, left, dry_run; every field: max commands info store clear
Example: max personal store clear --left --dry-run
max store import
load a JSON file marked "synthetic": true (account, people, chats, members, messages) into this profile's account in the local store, as a sync would save them; the same file twice adds nothing and a changed message is updated in place. Refuses the owner's real store. Without --yes, says what it would load and changes nothing
Changes something only on this computer.
max store import <file>| Argument | Requirement | Meaning |
|---|---|---|
file | required | the JSON file to load. |
Returns: store import — store, profile, account, imported, file, added; every field: max commands info store import
Example: max personal store import ./synthetic-chats.json --yes
max store info
the store file: where it is, its size, its schema against the one this tool speaks, which tools used it and how many rows it holds, by provider, chat kind, account, year (UTC) and attachment kind, over every account; changes nothing
max store infoReturns: store info — path, exists, schema, opens, error, bytes, journal_mode, pages, and 12 more; every field: max commands info store info
Example: max personal store info
max store check
whether the store is healthy — integrity, search indexes, disk, and which chats are behind
max store checkReturns: store check — path, exists, ok, opens, error, checks, schema, integrity, and 11 more; every field: max commands info store check
Example: max personal store check
max store migrate
bring the store up to this build's schema, then normalize, index and stem the messages and notes stored before it
Changes something only on this computer.
max store migrateReturns: store migration — path, exists, from, to, normalized, indexed, terms, stemmed, and 1 more; every field: max commands info store migrate
Example: max personal store migrate
max store rebuild
rebuild the word index, its typo vocabulary, the stems, the files' word index, the notes' indexes and who took part in what, from what is stored, and drop the vectors no stored text uses; loses nothing
Changes something only on this computer.
max store rebuildReturns: store reindex — path, exists, normalized, indexed, terms, stemmed, notes_indexed, file_texts, and 2 more; every field: max commands info store rebuild
Example: max personal store rebuild
max store backup
copy the store into a new file, while it is in use; never overwrites a file
Changes something only on this computer.
max store backup <file> [options]| Argument | Requirement | Meaning |
|---|---|---|
file | required | the new file. |
| Option | Purpose |
|---|---|
--encrypt | compress and encrypt with a password, typed at a hidden prompt or piped on stdin; it is never kept — lose it and the file cannot be opened. |
Returns: store backup — path, from, bytes, schema, rows, encrypted; every field: max commands info store backup
Example: max personal store backup ./backup.db
max store restore
put a backup in place of the store; the store it replaces is kept beside it, never deleted. Given a rollback copy (backups/-rollback-schema--.db, kept for a day before an upgrade older tools cannot open), put its tables back in the store and return it to that version instead
Changes something only on this computer.
max store restore <file>| Argument | Requirement | Meaning |
|---|---|---|
file | required | a file store backup wrote, or a rollback copy; one written with --encrypt asks for its password. |
Returns: store restore — path, restored_from, kept_at, schema, rolled_back, was, tables, rebuilt, and 1 more; every field: max commands info store restore
Example: max personal store restore ./backup.db
max store decrypt
open a file written with --encrypt into a new file; asks for its password
Changes something only on this computer.
max store decrypt <file> [options]| Argument | Requirement | Meaning |
|---|---|---|
file | required | a file store backup --encrypt or store export --encrypt wrote. |
| Option | Purpose |
|---|---|
--output <file> | the new file, readable only by you. |
Returns: store decrypt — path, from, bytes; every field: max commands info store decrypt
Example: max personal store decrypt ./backup.enc --output ./restored.db
max store repair
bring every table to this build's shape, deleting nothing: a table of the wrong shape is kept as a copy beside a new one
Changes something only on this computer.
max store repair [options]| Option | Purpose |
|---|---|
--dry-run | say what it would do, and change nothing. |
Returns: store repair — path, exists, dry_run, repaired, indexes_created, triggers_created, mismatches, foreign_key_violations, and 1 more; every field: max commands info store repair
Example: max personal store repair --dry-run
max store reset
back the store up beside itself, then delete it and start an empty one at this build's schema; asks first, or --yes
Changes something only on this computer.
max store reset [options]| Option | Purpose |
|---|---|
--no-backup | delete the store without backing it up first. |
--dry-run | list every table it would empty, with its rows, and delete nothing. |
Returns: store reset — path, exists, reset, dry_run, files, bytes, schema, tables, and 4 more; every field: max commands info store reset
Example: max personal store reset
max store copies
the tables store repair kept as copies
max store copies delete
delete one copy store repair kept, named exactly; refuses any other table
Changes something only on this computer.
max store copies delete <name>Returns: store copy removal — path, deleted; every field: max commands info store copies delete
Example: max personal store copies delete messages_copy_1
max store tables
the tables of the local archive
max store tables list
every table of the local archive: its kind (data, search index, part of a search index, internal) and its rows, a search index's rows not counted; --full adds each table's size on disk, which reads the whole file (about ten seconds for 3 GB); changes nothing
max store tables list [query]| Argument | Requirement | Meaning |
|---|---|---|
query | optional | field:value terms that narrow the list — the fields are below. |
Returns: store table — name, kind, rows, bytes; every field: max commands info store tables list
Example: max personal store tables list, max personal store tables list kind:data, max personal store tables list --full --json
max store recover
check every page and search index of the store, say what is damaged, what it means and the commands that recover it; changes nothing
max store recover run
copy every readable row into a new file with the sqlite3 program, rebuild the search indexes, mentions and vector index, check it, and put it in place of the store; the damaged file is kept beside it. Refuses while a WireCat timer or process has the store
Changes something only on this computer.
max store recover runReturns: rebuild a damaged store from every row it can read
Example: max personal store recover run
max search runs
search recorded diagnostic metadata and events; literal words and field:value terms joined by AND; no message contents
max search runs [query] [options]| Argument | Requirement | Meaning |
|---|---|---|
query | optional | field:value terms that narrow the list — the fields are below. |
| Option | Purpose |
|---|---|
--limit <n> | matches per page, at most 100. Default: 20. |
--page <n> | result page. Default: 1. |
Returns: run hit — run_id, command, started_at, status, cli_version, events, events_truncated, profile, and 21 more; every field: max commands info search runs
Example: max personal search runs timeout status:failed --limit 10
max flood
the waits MAX asked this profile to keep, and a hold on its writes
max flood clear
forget them, lift the hold and the profile's pace, once MAX no longer limits the account; changes nothing there
Changes something only on this computer.
max flood clearReturns: clear a profile's stored rate-limit hold
Example: max personal flood clear
max models
models that run on this machine
max models keys
API keys for embedding and analysis providers
max models keys set
store a key, typed at a hidden prompt or piped on stdin — never as an argument
Changes something only on this computer.
max models keys set <provider>| Argument | Requirement | Meaning |
|---|---|---|
provider | required | openai, anthropic, or the host of a --base-url server that wants a key. |
Returns: model key stored — provider, stored; every field: max commands info models keys set
Example: max personal models keys set openai
max models keys remove
forget a stored key
Changes something only on this computer.
max models keys remove <provider>| Argument | Requirement | Meaning |
|---|---|---|
provider | required | openai, anthropic, or a server's host. |
Returns: model key removed — provider, removed; every field: max commands info models keys remove
Example: max personal models keys remove openai
max models list
speech, embedding and reranker models: downloaded or not, each kind's default
max models list [query]| Argument | Requirement | Meaning |
|---|---|---|
query | optional | field:value terms that narrow the list — the fields are below. |
Returns: model — id, kind, title, languages, size_bytes, downloaded, default, path, and 6 more; every field: max commands info models list
Next usually: max models download <model>, max models set <model>, max images models download <model>
Example: max personal models list, max personal models list kind:audio
max models download
download and verify one speech, embedding or reranker model: tens to hundreds of MB, each size in models list
Reads from an external service.
max models download <model> [options]| Argument | Requirement | Meaning |
|---|---|---|
model | required | a model id from models list. |
| Option | Purpose |
|---|---|
--accept-terms | no longer needed; kept so older scripts still run. |
Returns: model — id, kind, title, languages, size_bytes, downloaded, default, path, and 6 more; every field: max commands info models download
Next usually: max models set <model>, max images models download <model>
Example: max personal models download embeddinggemma, max personal models download mmarco
max models set
make a downloaded text model the one every embed and every search by meaning uses, in every WireCat CLI. Each model keeps its own vectors: the next syncs embed what the new one lacks, and switching back is instant
Changes something only on this computer.
max models set <model>| Argument | Requirement | Meaning |
|---|---|---|
model | required | a downloaded text model id from models list. |
Returns: model chosen — id, kind, title, languages, size_bytes, downloaded, default, path, and 9 more; every field: max commands info models set
Next usually: max models download <model>, max images models download <model>
Example: max personal models set e5-large
max models add
add an ONNX embedding model from Hugging Face, pinned and checked by sha256
Reads from an external service.
max models add <id> [options]| Argument | Requirement | Meaning |
|---|---|---|
id | required | the id to give it: a-z, 0-9, . _ -. |
| Option | Purpose |
|---|---|
--payload <json> | where the model is and how to run it, as JSON (below). |
Returns: model — id, kind, title, languages, size_bytes, downloaded, default, path, and 6 more; every field: max commands info models add
Next usually: max models download <model>, max models set <model>, max images models download <model>
Example: max personal models add e5-base --payload '{"repository":"Xenova/multilingual-e5-base","onnx":"onnx/model_quantized.onnx","dims":768,"pooling":"mean","prefix":{"query":"query: ","passage":"passage: "}}'
max serve
stay connected to MAX and stream new messages to max watch, until Ctrl-C
Changes something outside this computer: in MAX or in an external service.
max serve [options]| Option | Purpose |
|---|---|
--idle <duration> | stop after this long with nobody using it — 15m, 1h is 60m. |
--max-subscriber-buffer-bytes <bytes> | buffer per watcher before disconnecting it; 0 is unlimited. |
--max-subscriber-total-buffer-bytes <bytes> | combined watcher buffer budget; 0 is unlimited. |
Returns: stay connected to MAX and stream new messages to max watch, until Ctrl-C
Example: max personal serve
max server
max serve in the background: start, stop, restart, status, logs; install adds a systemd or launchd unit
max server start
start serve in the background — through the unit if one is installed — and answer once it connects
Changes something only on this computer.
max server start [options]| Option | Purpose |
|---|---|
--idle <duration> | stop after this long with nobody using it — 15m, 1h. |
Returns: start this profile's background server
Example: max personal server start
max server stop
stop this profile's serve — through the unit if it runs under one
Changes something only on this computer.
max server stopReturns: stop this profile's serve — through the unit if it runs under one
Example: max personal server stop
max server restart
stop it and start it again
Changes something only on this computer.
max server restart [options]| Option | Purpose |
|---|---|
--idle <duration> | stop after this long with nobody using it — 15m, 1h. |
Returns: stop it and start it again
Example: max personal server restart
max server status
whether serve runs for this profile, since when, who started it, and the unit if there is one
max server statusReturns: this profile's background-server status
Example: max personal server status
max server logs
serve's latest log lines — from the journal under systemd, else its log file
max server logs [options]| Option | Purpose |
|---|---|
-n, --limit <n> | how many lines. Default: 50. |
Returns: serve's latest log lines — from the journal under systemd, else its log file
Example: max personal server logs --limit 20
max server install
write a systemd user unit or a launchd agent for this profile and have it start at every login; starts nothing now
Changes something only on this computer.
max server installReturns: install this profile's background server to start at every login
Example: max personal server install
max server uninstall
remove this profile's unit, so it no longer starts at login; stop it first
Changes something only on this computer.
max server uninstallReturns: remove this profile's unit, so it no longer starts at login; stop it first
Example: max personal server uninstall
max watch
print new messages as they arrive, from a running max serve
max watch [options]| Option | Purpose |
|---|---|
--events | also print edits, deletions, reactions, reads and chat changes; every line then names its event. |
Returns: watch item — ref, id, chat_id, sender_id, sender_name, sender_is_me, timestamp, edited_at, and 32 more; every field: max commands info watch
Example: max personal watch --jsonl --timeout 30s
max config
the settings in force, and where each one came from
max config show
the profile, the profiles that exist, and each setting with where it came from
max config show [options]| Option | Purpose |
|---|---|
--bot | the settings a bot command on this profile gets, rather than the personal account's. |
Returns: the profile, the profiles that exist, and each setting with where it came from
Example: max personal config show
max config set
save a setting to the configuration file
Changes something only on this computer.
max config set <setting> <value> [options]| Argument | Requirement | Meaning |
|---|---|---|
setting | required | one of: limit, timeout_ms, color, record, record_input, keep_runs_for_days, keep_successful_runs_for_days, runs_size_limit_mb, permissions, search_reranker, sends_per_hour, requests_per_minute, embedding_provider, embedding_model, embedding_base_url, embedding_dims, models, sender_colors, search_catch_up, serve, read_other_bots, update_check, skill_hint, transcribe_model, search_stemmers.cyrillic, search_stemmers.latin, owner_languages, phone_countries, task_categories., task_agent_close, task_agent_close_min, task_first_pass_per_chat. |
value | required | a number, true or false, or a list like shop,news. |
| Option | Purpose |
|---|---|
--defaults | change what every profile gets, rather than this profile. |
--personal | only for personal accounts — the personal section of the file. |
--bot | only for bots — the bot section of the file. |
Returns: save a setting to the configuration file
Example: max personal config set limit 20
max config unset
remove a setting from the configuration file
Changes something only on this computer.
max config unset <setting> [options]| Argument | Requirement | Meaning |
|---|---|---|
setting | required | one of: limit, timeout_ms, color, record, record_input, keep_runs_for_days, keep_successful_runs_for_days, runs_size_limit_mb, permissions, search_reranker, sends_per_hour, requests_per_minute, embedding_provider, embedding_model, embedding_base_url, embedding_dims, models, sender_colors, search_catch_up, serve, read_other_bots, update_check, skill_hint, transcribe_model, search_stemmers.cyrillic, search_stemmers.latin, owner_languages, phone_countries, task_categories., task_agent_close, task_agent_close_min, task_first_pass_per_chat. |
| Option | Purpose |
|---|---|
--defaults | change what every profile gets, rather than this profile. |
--personal | only for personal accounts — the personal section of the file. |
--bot | only for bots — the bot section of the file. |
Returns: remove a setting from the configuration file
Example: max personal config unset limit
max config migrate
write each setting the file lacks at its default, keeping yours
Changes something only on this computer.
max config migrateReturns: write each setting the file lacks at its default, keeping yours
max config repair
fix broken JSON syntax in the settings file — comments, a missing or extra comma, unquoted keys, single quotes, missing closing brackets at the end — keeping every value, with a backup beside it; refuses anything with more than one reading and changes nothing then
Changes something only on this computer.
max config repair [options]| Option | Purpose |
|---|---|
--dry-run | say what it would fix, and change nothing. |
Returns: fix the settings file's JSON syntax, keeping every value
Example: max config repair, max config repair --dry-run
max doctor
the state this installation is in, without connecting unless --online
max doctor [options]| Option | Purpose |
|---|---|
--online | also log in once, read one chat and start the MCP server; sends nothing. |
max doctor reports
problem reports
max doctor reports show
what a problem report holds and where it goes; writes nothing
max doctor reports showReturns: what a problem report holds and where it goes; writes nothing
Example: max personal doctor reports show
max doctor reports create
write a problem report to a file, and print how to send it
Changes something only on this computer.
max doctor reports create [options]| Option | Purpose |
|---|---|
--run <id> | the run the report is about; the newest failed one if not given. |
--output <file> | where to write it; a new file in this directory if not given. |
Returns: write a problem report to a file, and print how to send it
Example: max personal doctor reports create --output ./problem-report.json
max runs
recorded runs — what this tool did, and when
max runs list
recorded runs, newest first
max runs list [query] [options]| Argument | Requirement | Meaning |
|---|---|---|
query | optional | field:value terms that narrow the list — the fields are below. |
| Option | Purpose |
|---|---|
--limit <n> | how many to show. Default: 20. |
--page <n> | which page, starting at 1. Default: 1. |
Returns: run — run_id, command, started_at, status, cli_version, profile, completed_at, requests, and 23 more; every field: max commands info runs list
Example: max personal runs list --limit 10
max runs show
one run: what it was, how it ended, and every event it logged
max runs show <run-id> [options]| Option | Purpose |
|---|---|
--problems | only failed responses, warnings and crashes. |
Returns: run details — run_id, command, started_at, status, cli_version, directory, event_count, events, and 22 more; every field: max commands info runs show
Example: max personal runs show run-101
max runs path
the directory holding one run
max runs path <run-id>Returns: run location — path; every field: max commands info runs path
Example: max personal runs path run-101
max skill
the instructions an agent is given for this tool
max skill show
print SKILL.md — max skill install puts it where Claude Code, Codex, Gemini CLI and OpenClaw look for it, and where Hermes does on request; --for prints the copy already there
max skill show [name] [options]| Argument | Requirement | Meaning |
|---|---|---|
name | optional | one of the skills shipped for a task: follow-ups, link-conversations. |
| Option | Purpose |
|---|---|
--for <agents> | print the copy installed for these agents instead of this version's. One of: claude, agents. |
Returns: print the tool's instructions for AI agents
Example: max skill show, max skill show follow-ups
max skill install
write SKILL.md to ~/.claude/skills/max-cli/ (Claude Code) and ~/.agents/skills/max-cli/ (Codex, Gemini CLI, OpenClaw); --for hermes also has Hermes read ~/.agents/skills, which changes Hermes's own settings, so all leaves it out
Changes something only on this computer.
max skill install [options]| Option | Purpose |
|---|---|
--for <agents> | which agents to install for. One of: claude, agents, hermes, all. Default: all. |
Returns: install the tool's instructions for AI agents
Example: max skill install --for agents
max skill status
for each place max skill install writes to, and for the copy Hermes reads: the path, the version installed there, and whether it is current, stale, missing or unversioned
max skill statusReturns: whether the installed instructions for AI agents match this version
Example: max skill status, max skill status --json
max commands
every command by section; --json prints its contract, one path per call
max commands info
one command contract, or all schemas, error reasons and explicit overrides
max commands info [path]| Argument | Requirement | Meaning |
|---|---|---|
path | optional | one command path; without one, export schemas, error reasons and explicit overrides. |
Returns: one command contract, or all schemas, error reasons and explicit overrides
Example: max commands info messages list
max upgrade
upgrade max with the package manager that installed it; --check only looks
Changes something only on this computer.
max upgrade [options]| Option | Purpose |
|---|---|
--check | say whether a newer version exists, and install nothing. |
Returns: upgrade max with the package manager that installed it; --check only looks
max complete
shell completion: max complete zsh prints the script to source
max complete [words]| Argument | Requirement | Meaning |
|---|---|---|
words | optional | zsh for the shell script, or command words to complete. |
Returns: shell completion: max complete zsh prints the script to source
max mcp
serve this profile to an agent over MCP and set it up — claude mcp add max -- max <profile> mcp serve
max mcp serve
serve this profile to an agent over MCP, on stdin and stdout — claude mcp add max -- max <profile> mcp serve; max mcp serve --profiles a,b or --profiles all serves those profiles from one server and each tool asks which
Changes something outside this computer: in MAX or in an external service.
max mcp serve [options]| Option | Purpose |
|---|---|
--permission <key=level> | make a permission stricter for this server only, like messages.send=deny; it never loosens the profile; repeat for more keys. |
--profiles <names|all> | serve several profiles from one server instead of one: names, comma-separated, or all for every profile. |
--http | serve over HTTP on 127.0.0.1 for ChatGPT and Claude in the browser, behind your tunnel; the profile's permissions decide. |
--port <port> | the local port for --http (default 8765). |
--public-url <url> | the tunnel's https address the browser apps use, e.g. https://.ts.net or https://.ts.net/tg. |
Returns: serve this profile's commands to an AI agent
Example: max personal mcp serve, max mcp serve --profiles work,personal, max personal mcp serve --http --public-url https://laptop.example.ts.net
max mcp revoke
forget every login mcp serve --http gave a browser app, of this profile or of the server --profiles names; each app must log in again
Changes something only on this computer.
max mcp revoke [options]| Option | Purpose |
|---|---|
--profiles <names|all> | serve several profiles from one server instead of one: names, comma-separated, or all for every profile. |
Returns: forget every login given to a browser app
Example: max personal mcp revoke, max mcp revoke --profiles all
max mcp server
start, stop and check mcp serve --http in the background; status shows the login code for a browser app
max mcp server start
start mcp serve --http apart from this shell and answer once it listens, with its login code
Changes something only on this computer.
max mcp server start [options]Returns: start the HTTP MCP server in the background
Example: max personal mcp server start --public-url https://laptop.example.ts.net
max mcp server stop
stop mcp serve --http — only one that mcp server start started
Changes something only on this computer.
max mcp server stop [options]| Option | Purpose |
|---|---|
--profiles <names|all> | the server of several profiles that mcp serve --profiles serves: names, comma-separated, or all. |
Returns: stop the background HTTP MCP server
Example: max personal mcp server stop
max mcp server status
whether mcp serve --http runs, on which port and address, the login code for a new browser app, and the apps logged in
max mcp server status [options]| Option | Purpose |
|---|---|
--profiles <names|all> | the server of several profiles that mcp serve --profiles serves: names, comma-separated, or all. |
Returns: whether the HTTP MCP server runs, its login code and the apps logged in
Example: max personal mcp server status --json
max mcp config
print the mcpServers entry for Claude Desktop, Cursor and others, with full paths; writes nothing
max mcp config [options]| Option | Purpose |
|---|---|
--permission <key=level> | make a permission stricter for this server only, like messages.send=deny; it never loosens the profile; repeat for more keys. |
--profiles <names|all> | serve several profiles from one server instead of one: names, comma-separated, or all for every profile. |
Returns: print the local MCP configuration of this profile, or of those --profiles names
Example: max personal mcp config, max mcp config --profiles all
max mcp add
add this profile's local MCP server to Codex or Claude Code
Changes something only on this computer.
max mcp add <client> [options]| Argument | Requirement | Meaning |
|---|---|---|
client | required | codex or claude-code. |
| Option | Purpose |
|---|---|
--allow-writes | acknowledge that this profile offers writing tools. |
--permission <key=level> | make a permission stricter for this server only, like messages.send=deny; it never loosens the profile; repeat for more keys. |
Returns: add this profile's local MCP server to Codex or Claude Code
Example: max personal mcp add codex --allow-writes
max mcp check
check this profile's local MCP handshake and tool list
max mcp check [options]| Option | Purpose |
|---|---|
--permission <key=level> | make a permission stricter for this server only, like messages.send=deny; it never loosens the profile; repeat for more keys. |
Returns: check this profile's local MCP handshake and tool list
Example: max personal mcp check
Exit codes
Scripts should branch on the code, not the message: wording may change, codes remain stable.
| Code | Meaning |
|---|---|
0 | Success |
2 | validation_error |
3 | configuration_error |
4 | authentication_error |
5 | permission_error |
6 | not_found |
7 | confirmation_required |
8 | rate_limited |
9 | timeout |
10 | network_error |
11 | provider_error |
12 | provider_unavailable |
13 | invalid_response |
14 | outcome_unknown |
15 | conflict |
130 | cancelled |
1 | Any other error |
0, and only 0, means the operation succeeded. 14 — outcome_unknown — means the message may have been sent: its outcome is neither confirmed nor failed. Retry only with the same --operation-id.