Sign in

Agent sign-in

Your coding agent makes your new Prized account with no sign-up page and no browser, from your email address and the 6-digit code Prized emails you, then gets an API key to start a cloud box.

On this page7

Start

Tell your agent:

Prompt
Sign me up for Prized with my email address by following https://prized.dev/auth.md, then start a box for me.

Prized emails you a 6-digit code; give it to your agent. It may also ask how you found Prized: answering is optional and changes nothing. The code makes your account, with the free credit and no card, and the agent gets an API key for the API and the CLI (prized login --url https://api.prized.dev --token-stdin).

Already on Prized? Agent sign-in only makes new accounts. Make your agent a key at https://prized.dev/dashboard/workspace/api-keys instead.

An agent that calls the API with no key, or one Prized does not know, is pointed here: the 401 unauthorized carries signUp, one line saying it can sign its person up with prized.dev/auth.md, and a WWW-Authenticate header naming Prized's auth.md metadata, so agents that follow that open standard find the sign-up on their own. The sign-in page, which is Google and GitHub only, names prized.dev/auth.md for agents too, and answers an agent that asks for Markdown (Accept: text/markdown) with auth.md itself.

What happens

StepWhat happens
The email"Your Prized agent code": the code, a warning that the requester is unverified, what sharing the code permits, and where the request came from. It lasts 15 minutes and allows five tries.
The accountNamed after you when the agent knows your name, in a workspace of its own. To join your company's workspace, open its invite link.
Your first sign-inYour first Google or GitHub sign-in on the same address opens the same account and shows you the agent's key first: keep it or revoke it. Add the other provider with Connect under Settings › Security.

Your first sign-in

The first time you sign in to the account, Prized shows the key the agent got, before anything else: its name (the one the app gave itself, which Prized has not verified), when it was made and last used, what it made, and what it can do. Revoke is chosen; pick Keep if you asked that agent to sign you up, then Continue.

Revoking stops the key at once. Boxes and sandboxes it made stay in your account. If you never asked an app to make you a Prized account, revoke it: someone may have asked you for the code. Either choice is a row on your audit log. Credit waiting for your address, such as the YC deal, lands once you choose.

The key

  • The agent's. Listed at https://prized.dev/dashboard/workspace/api-keys by the agent's self-reported name, marked as an agent's key. The name is a label, not a verified identity. Revoke it there; the agent can also revoke it itself.
  • Limited. It starts, stops and uses boxes and reads the workspace; no secrets (What a key can do). Every box it makes withholds your secrets for good: environment secret files, mounted secrets and AWS profiles are never sent to it (a fork or restore of one of your boxes still copies whatever files that box held). Signing your coding agents in with prized setup still works. Make boxes you want your secrets on yourself.
  • Expires. After 90 days; make the agent a new one at https://prized.dev/dashboard/workspace/api-keys.

Sandboxes. The key also creates and uses sandboxes. On the free credit they run within the free tier; a top-up or a plan lifts it. Each sandbox it creates is a sandbox.create row on the audit log naming the key, as each box it creates is a box.create row. The calls it makes are on Agent quickstart.

Once the key works, an agent that is not using the Prized skill yet asks whether it may install it. The command is npx skills add prized-dev/skills -g -y -a claude-code -a codex -a cursor -a github-copilot, which adds the skill for every project in Claude Code, Codex, Cursor, GitHub Copilot and agents that read ~/.agents/skills (another agent adds its own name with one more -a), so the agent knows when and how to use Prized the next time you ask for a sandbox or a cloud machine. Say no and nothing is installed.

Boxes and billing

The agent can start a Small on the free credit right away. The credit comes once per inbox: you+work@gmail.com is you@gmail.com. An address at your own domain gets it once a day per domain and per mail server, so a second sign-up from your company the same day starts with no credit. An address whose domain or mail server Prized has tied to abuse gets no credit, or no account at all, and a sign-up past the day's total for all agent sign-ups gets no credit. An account made without the credit does not get it later by signing in on the web or with prized login: start a plan, or write to team@prized.dev. Medium and larger need a plan, which you start under Settings → Billing. Agents read prices from pricing, never from memory.

For agent builders

An agent that runs shell commands uses the three commands under From a shell in prized.dev/auth.md. The key goes from the sign-up answer into a file only the person can read (mode 600), then over pipes to curl and prized login --url https://api.prized.dev --token-stdin, so it never shows in the agent's output, process arguments or environment. Otherwise, save the verified key with prized login --url https://api.prized.dev --token-stdin: start the CLI with your process runner, write the key plus a newline directly to its standard input, then close that input. Never embed it in process arguments, shell command strings (including inline scripts and here-documents), environment variables, or tool logs. Linux process arguments may be readable by other local users. If your tool can do neither, ask the person to run the interactive CLI login instead.

prized.dev/auth.md is the contract. Call the API's own origin, https://api.prized.dev. Keep the explicit --url when logging the CLI in: without it, the CLI sends the key to its configured control plane (or the production API by default) before saving it. For a preview or local deployment, use the API origin in that deployment's /auth.md, not the web origin.

Prized follows auth.md. Discovery starts at https://api.prized.dev/.well-known/oauth-protected-resource (or https://prized.dev/.well-known/oauth-protected-resource), whose authorization server metadata, https://prized.dev/.well-known/oauth-authorization-server, names every endpoint in agent_auth. The code still comes by email, never from a page, and only ever makes a new account.

RouteWhat it does
POST /api/v1/agent/identity{"type": "service_auth", "login_hint", "agent_name"?, "person_name"?}, no credential: a claim whose claim.token is the key, unverified, and the emailed code. The same answer whether or not the address has an account. auth.md v0.1's identity_assertion with verified_email works too.
POST /api/v1/agent/identity/claim/complete{claim_token, user_code, heard_from?}: the account and a working key (identity.assertion and credential are both the key), or 409 sign_in_required if the address already had an account. heard_from is optional: how the person found Prized, only if they said.
POST /api/v1/agent/identity/claim{claim_token}: what the claim waits for. There is one code per claim; after it expires, register again.
POST /api/v1/agent/tokenRFC 7523 grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer with the assertion: the same key as access_token.
POST /api/v1/agent/revokeRFC 7009 token=<key>: it stops working.
POST /api/v1/agent/sign-up, /verify, DELETE /api/v1/agent/keyThe same sign-up from before auth.md: {email, name?, personName?}, then {code, heardFrom?} with the key as bearer. Still supported.

While a code is live, registering again answers 409 code_pending. The email never includes the caller-supplied agent name, even for well-known tools. A name does not authenticate the requester. Throwaway and placeholder domains are refused. Limits: 10 sign-ups and 5 codes an hour per network, 5 codes a day per inbox, and a few credited new accounts a day per network, one a day per email domain or mail server, and a daily total for all agent sign-ups.

Troubleshooting

SymptomWhat to do
No emailCheck spam. A new code goes out only after the last one expired, five a day at most.
claim_expired or code_expiredOlder than 15 minutes, tried five times, or already answered with account_unavailable. The agent asks for a new one.
sign_in_requiredYou already have an account: make a key at https://prized.dev/dashboard/workspace/api-keys.
account_unavailableSign in at https://prized.dev yourself and make the agent a key there, or email .
The agent's key stopped working after you signed inYou revoked it at your first sign-in. Make it a new one at https://prized.dev/dashboard/workspace/api-keys.
The agent cannot reach auth.mdRun prized login yourself, or give the agent a key from https://prized.dev/dashboard/workspace/api-keys.
A key you did not expectRevoke it at https://prized.dev/dashboard/workspace/api-keys.