Skip to content

Commands

The commands that change keys or read them from the account (create, update, regenerate, delete, prune, list --remote, status --remote and can-manage) authenticate with a session cookie: Roblox's key administration is not on Open Cloud. doctor uses it to check the session and to find the key on the account. list, status, resolve, introspect, scopes and catalog need none: they read this project's files, or authenticate with the key's secret.

Lifecycle

rbx-apikey create

rbx-apikey create <key> | --all

Create the key on Roblox and store its secret. Refuses, before creating anything, if a secret would land in a file git does not ignore, or if an env the lockfile records now resolves to another universe in rbxplace.toml (as update, regenerate and delete do).

Flag Meaning
--all Every declared key
--no-ip Allow every IP address
--force Replace a key the lockfile already tracks: that key is deleted on Roblox first, then a new one is created. See below
--no-verify Skip the check that Roblox stored what was asked
--yes Skip the confirmation
--stdout Print the secret on stdout instead of storing it. One key, not with --all. See Secret storage
--refresh-scopes Read Roblox's scope list now. See The scope catalog

A failed creation that Roblox reports as 500 prints the scopes it sent: a scope given a target it does not take fails that way.

--force on a key the lockfile tracks builds the new key's request first (targets, owners, scopes, IP ranges), then deletes the old key the way delete does, then creates the new one, so no key is left live on Roblox without a record and a request that cannot be built leaves the old key working. A name or description containing rbx or roblox is refused before the delete, since Roblox refuses it; set name or description on the key to reword it. The keys it replaces are named before the confirmation, and their secrets stop working. A key created by another account is refused before anything happens. If the delete fails, nothing is created and the record stays; a key already deleted in the Creator Hub is replaced. To keep the key and change only its secret, use regenerate.

rbx-apikey update

rbx-apikey update <key> | --all

Apply the file to existing keys: enabled, expiry, IP ranges, scopes. If secret_file changed, the secret moves to the new location first; a new location git does not ignore stops the whole run before anything changes.

Flag Meaning
--no-ip Allow every IP address
--clean-files If secret_file moved, delete the old file without asking
--yes Skip the confirmation
--refresh-scopes As for create

rbx-apikey regenerate

rbx-apikey regenerate <key> | --all

New secret, old one invalid. --clean-files, --yes, and --stdout as for create. If a new secret would land in a file git does not ignore, nothing is rotated and every key keeps the secret it has.

rbx-apikey delete

rbx-apikey delete <key> | --all

Delete on Roblox, then from the lockfile and the secret file. A failed delete keeps the record. --clean-files, --yes.

rbx-apikey resolve

rbx-apikey resolve <key>

Print the raw secret on stdout, for a script: export RBX_API_KEY=$(rbx-apikey resolve deploy). Refused for a key created or rotated with --stdout, whose secret is not stored here.

rbx-apikey introspect

rbx-apikey introspect <key>

What Roblox stored for the key. Only works while the secret is under an hour old. It authenticates with the secret alone, so it never asks to use a signed-in Studio.

Inspecting

rbx-apikey list

What this project declares and created.

Flag Meaning
--expiry-only Names and expiry only
--sort expiry Nearest expiry first
--remote Every key on the account, tracked or not
--group-id <id> With --remote: a group's keys instead of yours
--json One JSON document, never a secret (fields)

Colours: green over 30 days, cyan 7 to 30, yellow under 7, red expired or secret missing. A secret file that is there and cannot be read is shown on its key as secret cannot be read, with the error, and the listing goes on.

--remote matches keys to the lockfile by id, never by name (name_prefix renames on purpose, and names repeat across accounts). It starts with the account it is listing: if that is not the account you expect, stop.

API keys on Roblox for user 1234567890 (12 total):
  ✓ myproject_viewer         AAAAAAAAAA…  created 2026-08-03  in 90d           tracked → viewer
  ✗ oldgame_shop             CCCCCCCCCC…  created 2026-05-18  EXPIRED 17d ago  untracked

rbx-apikey status

Compare the file, the lockfile and, with --remote, Roblox. Changes nothing.

Status Meaning
HEALTHY All agree
PENDING Declared, not created
EXPIRED, EXPIRING_SOON
ORPHAN_LOCK In the lockfile, no longer declared
ORPHAN_REMOTE Gone from Roblox (--remote only)
SECRET_MISSING No stored secret, including one create could not store (a key printed with --stdout is not missing: it is held elsewhere)
SECRET_UNREADABLE The secret's file is there and could not be read; the error follows. The other keys are still checked
DISABLED
CREATOR_DRIFT Roblox stores other creator targets (G<id>, U<id>) than the file asks for (--remote only). Compared when the lockfile knows the owners the targets come from
CHECK_FAILED Roblox could not be asked

--json gives one verdict per key (fields).

rbx-apikey can-manage

Can you create a key for this experience? For a group universe it depends on your role.

rbx-apikey can-manage --universe-id 5544332211
rbx-apikey can-manage --place-id 55443322110099 --place-id 66778899001122
rbx-apikey can-manage --env prod

create succeeds anyway

Roblox lets you create a key for a universe you cannot manage; it only fails at first use. This is the only check beforehand. A "no" has been verified end to end; a "yes" says nothing about scopes or the IP allowlist.

There is no positional id: a universe id can also be a valid place id elsewhere.

Cleaning up the account

rbx-apikey prune

Pick keys from the account listing and delete them.

Flag Meaning
--group-id <id> A group's keys
--untracked-only Only keys this project does not track
--expired-only Only expired keys
--dry-run Print the candidates, delete nothing (the only non-interactive mode)
--clean-files, --yes As for delete

Nothing is preselected and there is no --all. A tracked key goes through delete; an untracked key is deleted on Roblox only.

The scope catalog

Which target and operations each scope takes. create and update read them from Roblox's own scope list, the one its key service applies, since Roblox changes it every few days. The list is saved for 24 hours in the user's cache directory (%LOCALAPPDATA%\rbx-apikey\scopes.json on Windows, ~/Library/Caches/rbx-apikey/ on macOS, $XDG_CACHE_HOME/rbx-apikey/ or ~/.cache/rbx-apikey/ elsewhere), one copy for every project on the machine. --refresh-scopes reads it again before the day is out.

When Roblox cannot be reached, an older saved copy is used, or the catalog built into the binary when there is no copy or the binary's catalog is newer, with a warning that says which. A scope Roblox's list gives two targets for is left to the built-in catalog, with a warning. The built-in catalog also supplies the descriptions, and the few scopes Roblox's list leaves out. status and doctor read the same saved copy, so they judge a key against the list it was built from; scopes list and scopes show show the built-in catalog.

rbx-apikey scopes

rbx-apikey scopes list               # every known scope, by target type
rbx-apikey scopes show universe      # one scope type

These show the built-in catalog. It is advisory: an unknown scope is a warning, and any string is forwarded. scopes show --json (fields).

rbx-apikey catalog regenerate

For maintainers. Rebuilds the catalog from Roblox's openapi.json (which scopes exist) and the key service's own list (which targets and operations a creation accepts; it wins where they disagree). A daily workflow runs it and merges the change once CI passes; a release then carries it into the built-in catalog.

doctor

Why a key does not work: see doctor.