Skip to main content

maia

The M.AI.A board from a terminal, for people and for the coding agents they run there.

It talks to the same public HTTP API the web app uses, so it inherits the server's rules rather than restating them: any active project member can move, edit, assign or reassign any ticket, and observers are read-only.

Install

uv tool install maiactl      # from PyPI (the package is maiactl; the command is maia)
maia login                   # opens your browser, then asks which workspace/project
maia                         # where am I, what next
maia status --full           # everything: version vs PyPI, accounts, workspaces, projects
maia doctor                  # if anything feels off
maia upgrade                 # newest release, via whatever installed you (uv / pipx / pip)
uv tool upgrade maiactl      # the standard path works too

Bare maia is a status card (offline): who you are, which workspace and project, and what to try. maia doctor checks version, server, token, workspace and project, and says how to fix each. The server check probes the API itself (an unauthenticated /api/v1/auth/me must answer JSON), not /health, which the web host answers on the backend's behalf.

Works on macOS (Apple Silicon and Intel), Linux and Windows — it's a pure-Python package. On Windows the config lives in %APPDATA%\maia\config.json, colour is enabled in the legacy console automatically, and output never fails on a character your code page can't show.

login runs the same brokered PKCE flow the desktop app uses: it opens Google in your real browser (always showing the account chooser, so a profile's current session is never reused silently) and polls until the backend releases a token, then finishes setting you up: if you're in several workspaces it asks which, and if that workspace has several projects it asks which of those. One of each is picked for you without a question. In a script or an agent shell (no TTY) there's no prompt; pass --tenant and then maia use <code>. The token is written to ~/.config/maia/config.json with mode 0600.

Several accounts at once

Like gh, you can be signed into more than one account and switch between them. An account is (email, server), so the same person on prod and on a local backend are two accounts — which is the point.

maia login                       # adds an account; never evicts an existing one
maia auth list                   # all of them, active one marked with *
maia auth switch priya           # by email, or any unique fragment
maia auth logout --account priya # sign out of just that one
maia auth logout --all

Each account remembers its own workspace and project, so switching restores where you were. For a single command, -a (--as) acts as another account without switching, and nothing that command does is saved:

maia -a priya@cydratech.com ls --mine
maia ls --mine -a priya          # flags may come before or after the command

-a can't be combined with login, logout or auth switch; those manage saved accounts, so name the account directly (logout --account priya).

Workspaces

maia workspaces              # the ones this account belongs to
maia workspace "Cydra Tech"  # switch

Switching workspace clears the selected project, because a project belongs to exactly one workspace — keeping it would point at something the account can no longer see. Pick a new one with maia projects and maia use.

It is a normal app session token, not a scoped API key, so it carries your full access and expires on the server's schedule. Treat the file as a credential. maia logout removes it.

For CI or a throwaway shell, skip the file entirely:

export MAIA_TOKEN=...        MAIA_TENANT_ID=...
export MAIA_PROJECT=MVP      MAIA_API_URL=https://maia.cydratech.com

Anything set this way applies to the current run only and is never written to disk: a CI job can't persist its credentials, and MAIA_PROJECT=X maia use Y won't change your saved project. Commands that would normally save say (not saved: …) on stderr. MAIA_ACCOUNT=priya selects a saved account for one run; a name that matches nothing is an error, not a silent fallback. With MAIA_TOKEN set, logout and auth switch refuse, since there is no saved session in play.

Reading

maia ls                       # active tickets, doing first (alias: maia tickets)
maia status                   # same as bare `maia`
maia ls --mine --status doing
maia ls --stage "In QA"
maia ls -s payment            # title/description search
maia show MVP-42              # detail + comments
maia show MVP-42 --history
maia history MVP-42           # the ticket's story (alias: maia log)
maia board                    # stages and card counts
maia members                  # who's on it, and their roles
maia stories
maia files MVP-42 --download ./tmp
maia media                    # the project's shared media (chat + tickets), by handle
maia media -s "invoice"       # search Maia's descriptions and filenames
maia media --download image-42 --to ./tmp

Every photo, video, PDF, Word document or spreadsheet shared anywhere in the project has a handle like image-42, the same one you see in chat. maia media lists them with Maia's one-line description of each.

Files: folders and docs

The app's Files pane — folders, docs and uploaded files — from a terminal. You see exactly what you can open in the app: the server filters by Files access, so a private folder someone didn't share with you isn't there.

maia find "launch plan"             # search folders, docs (title + text) and files
maia tree                           # every folder, with what it holds
maia tree "Brand/Logos"             # one folder: subfolders, docs, files (with handles)
maia tree "Brand/Logos" --download ./brand   # its docs as .md, its files as they are
maia docs                           # the project's docs, newest edit first
maia docs -s "pricing"              # full-text search over docs
maia doc "Launch plan"              # print a doc's markdown (pipe it, or --out plan.md)

Search is full text: every word must match and the last one may be partial, so maia find launc finds "launch". Hits show which folder they sit in and the text around the match. Folders are addressed by path (Brand/Logos), by name, or by a unique part of the path; docs by title, a unique part of it, or the id from maia docs --json. A file in Files has the same handle as everywhere else, so maia media --download document-3 fetches it and --media document-3 puts it on a ticket.

These are read-only. Making folders and docs, and sharing them, happen in the app.

Tickets are addressed by key (MVP-42), bare number (42), or a title fragment. A fragment matching more than one ticket is an error, never a guess.

maia history shows who has had the ticket (the chain of custody, with how and when it changed hands) and a timeline of everything that happened — created, moved between stages, renamed, handed off, blocked/unblocked, filed under a story, commented — each with who did it and from which client. --json gives the same as {custody, timeline}.

Writing

maia new "Payment webhook retries" -d "Stripe retries land as duplicates." \
  --assign priya --stage "In Progress" --story "Billing"

git log -1 --format=%B | maia new "Ship the retry fix" -d -

maia mv MVP-42 doing          # a status…
maia mv MVP-42 "In QA"        # …or a stage by name
maia assign MVP-42 priya
maia story MVP-42 "Billing"   # file under an existing story
maia new-story "Billing" -d "Everything that moves money."   # any member except an observer
maia comment MVP-42 "Deployed to staging." --mention priya
maia comment MVP-42 - < notes.md
maia attach MVP-42 screenshot.png trace.pdf plan.docx
maia attach MVP-42 --media image-42      # put EXISTING project media on the ticket
maia new "Webhook fix" -d "see the screenshot" --media image-42
maia drop MVP-42 --reason "superseded by MVP-51"   # project admins only

--media <handle> works on new, attach, comment and edit. A screenshot someone dropped in chat becomes the ticket's screenshot with no download and re-upload. Media that's already on another ticket isn't moved: the new ticket gets its own copy (its own bytes, a few seconds later), so the same image can be on any number of tickets and nothing done to the original later can reach into a ticket.

Every command takes --json for programmatic use, and -p CODE to act on a project other than the selected one for that command. Both may come before or after the subcommand. Progress notes ("uploaded x.png") go to stderr, so --json stdout is always a single parseable document.

What it deliberately doesn't do

  • No stage (column) create, rename or delete. Board structure is admin-curated in the app.
  • No story rename, archive or delete. Do those in the app. You can file a ticket into an existing story with maia story. maia new-story is the one story write: any member except an observer, like the app. It refuses a name that already exists (case-insensitive, archived stories included) so a twin can't shadow the real story, and a name over 120 characters. A name that starts with - needs -- first: maia new-story -- -x.
  • No ticket delete. The API has none. maia drop sets the reversible dropped status, which is what "scrap that" means on this board; maia mv <key> next puts it back. Dropping is project-admin only from the CLI (the app lets any member), and maia mv <key> dropped is held to the same rule.

For agents

maia agent-guide                     # a cheat-sheet written for an LLM
maia agent-guide --write CLAUDE.md   # drop it into the repo (idempotent; re-run to refresh)

The guide tells the agent to use --json, never to run login itself, how tickets are addressed, the exit codes, and which rules the CLI enforces. With --json on, errors are JSON on stderr too ({"error", "hint", "exit_code"}), so failures parse as cleanly as successes.

An agent on your machine shares your saved login. For a CI job or a shell on another box, hand it your identity for one run:

eval "$(maia auth env)"        # exports MAIA_API_URL, MAIA_TOKEN, MAIA_TENANT_ID, MAIA_PROJECT
MAIA_TOKEN=$(maia auth token)  # or just the token
Invoke-Expression (maia auth env | Out-String)   # Windows; --shell cmd for cmd.exe

A MAIA_TOKEN is never refreshed or saved. A token copied before 2026-11-06 (an untyped login token) stops working on 2026-11-13. Run any maia command once to upgrade the saved login, then copy the token again.

Exit codes

code meaning
0 fine
1 generic failure
2 not authenticated, or nothing selected
3 forbidden (you're an observer, or the command is admin-only: drop)
4 not found (a ticket, member, story, stage, project or workspace)
5 conflict; refetch, a blind retry won't help (new-story with a name that already exists: file under that story instead)

maia doctor exits 1 when any check fails, so a script can gate on it; maia upgrade --check exits 1 when a newer release exists.

Metadata

Release files for maiactl 0.11.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for maiactl 0.11.0
File Size Uploaded Provenance Actions
maiactl-0.11.0.tar.gz 179.6 kB Without provenance Details for maiactl-0.11.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for maiactl 0.11.0
File Interpreter ABI Platform Actions
maiactl-0.11.0-py3-none-any.whl Python 3 none any Details for maiactl-0.11.0-py3-none-any.whl

Total release size: 249.3 kB

Release files / maiactl-0.11.0.tar.gz

Download URL maiactl-0.11.0.tar.gz
Size 179.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8b3df98ad3e690ee84fc469f0213cf6468dedc68f4cacfa934cc1043d23f30cb
BLAKE2b-256 checksum
How to use checksums
4869d0b7fb95e59eba7ea16a7fc5abbaf85e70fe7148950f46415223d7022026
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / maiactl-0.11.0-py3-none-any.whl

Download URL maiactl-0.11.0-py3-none-any.whl
Size 69.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc14461ed6628700c55e3589d75f20203148d27c7d2f3be9aa434c14ab24aa88
BLAKE2b-256 checksum
How to use checksums
1d1282b15d4dfc2535ec37eef8e89cf6b73b1ab9730f8535d65b0c613078c5fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for maiactl 0.11.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page