Account security and agent tokens

How sign-in works, how agent tokens and scopes protect your account, and what to do if a token leaks.

In short

  • You sign in with a one-time email link; there is no password to steal or reuse.
  • Agents and the CLI use agent tokens: secret, scoped, valid until you revoke them (or for 30, 90 or 365 days if you choose), and revocable at any time.
  • A token can never do more than the person who created it is currently allowed to do, and tokens can never move money.
  • If a token leaks, revoke it in Dashboard → Agent tokens right away.

Signing in

  • Enter your email at https://oneprompt.games/login and open the link we send.
  • Each link works once and expires after 15 minutes. Links are stored only in scrambled (hashed) form.
  • Sign-in error messages never reveal whether an email address has an account.
  • Your dashboard session lives in a cookie on oneprompt.games only. Game origins (*.oneprompt.games) cannot read it, so a game can never act as you.

Protect the email account you sign in with: whoever controls it can sign in to OnePrompt as you. Turn on two-factor authentication with your email provider.

Agent tokens

An agent token lets the CLI or an AI agent act for your organization. It looks like op_live_ followed by an id and a long secret.

Creating one

  1. Go to Dashboard → Agent tokens.
  2. Enter a Name that says where the token will live ("ci", "claude-laptop").
  3. Choose the access: Full access (recommended for an agent), Read only, or Custom with exactly the scopes it needs (see below).
  4. Click Create token. The first time, an owner or admin must accept the Developer API & AI Agent Terms.
  5. Copy the token now. It is shown only once. We store only a scrambled (peppered hash) version, so nobody can show it to you again.

Choose how long the token is valid: No expiry (the default), 30 days, 90 days or 1 year. A token without expiry works until you revoke it, so give it a clear name, check Last used now and then, and revoke tokens you no longer use. Full access includes everything an agent needs except creating more tokens, so a leaked token cannot copy itself; tokens never move money, whatever their scopes.

Scopes

Choose the smallest set that does the job:

  • projects:read: read projects, deployments, logs, game pages, pricing and access settings.
  • projects:write: create projects, edit game pages and upload images, submit for review, change price and access settings.
  • deployments:write: upload packages and create deployments (validation only, nothing goes live).
  • deployments:promote: make a deployment the live release, or roll back.
  • analytics:read: read usage and analytics.

The dashboard pre-selects the first four. Some useful combinations:

  • A CI pipeline that builds and ships: projects:read, deployments:write, deployments:promote.
  • An agent that prepares builds you approve: projects:read, deployments:write (you promote in the dashboard).
  • A reporting script: projects:read, analytics:read.

What tokens can never do

Whatever their scopes, tokens cannot:

  • top up balances, book featuring, subscribe, or set up or change payouts;
  • accept legal documents for your team;
  • do anything in another organization.

These actions always need a person signed in to the browser with the right role.

A token is never stronger than its creator

A token acts with the intersection of its scopes and its creator's current role in the organization. If the creator's role is narrowed, or they leave the organization, their tokens are narrowed or stop working too. Roles are owner, admin, developer, analyst, billing and support (read-only); for example, only owners and billing members can manage billing, and only owners and admins can accept terms for the organization.

Using tokens safely

  • One token per place. Give each agent, machine and pipeline its own token, so you can revoke one without breaking the others.
  • Keep tokens out of code. Use the CLI's keychain storage (oneprompt auth login), the ONEPROMPT_TOKEN environment variable, your CI's secret store, or your agent's secret settings. Never commit a token or paste it into a prompt that is saved in a shared transcript.
  • Watch "Last used". The token list shows when each token was last used. A token you do not recognise being used is a reason to revoke it.
  • Review what agents publish. Anything an agent does with your token counts as if you did it.

If a token leaks

  1. Go to Dashboard → Agent tokens and click Revoke next to it. It stops working immediately.
  2. Create a new token with the same scopes and put it where the old one was used.
  3. Check your projects' release history and game page history for actions you did not expect, and roll back if needed.

OnePrompt can also revoke tokens and suspend accounts when we detect abuse.

Players and data

A few related facts creators often ask about:

  • Each game runs on its own origin, isolated from other games and from players' OnePrompt sessions.
  • Your game cannot see players' identities, emails or payment details. You see the email addresses of people who requested access to, or were invited to, your invite-only games.
  • The bridge SDK sends no cookies and no personal data. Do not add personal data to your own events either.
  • The Privacy Policy and the Data Processing Addendum describe how player data is handled.