Skip to content

Teams and access

Permissions in Anastro have two layers: an org owns people, projects, and integrations (model accounts, GitHub, 1Password, connectors), while a project owns threads and machines.

Every user gets a personal org automatically; only they belong to it. To collaborate, create a shared org (you become its owner):

Terminal window
anastroctl org create acme
anastroctl org list # your orgs and your role in each
anastroctl --org acme org member list # members of acme

Use the sidebar’s org menu to create or switch orgs, and Settings → General (under the org name) to rename or manage membership. anastroctl selects an org from --org, ANASTRO_ORG, or your client file. Owners can rename or delete an org (org rename, org delete), and anyone can leave (org leave) as long as at least one owner remains.

Org role Can do
owner Everything in the org, including promoting other owners
admin Manage members, invites, service accounts, and projects; link model accounts, connectors, and 1Password
member Create projects; work in projects they belong to
viewer Read projects they belong to
Project role Can do
owner Manage project members and settings, add “always allow” rules, delete the project
editor Start and steer threads, approve calls, roll back, fork, and use machines and terminals
viewer Read threads, diffs, logs, and files (no steering, terminals, or approvals)

Org owners and admins automatically have owner permissions on every project in the org.

Any org member can create a project (New project in the sidebar) and becomes its owner:

Terminal window
anastroctl project create api
anastroctl project member --project api add alice --role editor
anastroctl project member --project api set-role alice viewer
anastroctl project member --project api remove alice

Project members must already belong to the org; removing someone from the org removes them from all of its projects. In the UI, manage project members under the project menu → Project settings → Members.

Org owners and admins create invites in Settings → Members → Invites or via CLI:

Terminal window
anastroctl org invite create alice@example.com --role member --project api --project-role editor
anastroctl org invite list
anastroctl org invite delete <id>

Anastro doesn’t send email—copy the single-use invite link (valid for 7 days) and send it yourself. When the recipient redeems it (anastroctl login --enroll <link>, or in the desktop/iPhone app), their device signs in and joins the org (plus the project, as editor by default, if named). Only owners can invite owners.

To add someone who already has a cluster account, run anastroctl org member add <user> --role member.

People sign in per device with anastroctl login or an enrollment link (Sign in this device), and manage their devices with anastroctl account device list and anastroctl account device revoke <device>.

Sensitive actions—approving devices, creating invites, disabling users, linking model accounts, revealing secrets—always require a signed-in device key. API keys and MCP calls are refused.

If someone loses all their devices, a cluster admin (org ownership alone isn’t enough) can issue a single-use 24-hour recovery link:

Terminal window
anastroctl org member recover <user>

Opening the link in the Anastro app or running anastroctl login --enroll '<link>' signs in the new device without revoking existing ones. A cluster admin who loses every device recovers using the operator’s secrets bundle instead (A locked-out admin).

Cluster admins can inspect everyone on the cluster, toggle accounts, and assign cluster roles in Ops → Users or from the CLI:

Terminal window
anastroctl users list # pass --disabled to filter
anastroctl users disable alice
anastroctl users enable alice
anastroctl users set-role alice cluster:admin # or cluster:operator, cluster:viewer, none

Disabling a user preserves their history and memberships, but immediately cuts off all devices and API keys, drops open connections, and pauses their running threads. Re-enabling brings their devices back, not their old API keys or tokens (they must create new ones), and paused threads stay paused until someone resumes them. You can’t disable yourself, and the cluster always requires at least one enabled cluster:admin.

A service account is a non-human member for CI or automation, scoped to either an org or a single project:

Terminal window
anastroctl org service-account create ci --project api --role editor
anastroctl account key create --service-account ci --sa-project api --ttl 30d --name github-actions
anastroctl org service-account revoke-keys ci --project api
anastroctl org service-account delete ci --project api

Service accounts can’t mint their own keys—an org admin or owner creates API keys for them, and CI passes the secret via ANASTRO_KEY (Keys for scripts and CI).

Every thread acts as the person who started it (or took it over), and every machine acts as its thread’s person (or its owner if unattached). That determines which projects, git repositories, connectors, and secrets they can touch. Agents can never exceed that person’s role, approve their own calls, change membership, or link accounts.

If the acting user loses access to the project, the thread pauses and its credentials are fenced immediately. Restoring access doesn’t silently restart it—an authorized person has to resume it.

Every mutating request and every denied request from a signed-in caller is logged. Org owners and admins can query their org’s log:

Terminal window
anastroctl org audit --since 2026-11-01T00:00:00Z --until 2026-11-08T00:00:00Z
anastroctl org audit --user alice --action org.member.added
anastroctl org audit --acting-as alice --decision deny # denied agent actions for alice
anastroctl org audit --project api --limit 200

Cluster admins can query the whole cluster with the same filters (including user.disabled, user.enabled, and user.cluster_role_changed):

Terminal window
anastroctl cluster audit --action user.disabled # shorthand: `anastroctl audit`

In the web UI, Ops → Audit exposes the same view and filters. Every record logs who acted and whether an agent acted on their behalf (including via mcp for anastroctl mcp serve calls).