The CLI
annox is the client for the shell: it lists and writes annotations,
sets a project up and exports it. It calls the annox server as you, so
your role in each project decides what a command may do. The
webapp and MCP reach the same data.
Install it
Section titled “Install it”annox is a Python package of its own, annox-cli (Python 3.11 or
newer, on Linux, macOS and Windows). It brings httpx and PyYAML and
nothing of the server. Install the client wheel of an annox release with
pipx, which gives the command a venv of its own:
pipx install annox_cli-<version>-py3-none-any.whlannox --versionpip install annox_cli-<version>-py3-none-any.whl into a venv works as
well. A server install carries annox too.
Sign in
Section titled “Sign in”annox login --server https://api.annotations.md-systems.channox whoamiannox login opens the sign-in page in your browser, asks you to
confirm Allow access? on every sign-in, and stores the token in
~/.config/annox/credentials.json. Later commands use the
server you signed in at last; --server before the command names
another one. annox logout revokes the token and forgets it.
Create tokens for your clients
Section titled “Create tokens for your clients”Once signed in, the CLI creates your other tokens. Each is printed once and never reaches wider than your sign-in. A client starter signs in one client, the extension or an MCP client:
Create a client starter
- Open Tokens in the webapp.
- Under New token, enter a label that names the client, for example chrome laptop, and choose Client starter: one client, once within an hour.
- Click Create token and copy the token. annox shows it once.
annox tokens add starter --label "chrome laptop"The command prints the token alone, once. annox login signs the CLI
in first.
Paste the starter into its client within the hour. Its first use starts that client’s own session, so one starter signs in one client.
A script token signs in a script, a CI job or an MCP client without OAuth:
Create a script token
- Open Tokens in the webapp.
- Under New token, enter a label that names its user, for example ci, and choose Script token: scripts, CI, an MCP client without OAuth.
- Pick the project it may reach and its end, 7 or 30 days.
- Click Create token and copy the token. annox shows it once.
annox tokens add script --label ci --project <project> --expires 2027-06-30The command prints the token alone, once. Without --project the
token reaches all your projects, without --expires it runs until it
is revoked. annox login signs the CLI in first.
A script token never reaches wider than your own sign-in and never the
platform’s administration. annox tokens revoke <id> or Revoke
under Tokens ends it.
The script or the CI job sets it in its environment:
export ANNOX_SERVER=https://api.annotations.md-systems.chexport ANNOX_TOKEN=<token>annox projects listannox tokens list shows your tokens, annox tokens revoke <id> ends
one.
Set a project up
Section titled “Set a project up”A project is created on the Projects page of the webapp. Its admin adds the sites as URL patterns, then the members:
annox projects patterns add web https://example.com/annox projects members add web alice --role adminannox projects show webA page whose URL starts with https://example.com/ belongs to the
project web.
Work the annotations
Section titled “Work the annotations”annox pages list web --sort -max_priorityannox annotations list web --status openannox annotations add web https://example.com/pricing --body "The price table is cut off" --priority 3annox annotations show <id>annox annotations reply <id> --body "Fixed on staging" --status resolvedannox export web --format csvannotations add prints the new annotation’s id. A reply carries the
change of status or assignee, so the thread says why.
The conventions every command follows
Section titled “The conventions every command follows”| Convention | Example |
|---|---|
add, list, show, edit, delete name the action |
annox annotations add, annox tasks list |
| the project is the first argument | annox pages list web |
a command that can preview does so on a bare run; --apply writes |
annox sync project.yml --apply |
every read command prints JSON with --json |
annox annotations list web --json |
--help documents every command and option |
annox annotations add --help |
The areas
Section titled “The areas”| Area | Commands |
|---|---|
| Sign-in | login, logout, whoami, tokens |
| Projects | projects, tasks, types, milestones, sync |
| Annotations | pages, annotations, export, trash |
| Integrations | issues, webhooks |
Keep a project’s setup in a file
Section titled “Keep a project’s setup in a file”annox sync project.ymlannox sync project.yml --applyannox sync applies a project file’s sites, tasks, types and members
to its project. The bare run lists the changes; --apply writes them.
You need to be an admin of the project.
A project file is YAML. project with its slug and name is
required; every other key is optional:
organization: acme # the project's organization; another one is refusedproject: slug: web # names the project to sync name: Website description: The public websitesites: canonical: https://www.example.org # the published host aliases: [http://localhost:4321] # hosts that show the same pages prefixes: [https://www.example.com/de/] # further URL prefixes the project coversvisits: annotations # default; `record` keeps a page row per visitembed_signin: true # default false; readers sign in at annoxmode: learner # default review; the UI presetfeatures: # UI units on top of the mode triage.priority: onvisibility: project # default; `private` keeps a new annotation to its authortasks: - name: Content review # slug: content-review description: Wording and structure - slug: architecture-review name: Architecture review state: closed # default opentypes: - name: Bug # key: bug color: "#f4b6b6" # automatic without onemembers: - username: alice role: admin # default member - email: bob@example.org # an address without an account gets an invitationThe sync adds and updates; it deletes nothing:
- A value lands when the file changes it. A value you set in annox
stays until the file changes the same key; the report lists it as
kept. - Sites add URL prefixes. A prefix an admin removed stays removed.
- Tasks the file closes are closed; tasks it leaves out stay.
- Types the file names are reset to the file on every sync. Types added in annox stay.
- Members the file names get the file’s role. A username annox does not know stops the sync with its name. Members the file leaves out stay.
A refusal anywhere writes nothing.