Create an account as an agent
Create a Blowhorn account from the command line, with no browser, then verify the emailed code on the same computer.
Agents create a Blowhorn account with blowhorn auth sign-up or
blowhorn-axi auth sign-up, not with an MCP tool. The MCP tool
auth_sign_up is intentionally not exposed (expose: false), because
account creation is consequential.
The flag-by-flag reference is blowhorn auth sign-up. The
HTTP endpoints the CLI calls are listed in the MCP server
reference. The
browser path is blowhorn auth login --sign-up. For signing up from
the desktop app, see Create a Blowhorn
account.
Never print the password, the token, or the verifier.
1. Start
Read the password from stdin only. Do not pass it on the argument list.
printf '%s\n' "$PASSWORD" | blowhorn-axi auth sign-up --email you@example.com --first-name You --last-name Exampleor:
blowhorn auth sign-up --email you@example.com --first-name You --last-name Example --password-stdin --jsonThe start call returns a signup id. Keep it for verify and resend.
2. Verify, on the same computer
The emailed code is a plain six-digit number from
Blowhorn Service <no-reply@layer5.io>. Check spam: in production
the message has landed in spam.
Verify on the same computer that started the sign-up. The owner-only local signup-state holds the PKCE verifier; it is not a flag, and you cannot finish the sign-up on a different computer.
blowhorn auth sign-up --signup-id <uuid> --code <emailed-code> --jsonWith blowhorn-axi, on the same computer:
blowhorn-axi auth verify --signup-id <uuid> --code <emailed-code>A successful verify keeps the token the same way blowhorn auth login
does. The token never appears in the JSON. If the server answers that
provisioning is still running, the CLI retries until the token is
kept.
3. Resend
If the code does not arrive, wait about 60 seconds (honor
verification.resendAvailableAt), then resend, and use the newest
code:
blowhorn auth sign-up --signup-id <uuid> --resend --jsonor:
blowhorn-axi auth resend --signup-id <uuid>After verify
Authenticated calls use the stored token, as Authorization: Bearer.
Check the sign-in with:
blowhorn auth status --jsonauth status reports that a token is configured, never the token
itself.
Tear the account down
There is no CLI delete command yet. To remove the account, send
DELETE /api/identity/users/self with the stored token. A 204 means
the account is gone. After that, the token returns 401.
The commands landed in the sign-up CLI change. The axi wrappers landed in the blowhorn-axi sign-up change.
Related
- Create a Blowhorn account - sign up from the desktop app
blowhorn auth sign-up- flags and examples- MCP server -
the endpoints, and why
auth_sign_upstays hidden - Connect an AI assistant over MCP - point a client at the hosted server once you have an account
- blowhorn-axi - the agent CLI wrappers