Administer
Identity and access
Who can sign in to an isotope, what each role may do, and how programs and peers are let in.
How sign-in works
People sign in to an isotope with their Darkmatter account, at Darkmatter login, the same sign-in the installer and the terminal use. Nothing is registered for an isotope: the first time someone opens its console, it sends them to Darkmatter login and back. An air-gapped isotope instead keeps local accounts of its own. The console keeps a session cookie that lasts 12 hours. Admission is re-read on every request, so a block or a role change applies at once.
Darkmatter login asks before it signs you in to an isotope somewhere it has not sent you from this browser, naming the address it returns to. An isotope on your own machine signs you in without asking. Settings → Account shows your callsign, email and role, and signs you out.
The first administrator
The first drkm start, or drkm setup, asks how people sign in:
- Log in with Darkmatter, the default. You name your Darkmatter email: your first sign-in makes you the administrator, no one else's can, and you invite everyone else.
- Local accounts, for an isotope with no internet. You create the administrator with your email and a password, then add each person in Settings → Users and hand them a temporary password.
drkm setup --file reads the answer from a private JSON file for unattended installs: {"mode": "darkmatter", "administrator": "you@example.com"}, or {"mode": "local", "email": "…", "password_hash": "<bcrypt>"}. The installer itself creates no accounts.
drkm setup
drkm setup --file /path/to/identity.json
Use Microsoft Entra ID
Your organization's Microsoft Entra ID, in the commercial cloud or in Azure Government, connects once to Darkmatter login as single sign-on. People then sign in to every isotope with their Entra accounts and MFA, and someone removed from your directory can no longer sign in. Nothing is registered per isotope. Contact Darkmatter to connect your tenant.
The isotope knows people by email. Everyone who signs in needs an email address in Entra, either a mailbox or the user's Email property.
Roles
There are three roles, and each one can do everything below it.
| Role | Can |
|---|---|
| Viewer | Reads, and changes nothing: conversations, files, skills, connections and the fleet. |
| Member | Does the work: sends messages and manages conversations, uploads files, edits skills, submits and manages jobs. |
| Admin | Manages people, machines and settings: users and access, adding machines to the mesh, models and connections, audit logs, everyone’s jobs and spend. |
drkm.broom sweeps that read an isotope's files or run their own Python code need an admin unless the isotope's DRKM_SWEEP lowers that to member. Everyone else sees their own jobs and the conversations they own or joined. An organization always keeps at least one admin.
Add people
People belong to organizations, and each person has one role: their role on this isotope, whichever organization they work in. Organizations hold no role of their own. An admin of an organization runs it, and anyone else who belongs works in it. Settings → Organization holds your current organization's logo and email domains, and lets you switch, create or leave one. For administrators, Settings → Users lists the organization's members, then console users who aren't in it, under tabs for Members, Invited, Requests, Blocked and Access. Everyone else sees their own role and permissions there.
Invite user takes an email and a role, as one invitation to the organization and to the console: where the isotope makes its own accounts it gives you a temporary password to hand over; with a provider that sends invitations, such as Descope, the provider emails them; with any other external provider it records the email and role and you share the sign-in link. Inviting someone already here sets their role at once, since one person holds one role whichever organization invited them. Someone signing in for the first time lands in the organization that invited them. Approving a join request adds them to the organization, and they keep their role. A person's row changes their role, blocks or restores them, and resets a password the isotope made. Removing someone takes them out of the organization and off the console. Blocking keeps their conversations. Someone blocked or removed signs in again once restored or invited back; the session they had before stays over. Revoking an invitation leaves any role they already hold here.
Under Access, Who can sign in is either Invited users only or Anyone in the identity provider with a default role that is never Admin. Changes apply on the next request.
API keys for programs
Settings → Keys → API keys lets programs outside the console use the isotope’s API. New key takes a name, a role and an expiry of 30, 90 or 365 days or never; the secret, drkm_ak_…, is shown once. Each key is its own account with the role you chose: it owns what it creates, never counts as the last administrator, and even with the Admin role cannot manage users or keys. Revoke refuses the key on its next request.
curl -H "Authorization: Bearer drkm_ak_..." https://isotope.example/users/me
# The SDK and the terminal read the same key from the environment
DRKM_URL=https://isotope.example DRKM_TOKEN=drkm_ak_... drkm console jobs
Sign in from the terminal
drkm console login signs a terminal in through a browser, like claude /login: it opens the isotope's sign-in and the browser hands the session back to the terminal. Over SSH it prints a link and you paste the code the page shows. --password signs in with local accounts where the isotope allows it, and --token takes an API key. whoami prints your email and role; logout drops the stored session. Store credentials in the OS keyring. On hosts without a keyring, have your secret manager inject DRKM_TOKEN at runtime; do not save credentials in files. Credentials never follow a redirect.
drkm console login https://isotope.example
drkm console whoami
drkm console logout
Audit and usage
Every privileged act, from an invitation or a role change to a connector save, a key removal, a model served or an update started, is recorded in the same transaction that performs it, in a log that is never edited. Administrators read it at GET /audit. Metered spend lands in a usage ledger at GET /usage: you read your own, an administrator reads the whole isotope, and /usage in the terminal workspace or drkm console usage prints a range.
drkm console usage --range 30d
curl -H "Authorization: Bearer $DRKM_TOKEN" "https://isotope.example/audit?limit=50"
Access between isotopes
People and programs are admitted per isotope; isotopes are admitted per mesh. Only administrators enroll isotopes, mint invitations or change addresses, and an invitation is single-use and expires after 24 hours. Once enrolled, a peer acts under its own identity on the agent-to-agent API and job attempts; it never inherits a person’s role, and revoking its enrollment revokes that access. Every isotope serves HTTPS only; that certificate authenticates the service, not the user. See adding devices to the mesh.