МессенджерыMAXКоманды

Команды CLI MAX для настройки

Вход, профили, настройки, фоновый сервер, локальное хранилище, диагностика, подключение агента и обновления.

Здесь собраны команды настройки и обслуживания. Вы найдёте параметры входа, профилей, настроек, фонового сервера, локального хранилища, диагностики и подключения агента.

Вход, профили, настройки, фоновый сервер, локальное хранилище, диагностика, подключение агента и обновления.

Общие опции

Действуют на любую команду.

ОпцияЧто делает
-V, --versionoutput the version number.
-v, --verbosemore detail in what is shown: -v ids, -vv everything we know. По умолчанию: 0.
--jsonmachine-readable output: one JSON value on stdout; --json=id,text keeps only those fields.
--jsonlmachine-readable output: one JSON object per line, for streaming and jq.
--quietdiagnostics off.
--traceone line per request on stderr: ids and timings, never message content.
--debugon a failure, its whole record — cause and stack — in place of the short line.
--timeout <duration>give up on the whole command after this — 30s, 2m, 500ms.
--offlineanswer from what was recorded and never connect; fails if nothing was.
--no-inputnever prompt or open interactive login; piped input remains available.
--max-input-bytes <bytes>maximum buffered input bytes (default: 16777216).
--max-output-bytes <bytes>maximum machine output bytes (default: 4194304; 0 disables).
--brieffound messages as reference, title, time, sender and excerpt only.
--fullfound messages with their whole text and every provider field.
--compactone line per item for an agent: reference first, text last, paging and next steps as # lines.
--dry-runpreview parsed arguments and permissions before running the action.
--yesgo ahead without the question an ask level puts before a write.
--recordkeep this run under max runs, with the command as typed and secrets hidden; record_input false leaves the typed words out.
--no-recorddo not keep this run, even if it fails.
--servestart max serve in the background if it is not running (the default).
--no-servedo not start it; log in on this command's own connection unless one is running.

Команды

max session

the stored MAX session for this profile

max session start

log this profile in to MAX

Меняет что-то вне этого компьютера: в MAX или во внешнем сервисе.

max session start [method] [options]
АргументОбязательностьЧто это
methodнеобязательныйtoken (pasted or piped), qr, qr-chrome or sms. Одно из: token, qr, qr-chrome, sms. По умолчанию: token.
ОпцияЧто делает
--answer-stdinwith --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. Одно из: keyring, file. По умолчанию: 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

Меняет что-то вне этого компьютера: в MAX или во внешнем сервисе.

max session end

Returns: 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

Меняет что-то вне этого компьютера: в MAX или во внешнем сервисе.

max setup [options]
ОпцияЧто делает
--agent <agent>install the skill for this agent; asks at a terminal, otherwise none. Одно из: none, codex, cursor, claude, gemini, all.
--method <method>how to log in when there is no session. Одно из: token, qr, qr-chrome, sms. По умолчанию: 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]
АргументОбязательностьЧто это
queryнеобязательный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]
ОпцияЧто делает
--hide-phoneleave 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

Меняет что-то вне этого компьютера: в MAX или во внешнем сервисе.

max account update [options]
ОпцияЧто делает
--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-phoneleave 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]
АргументОбязательностьЧто это
queryнеобязательный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

Меняет что-то вне этого компьютера: в MAX или во внешнем сервисе.

max account sessions end [options]
ОпцияЧто делает
--othersevery 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

Меняет что-то вне этого компьютера: в MAX или во внешнем сервисе.

max account remove [options]
ОпцияЧто делает
--keep-dataleave what the store holds of this account, still searchable.
--delete-datadelete what the store and the tool's own files hold of this account.
--dry-runlist 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 show

Returns: 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

Меняет что-то вне этого компьютера: в MAX или во внешнем сервисе.

max account privacy set [options]
ОпцияЧто делает
--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]
АргументОбязательностьЧто это
chatнеобязательный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 status

Returns: 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>
АргументОбязательностьЧто это
chatобязательный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

Меняет что-то только на этом компьютере.

max store gaps repair <chat> [options]
АргументОбязательностьЧто это
chatобязательныйa chat: its id, or part of its title.
ОпцияЧто делает
--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. По умолчанию: 30s.
--page-size <n>messages per provider page.
--pause <duration>provider pause between pages. По умолчанию: 5s.
--fingerprint <hash>refuse if this previously inspected coverage plan changed.
--catch-upprepare local search after repair; overrides search_catch_up.
--no-catch-upskip 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.
--backgroundrepair 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]
АргументОбязательностьЧто это
queryнеобязательныйfield:value terms that narrow the list — the fields are below.
ОпцияЧто делает
--limit <n>how many to show.
--page <n>which page, starting at 1.
--allevery 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]
АргументОбязательностьЧто это
jobнеобязательныйthe job id messages sync --background printed.

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

Меняет что-то только на этом компьютере.

max store jobs cancel <job>
АргументОбязательностьЧто это
jobобязательный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

Меняет что-то только на этом компьютере.

max store jobs retry [job] [options]
АргументОбязательностьЧто это
jobнеобязательныйthe job id.
ОпцияЧто делает
--failedevery 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

Меняет что-то только на этом компьютере.

max store jobs clear

Returns: 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

Меняет что-то только на этом компьютере.

max store export [chat] [options]
АргументОбязательностьЧто это
chatнеобязательныйa chat: its id, or part of its title; several with --output-dir.
ОпцияЧто делает
--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.
--allwith --output-dir: every stored chat of this account.
--encryptcompress 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

Меняет что-то только на этом компьютере.

max store clear [options]
ОпцияЧто делает
--leftthe chats this account has left — the only thing this clears.
--allow-dangerousyes, delete — it cannot be undone, and a chat you left cannot be fetched again.
--dry-runlist 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

Меняет что-то только на этом компьютере.

max store import <file>
АргументОбязательностьЧто это
fileобязательный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 info

Returns: 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 check

Returns: 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

Меняет что-то только на этом компьютере.

max store migrate

Returns: 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

Меняет что-то только на этом компьютере.

max store rebuild

Returns: 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

Меняет что-то только на этом компьютере.

max store backup <file> [options]
АргументОбязательностьЧто это
fileобязательныйthe new file.
ОпцияЧто делает
--encryptcompress 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

Меняет что-то только на этом компьютере.

max store restore <file>
АргументОбязательностьЧто это
fileобязательный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

Меняет что-то только на этом компьютере.

max store decrypt <file> [options]
АргументОбязательностьЧто это
fileобязательныйa file store backup --encrypt or store export --encrypt wrote.
ОпцияЧто делает
--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

Меняет что-то только на этом компьютере.

max store repair [options]
ОпцияЧто делает
--dry-runsay 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

Меняет что-то только на этом компьютере.

max store reset [options]
ОпцияЧто делает
--no-backupdelete the store without backing it up first.
--dry-runlist 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

Меняет что-то только на этом компьютере.

max store copies delete <name>
АргументОбязательностьЧто это
nameобязательныйthe copy's name, as store repair printed it.

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]
АргументОбязательностьЧто это
queryнеобязательный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

Меняет что-то только на этом компьютере.

max store recover run

Returns: 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]
АргументОбязательностьЧто это
queryнеобязательныйfield:value terms that narrow the list — the fields are below.
ОпцияЧто делает
--limit <n>matches per page, at most 100. По умолчанию: 20.
--page <n>result page. По умолчанию: 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

Меняет что-то только на этом компьютере.

max flood clear

Returns: 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

Меняет что-то только на этом компьютере.

max models keys set <provider>
АргументОбязательностьЧто это
providerобязательный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

Меняет что-то только на этом компьютере.

max models keys remove <provider>
АргументОбязательностьЧто это
providerобязательный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]
АргументОбязательностьЧто это
queryнеобязательный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

Читает из внешнего сервиса.

max models download <model> [options]
АргументОбязательностьЧто это
modelобязательныйa model id from models list.
ОпцияЧто делает
--accept-termsno 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

Меняет что-то только на этом компьютере.

max models set <model>
АргументОбязательностьЧто это
modelобязательный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

Читает из внешнего сервиса.

max models add <id> [options]
АргументОбязательностьЧто это
idобязательныйthe id to give it: a-z, 0-9, . _ -.
ОпцияЧто делает
--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

Меняет что-то вне этого компьютера: в MAX или во внешнем сервисе.

max serve [options]
ОпцияЧто делает
--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

Меняет что-то только на этом компьютере.

max server start [options]
ОпцияЧто делает
--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

Меняет что-то только на этом компьютере.

max server stop

Returns: 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

Меняет что-то только на этом компьютере.

max server restart [options]
ОпцияЧто делает
--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 status

Returns: 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]
ОпцияЧто делает
-n, --limit <n>how many lines. По умолчанию: 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

Меняет что-то только на этом компьютере.

max server install

Returns: 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

Меняет что-то только на этом компьютере.

max server uninstall

Returns: 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]
ОпцияЧто делает
--eventsalso 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]
ОпцияЧто делает
--botthe 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

Меняет что-то только на этом компьютере.

max config set <setting> <value> [options]
АргументОбязательностьЧто это
settingобязательный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обязательныйa number, true or false, or a list like shop,news.
ОпцияЧто делает
--defaultschange what every profile gets, rather than this profile.
--personalonly for personal accounts — the personal section of the file.
--botonly 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

Меняет что-то только на этом компьютере.

max config unset <setting> [options]
АргументОбязательностьЧто это
settingобязательный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.
ОпцияЧто делает
--defaultschange what every profile gets, rather than this profile.
--personalonly for personal accounts — the personal section of the file.
--botonly 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

Меняет что-то только на этом компьютере.

max config migrate

Returns: write each setting the file lacks at its default, keeping yours

Example: max config migrate

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

Меняет что-то только на этом компьютере.

max config repair [options]
ОпцияЧто делает
--dry-runsay 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]
ОпцияЧто делает
--onlinealso 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 show

Returns: 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

Меняет что-то только на этом компьютере.

max doctor reports create [options]
ОпцияЧто делает
--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]
АргументОбязательностьЧто это
queryнеобязательныйfield:value terms that narrow the list — the fields are below.
ОпцияЧто делает
--limit <n>how many to show. По умолчанию: 20.
--page <n>which page, starting at 1. По умолчанию: 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]
АргументОбязательностьЧто это
run-idобязательныйan id from max runs list.
ОпцияЧто делает
--problemsonly 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>
АргументОбязательностьЧто это
run-idобязательныйan id from max runs list.

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]
АргументОбязательностьЧто это
nameнеобязательныйone of the skills shipped for a task: follow-ups, link-conversations.
ОпцияЧто делает
--for <agents>print the copy installed for these agents instead of this version's. Одно из: 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

Меняет что-то только на этом компьютере.

max skill install [options]
ОпцияЧто делает
--for <agents>which agents to install for. Одно из: claude, agents, hermes, all. По умолчанию: 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 status

Returns: 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]
АргументОбязательностьЧто это
pathнеобязательный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

Меняет что-то только на этом компьютере.

max upgrade [options]
ОпцияЧто делает
--checksay whether a newer version exists, and install nothing.

Returns: upgrade max with the package manager that installed it; --check only looks

Example: max upgrade --check

max complete

shell completion: max complete zsh prints the script to source

max complete [words]
АргументОбязательностьЧто это
wordsнеобязательныйzsh for the shell script, or command words to complete.

Returns: shell completion: max complete zsh prints the script to source

Example: max complete zsh

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

Меняет что-то вне этого компьютера: в MAX или во внешнем сервисе.

max mcp serve [options]
ОпцияЧто делает
--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.
--httpserve 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

Меняет что-то только на этом компьютере.

max mcp revoke [options]
ОпцияЧто делает
--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

Меняет что-то только на этом компьютере.

max mcp server start [options]
ОпцияЧто делает
--port <port>the local port (default 8765).
--public-url <url>the tunnel's https address the browser apps use, e.g. https://.ts.net or https://.ts.net/tg.
--permission <key=level>make a permission stricter for this server only; repeat for more keys.
--profiles <names|all>the server of several profiles that mcp serve --profiles serves: names, comma-separated, or all.

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

Меняет что-то только на этом компьютере.

max mcp server stop [options]
ОпцияЧто делает
--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]
ОпцияЧто делает
--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]
ОпцияЧто делает
--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

Меняет что-то только на этом компьютере.

max mcp add <client> [options]
АргументОбязательностьЧто это
clientобязательныйcodex or claude-code.
ОпцияЧто делает
--allow-writesacknowledge 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]
ОпцияЧто делает
--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

Коды возврата

Скрипт ветвится по коду, а не по тексту: текст меняется, код — нет.

КодКогда
0получилось
2validation_error
3configuration_error
4authentication_error
5permission_error
6not_found
7confirmation_required
8rate_limited
9timeout
10network_error
11provider_error
12provider_unavailable
13invalid_response
14outcome_unknown
15conflict
130cancelled
1всё остальное

0 и только 0 означает, что операция выполнена. 14 — outcome_unknown — означает, что сообщение могло уйти: не отправлено и не провалено, и повторять его можно только с тем же --operation-id.