1
The agent registers
agent@<hostname>, and the default scopes are machines:read machines:write machines:delete images:read. The command prints a claim page and a code:2
The owner approves
Open the page. If you are signed out, sign in or sign up with GitHub or Google first, and the page
comes back. It shows the agent’s name, when and from which address it registered, and what it asks
to do. Untick the permissions you do not want to give, then choose Approve or Deny.To decide from your own computer instead, sign in there and run:
3
The agent carries on
The command finishes on its own and stores the key in
~/.config/instabox/credentials.json. Every
later instabox command uses it./llms.txt. An
agent’s key never manages keys, workspaces, or billing. An account holds at most 20 active keys.
Waiting, resuming and failures
Waiting, resuming and failures
--no-waitprints the page and code and exits. With--json, it prints them as JSON. Runninginstabox login --agentagain resumes the same registration instead of printing a second code.- A denial or an expired code ends with an error. Register again.
- If the key cannot be stored, such as on a full disk, the command says so without printing the key and exits non-zero. Run it again within 10 minutes and the server hands over the same key. A key neither used nor stored within those 10 minutes is revoked.
--json prints the secret
--json prints the secret
--json prints the key itself, and --no-wait --json prints the claim token. Keep that output out
of transcripts and logs.Over HTTP
Over HTTP
POST /v1/auth/agent takes {"name", "email", "scopes", "expiresInDays"}, all optional. It answers
claimToken, userCode, verificationUri, verificationUriComplete, interval, and expiresIn.Poll POST /v1/auth/agent/token with {"claimToken"} every interval seconds. It answers 400
with one of these errors:Then, once, it answers
200 with key (the secret, ibk_...), apiKey (its ID, name, and scopes),
and the account’s userId and login. From then on, send the key as X-API-Key.API keys
Scopes, workspaces and revoking.
Coding agents
Give each agent a machine of its own.