Skip to content

CLI reference

Last updated 12 Nov 2026

Every alter command and flag, grouped by what it does.

The output of alter --help in a terminal

Conventions ​

The binary is called alter. alter --version prints the bare version number. Commands that talk to the running assistant reach it over a private socket in the data folder, so the background process has to be running (see Running as a service).

Interactive commands show a banner and spinners. When output is piped, or when NO_COLOR is set, the output stays plain. <angle brackets> are values you supply, [square brackets] are optional, and ... means the flag can be repeated.

Secrets are never passed as arguments. Commands that need one read it from standard input and put it in the system keychain.

Running ​

alter serve ​

Runs Alter in the foreground. Use it for debugging or inside a process manager of your own. Most people use alter service instead.

sh
alter serve

Only one process may open a given data folder.

alter chat ​

Opens a chat with the assistant in the terminal. It is the same agent as the app, Slack, Telegram and Discord, with the same sessions and approvals.

sh
alter chat

alter ui ​

Opens Alter. On a Mac that has the app, it opens the app. Otherwise it opens your browser, signed in with a one-time link that is valid for about two minutes.

FlagMeaning
--browserUse the browser even when the app is installed.
--no-openOnly print the sign-in link.
--remoteFor a server: print how to open the UI from your own computer through an SSH tunnel.
sh
alter ui --remote

Setup and updates ​

alter setup ​

Sets Alter up step by step: the assistant's name, models, Slack, and starting at login. It detects Ollama (127.0.0.1:11434) and LM Studio (127.0.0.1:1234) if they are running.

sh
alter setup

alter service ​

Keeps Alter running: starts it at login and restarts it if it fails. On macOS this is a LaunchAgent, on Linux a systemd user unit, and under Homebrew it uses brew services. See Running as a service.

Subcommand or flagMeaning
installInstall the service and start it.
uninstallStop doing that.
statusSay whether the service is running.
--printWith install: only show what would be installed.
sh
alter service install --print

alter update ​

Installs the newest version of Alter, if there is one. One updater covers the app, the CLI and the Homebrew install together. Updates are signed, fetched over HTTPS, forward-only, and swapped in with a rollback.

FlagMeaning
--checkOnly say whether a newer version exists.
sh
alter update --check

alter licence ​

Shows the licence state. Licensing is switched off in this version, so nothing is limited and the command reports that it is not switched on yet. alter license also works.

SubcommandMeaning
checkAsk the licence service again now.
activate [key]Activate a key on this computer. The key is read from standard input if you leave it out.
sh
alter licence

Talking ​

alter soul ​

Shows how your assistant talks to you (the dials stored in SOUL.md), or sets one.

FormMeaning
alter soulShow the dials.
alter soul set <dial> <value>Turn one dial.
DialValues
emojinone, few, some, lots
humour0 to 100%
directness0 to 100%
lengthshort, balanced, detailed
sh
alter soul set length short

alter language ​

Shows or sets the language Alter writes in first: en, fr, de, es, pt, or auto. Alter always answers in the language you write in.

FlagMeaning
--appSet the desktop app's language instead.
sh
alter language pt

alter allow ​

Controls the shell commands Alter may run on this computer without asking. A rule is an exact command, or a prefix ending in *.

FormMeaning
alter allow [list]Show the rules.
alter allow add <command>Allow a command for good.
alter allow remove <command>Ask first again.
sh
alter allow add 'git status*'

Notes ​

alter import ​

Brings notes in. It reads a folder of Markdown (an Obsidian vault), a Notion export, Bear text bundles or an Evernote .enex file. The import is one revertible change on the timeline, nothing is overwritten, and clashes go under imported/.

FlagMeaning
--apple-notesBring in Apple Notes from this Mac instead of a path.
sh
alter import ~/Documents/obsidian-vault

alter learn ​

Reads the notes in your vault (or one folder) and drafts what Alter learned into USER.md, MEMORY.md and SOUL.md for your approval, asking about anything unclear. Imports of 10 notes or more do this by themselves.

sh
alter learn people

alter vault ​

Shows where your notes are, moves them, or points Alter at a folder that already holds notes.

FormMeaning
alter vaultShow where the vault is.
alter vault move <folder>Move the vault to a new or empty folder. Every file is copied and checked, and the old copy is kept until you remove it.
alter vault use <folder>Use a folder that already holds notes (an Obsidian vault, a clone of a repository) and bring your notes into it without replacing anything there.
Flag (for use)Meaning
--leaveLeave your current notes where they are instead of bringing them in.
--yesDo not ask first.
sh
alter vault use ~/notes --yes

alter files, alter read, alter sample ​

CommandMeaning
alter filesList the vault's notes.
alter read <path>Print a note.
alter sampleFill an empty vault with a synthetic sample workspace.
sh
alter read memory/stances.md

alter tidy ​

Finds notes that were created and never written in, and proposes archiving them. It asks before doing anything. Alter also does this by itself each week for empty notes older than a week.

sh
alter tidy

alter status ​

Shows where Alter keeps its data.

sh
alter status

alter events ​

Reads the record of changes, newest first. See Architecture.

FlagMeaning
--since <date>ISO date or time (inclusive).
--until <date>ISO date or time (exclusive).
--kind <kind>heartbeat, owner, decision, document or correlation. Repeatable.
--text <words>Words that must all appear.
--limit <n>At most n events.
--jsonPrint JSON.
sh
alter events --kind decision --since 2026-11-01 --limit 20

Models ​

Connections, roles and costs are explained in the user guide: Models.

alter connect ​

Adds a model connection. The secret is read from standard input into the system keychain and never touches the settings file.

FlagMeaning
--provider <p>anthropic or openai-compatible.
--auth <a>api-key, bearer or none.
--base-url <url>The address of an OpenAI-compatible server.
sh
printf '%s' "$KEY" | alter connect work --provider anthropic --auth api-key

alter role ​

Chooses the model for a kind of work. The roles are planner, quarantine (the private reader), tagger and reflection.

FlagMeaning
--effort <level>Thinking effort: low, medium, high, xhigh, max (Anthropic models). Use default to clear it.
--budget <usd>A daily spending cap in US dollars, on Alter's own estimate. Use off to clear it. Reaching it stops nothing: Alter tells you once that day.
sh
alter role planner work my-model --effort high --budget 5
alter role planner --budget off

With only flags and no connection, alter role changes the effort or the cap of the model a role already uses.

alter models ​

Shows which model does each kind of work, and any that are standing in right now.

sh
alter models

alter usage ​

Shows what the models cost, estimated from a dated price list, per role, per model and per routine. Local models cost nothing.

FlagMeaning
--days <n>The period, from 1 to 366 days.
sh
alter usage --days 30

alter fallback ​

When a model's usage limit is reached, Alter can switch to another connected model until the limit lifts, and tell you. It is on unless you turn it off.

sh
alter fallback off

Channels ​

alter channel ​

Switches a channel on or off. The channels are cli, slack, telegram, discord and app.

FormMeaning
alter channel <name> on|offSwitch a channel.
alter channel slack search [off]Let Alter search Slack with your own user token (xoxp-), or stop doing so.
alter channel telegram onFirst-time Telegram setup: your own bot from @BotFather, its token into the keychain, and pairing with your account.
alter channel discord onFirst-time Discord setup: your own bot from the Developer Portal, its token into the keychain, and pairing with your account.
sh
alter channel app off

Sources ​

Alter is an MCP client. See MCP servers and the user guide's Sources.

alter source import ​

sh
alter source import [--from claude-desktop|claude-code] [--all] [--yes]

Brings the MCP servers you already set up in Claude Desktop or Claude Code into Alter. You pick which ones. Their keys and tokens go to the keychain. A server with a password inside its command or address is left out, with the reason.

FlagMeaning
--from claude-desktop|claude-codeLook in one app only.
--allPick every server that can come as it is.
--yesSkip the final question, for scripts.

alter source add ​

Connects an MCP server as a source. There are three forms.

sh
alter source add <id> --url <https url> [--label <name>] [--token]
alter source add <id> [--label <name>] [--token-env <VAR>] -- <command...>
alter source add <id> [--label <name>] --secret-env <VAR> [--secret-env <VAR>...] -- <command...>
FlagMeaning
--url <https url>A remote MCP server. Must be https.
--label <name>A display name.
--tokenRead a bearer token from standard input into the keychain.
--token-env <VAR>For a local command: pass a token to it in this environment variable.
--secret-env <VAR>For a local server that reads several secrets from its environment. Repeatable. One secret per line is read from standard input, in order.
-- <command...>The local command that starts the server.
sh
printf '%s' "$TOKEN" | alter source add tracker --url https://mcp.example.com/ --token

alter source list, remove, drive ​

CommandMeaning
alter source listSources, whether they are connected, and their tools.
alter source remove <id>Disconnect a source and forget its token.
alter source drive [id]Let Alter read your Google Drive (it never changes it). Opens Google's page to approve.

alter source allow, ask, off ​

Sets the permission of one tool, or of all of them.

sh
alter source allow tracker search_issues
alter source ask tracker all
alter source off tracker delete_issue

Only a reading tool can be set to allow. Acting tools are ask or off.

Routines and watches ​

Routines are explained in the user guide: Routines. There is no routine add: create routines in the app or by asking in chat.

alter routine ​

FormMeaning
alter routine listYour routines, when they run, and how the last run went.
alter routine run <id>Run a routine now and show what it wrote.
alter routine suggestAsk Alter to look at how you work and propose a routine.
alter routine pin <id> <source__tool> '<json>' [--label <text>]Pin an exact source call that the routine reads itself before every run.
alter routine pin <id> web_fetch '{"url":"https://..."}' [--label <text>]Pin one web page.
alter routine unpin <id> <n>Remove pinned call number n.
alter routine model <id> <connection> <model> [--effort <level>] [--budget <usd>]Run the routine on its own model.
alter routine model <id> [--effort <level|default>] [--budget <usd|off>]Change the effort or cap of its own model.
alter routine model <id> --clearBack to the planner's model.
alter routine schedule <id> [--at <HH:MM,...>] [--days <mon,tue,...|all>] [--month-days <1,15,last|off>]Change when it runs.

The model runs only when the pinned results changed (times and dates do not count), or every two hours. Days of the month go from 1 to 31 plus last, in your time zone.

sh
alter routine schedule morning-brief --at 07:30 --days mon,tue,wed,thu,fri

alter watch ​

A watch makes Alter investigate when a message arrives in a Slack channel. Invite Alter to the channel in Slack first (/invite).

FormMeaning
alter watch [list]The channels Alter watches.
alter watch add <id> --channel <name>... --say <instructions> [flags]Add or change a watch.
alter watch remove <id>Stop watching.
Flag (for add)Meaning
--channel <name>A channel to watch. Repeatable. A name ending in * covers every channel that begins with it (inc-*).
--say <instructions>What Alter should do when a message arrives.
--report thread|dmWhere findings go: the thread or a direct message to you.
--realm <id>Run the investigation inside a realm.
--autopostPost findings to the thread directly. Without it, you approve the post first.
sh
alter watch add incidents --channel 'inc-*' --say "Find the likely cause and recent deploys" --report thread

Drafts and approvals ​

Alter never sends anything. See Approvals.

alter drafts ​

Alias: alter draft.

FormMeaning
alter draftsList the drafts Alter wrote for you.
alter drafts show <id>Print a draft, ready to copy.
alter drafts use <id>Put an older draft where it belongs (a draft in Gmail or Outlook). Nothing is sent.
alter drafts done <id>Mark a draft as used.
alter drafts dismiss <id>Set a draft aside.
alter drafts allow google|microsoftLet Alter create drafts in Gmail or Outlook. Opens the sign-in page.
alter drafts voiceShow how you write and review, yours and in each realm.
alter drafts voice set [--realm <id>] <words>Say how you write, in your own words.
sh
alter drafts voice set --realm work "Short, warm, no exclamation marks"

alter approvals, approve, deny ​

An approval is bound to the exact action and its arguments, can be used once, and expires after 24 hours.

CommandMeaning
alter approvalsList actions waiting for your approval.
alter approve <id> [--always]Approve one. With --always, a shell command saves a rule so it is not asked again.
alter deny <id>Refuse one.
sh
alter approvals
alter approve 3f2a9c

Realms ​

Realms are separate parts of your life. See Realms.

alter realm ​

FormMeaning
alter realm listYour realms.
alter realm add <id> --label <name> [flags]Create or change a realm. Its questions are answered only from its notes and sources, by its model.
alter realm remove <id>Remove a realm. Its notes and sources become yours again.
Flag (for add)Meaning
--label <name>The realm's display name.
--folder <path>A folder that belongs to it. Repeatable.
--tag <tag>A tag that belongs to it. Repeatable.
--source <id>A source it may use. Repeatable.
--keyword <word>A word that routes a message to it. Repeatable.
--about <words>A description in plain words.
--model <connection>:<model>The model that answers for it.
sh
alter realm add work --label Work --folder Work --tag work --keyword standup

Plugins ​

See Plugins.

alter plugin ​

Alias: alter plugins.

FormMeaning
alter plugin listPlugins, on or off.
alter plugin enable <id>Turn one on.
alter plugin disable <id>Turn one off.
alter plugin show <id>What the plugin shows. For git: branch, remote, changes, commits.
alter plugin set <id> <setting> <value>Change a setting.
alter plugin run <id> <command>Run a command.
sh
alter plugin set git mode manual
alter plugin run git sync

Reporting from other tools ​

See Reporting from Claude Code.

alter tell ​

Tells Alter about work done elsewhere. It keeps what matters in your notes. A report can be up to 20,000 characters.

FlagMeaning
--from <name>Who is reporting. Default claude-code.
--about <project>What the work was about: a project or a repository.

Give - as the text to read it from standard input.

sh
git log --oneline -10 | alter tell --from ci --about my-app -

alter claude ​

CommandMeaning
alter claude installGive Claude Code the /alter-report skill.
alter claude uninstallTake it away again.

Diagnostics ​

alter settings ​

Shows the settings.

sh
alter settings

alter bug ​

Opens the bug report form on nubisco.io, filled in for this version and operating system.

FlagMeaning
--crashReport the latest crash: shows it, copies it, and opens the form.
--printOnly print the address (and the crash). Open and copy nothing.
sh
alter bug --crash --print

Environment ​

VariableEffect
ALTER_HOMEThe data folder.
ALTER_UI_PORTThe port of the local UI. Default 7420.
NO_COLORPlain output.

The full list, including the installer's variables, is on Data and folders.

Proprietary software. Alter runs on your computer, and your notes stay there.