Organizations and roles
An organization is where everything in Nexus lives: its members, its provider keys, its budget and spend, its teams, its linked repositories and its audit log. Nothing is shared between organizations, and a person can belong to several, signing in to one at a time.
Every person also has a personal organization. They are its owner and its only member. It takes no invitations and no other members. To work with others, create a company organization.
Roles
Each member has exactly one role in an organization.
| Role | Can |
|---|---|
| Owner | Everything an admin can, plus transferring ownership, billing (the card, credits and invoices), setting the default spend limit per person and allowing admins to set each person's limit. There is exactly one owner. |
| Admin | Manage members (invite, change roles, remove, recover), teams, repositories, provider keys, service accounts, the budget and model policies; see everyone's spend and tokens; set each person's spend limit, except an owner's, when an owner allows it |
| Member | Use the products and coding agents; see their own spend, sessions and tokens, and their teams' |
A team lead is a member who leads at least one team. In the teams they lead and the teams under them, a lead reads and exports the audit events and narrows the model policy. A lead also pauses or limits model traffic there, and decides skill promotion requests.
The full list of what each role may do is the permissions matrix.
Members
nexus members # everyone, by role
nexus members remove ada@example.com
nexus members removed # who can still be recovered, and until when
nexus members recover usr_123Owners and admins change a member's role with
POST /v1/orgs/members/{userId}/role and remove a member with
DELETE /v1/orgs/members/{userId}. Removing someone revokes their tokens and
keys at once. An owner or admin can recover them for 30 days: their role, teams, default team and spend limit come
back, but their tokens and keys do not. The owner's role changes only by
transferring ownership, so the owner must transfer it before they can be
removed.
A person can delete their own account with nexus auth delete-account, from a sign-in and not an API key. This
removes them from every organization and closes their personal organization. It is refused while they own a company
organization.
Inviting people
Invitations are always explicit: adding someone to a team by email, or importing a file of teams, never sends an email by itself.
nexus members invite new-hire@example.com # one email
nexus members invite --pending --dry-run # who would be invited: everyone placed in a team who hasn't joined
nexus members invite --pending --yes # send them; more than one email needs --yesThe API is POST /v1/orgs/invitations. To send more than one invitation it
needs expect, the number you confirmed; if the number to send has changed since, it answers 409 count_changed
and sends nothing. dryRun: true reports who would be invited.
When an invited person signs in and joins, every team they were placed in by email becomes a membership, and their home team becomes their default.
Budget
Each organization has a budget in US dollars, a cap per UTC day, ISO week or calendar month. Every model call
reserves its maximum cost first, and a call that doesn't fit in what is left is refused, so the budget is never
overspent (see the ledger). Owners and admins set it with nexus budget set org 2000/month or
POST /v1/orgs/budget. A monthly
spend limit per person is built: owners set the default and each person's limit, and admins
an owner allows set each person's limit. A team can have its own cap too, which counts the team and every team under
it (nexus budget set team/platform 500/month).