Skip to content

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.

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:

Terminal window
pipx install annox_cli-<version>-py3-none-any.whl
annox --version

pip install annox_cli-<version>-py3-none-any.whl into a venv works as well. A server install carries annox too.

Terminal window
annox login --server https://api.annotations.md-systems.ch
annox whoami

annox 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.

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

  1. Open Tokens in the webapp.
  2. Under New token, enter a label that names the client, for example chrome laptop, and choose Client starter: one client, once within an hour.
  3. Click Create token and copy the token. annox shows it once.

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

  1. Open Tokens in the webapp.
  2. Under New token, enter a label that names its user, for example ci, and choose Script token: scripts, CI, an MCP client without OAuth.
  3. Pick the project it may reach and its end, 7 or 30 days.
  4. Click Create token and copy the token. annox shows it once.

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:

Terminal window
export ANNOX_SERVER=https://api.annotations.md-systems.ch
export ANNOX_TOKEN=<token>
annox projects list

annox tokens list shows your tokens, annox tokens revoke <id> ends one.

A project is created on the Projects page of the webapp. Its admin adds the sites as URL patterns, then the members:

Terminal window
annox projects patterns add web https://example.com/
annox projects members add web alice --role admin
annox projects show web

A page whose URL starts with https://example.com/ belongs to the project web.

Terminal window
annox pages list web --sort -max_priority
annox annotations list web --status open
annox annotations add web https://example.com/pricing --body "The price table is cut off" --priority 3
annox annotations show <id>
annox annotations reply <id> --body "Fixed on staging" --status resolved
annox export web --format csv

annotations add prints the new annotation’s id. A reply carries the change of status or assignee, so the thread says why.

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
Area Commands
Sign-in login, logout, whoami, tokens
Projects projects, tasks, types, milestones, sync
Annotations pages, annotations, export, trash
Integrations issues, webhooks
Terminal window
annox sync project.yml
annox sync project.yml --apply

annox 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 refused
project:
slug: web # names the project to sync
name: Website
description: The public website
sites:
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 covers
visits: annotations # default; `record` keeps a page row per visit
embed_signin: true # default false; readers sign in at annox
mode: learner # default review; the UI preset
features: # UI units on top of the mode
triage.priority: on
visibility: project # default; `private` keeps a new annotation to its author
tasks:
- name: Content review # slug: content-review
description: Wording and structure
- slug: architecture-review
name: Architecture review
state: closed # default open
types:
- name: Bug # key: bug
color: "#f4b6b6" # automatic without one
members:
- username: alice
role: admin # default member
- email: bob@example.org # an address without an account gets an invitation

The 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.