Operate the broker
Every command here runs through beachside broker with the admin key of a connected broker. Without it, use beachside-broker with the same commands and BEACHSIDE_BROKER_ADMIN_KEY set. Add --json for scripts. Exit codes match the rest of the CLI: 2 for a usage error, 3 not found, 5 a rejected key or permission, 6 when a write may have applied (check before retrying), 7 retryable.
Check the broker
Section titled “Check the broker”beachside broker status # the key's role, the grant limit, and counts with the admin keybeachside broker config show # the GitHub Actions trust policy the deployment loadedbeachside broker integration listbeachside broker issuer show # integrations the issuer may grantintegration list marks an integration that the issuer can’t grant yet. Allow it with issuer allow <id>, or stop new grants with issuer deny <id>. Existing grants keep working until they expire.
See and end grants
Section titled “See and end grants”beachside broker grant list # grants made with this machine's issuer keybeachside broker grant list --all # every grant, with the issuing role, using the admin keybeachside broker grant revoke <grant-id>The listing shows each grant’s label (sandbox grants are labelled beachside <name>), integrations, expiry, request count and last use. It never shows tokens.
Rotate an upstream key
Section titled “Rotate an upstream key”beachside broker integration rotate github --secret-stdin < /secure/path/new-github-tokennode -e 'console.log(JSON.stringify({ Authorization: process.env.NEW_OPENROUTER_API_KEY }))' | beachside broker integration rotate openrouter --credentials-stdinbeachside broker integration show openrouterExisting grants keep their scope and use the new key from their next request. Requests already in flight may finish with the old one. For an HTTPS endpoint integration, pass only the secret headers you’re replacing. To change its URL or headers, create a new integration.
Disable or delete an integration
Section titled “Disable or delete an integration”beachside broker integration disable openrouterbeachside broker integration enable openrouterbeachside broker integration delete openrouterDisabling revokes the integration’s grants. Deleting also removes it from the issuer allowlist, so recreating the same ID needs issuer allow again. Revoking a grant or deleting an integration leaves the upstream key itself active at GitHub or the provider.
Rotate the broker’s own keys
Section titled “Rotate the broker’s own keys”The keys live only in the Worker and, for the admin and issuer keys, your password manager. bun run deploy never changes them. To replace the issuer or admin key, set a new value on the Worker, update it in your password manager, then on each machine that holds it as a value rather than a reference: beachside broker add <name> --issuer-key ... for the beachside CLI, or the BEACHSIDE_BROKER_* variables for beachside-broker.
bun run --cwd services/credential-broker wrangler secret put BROKER_ISSUER_KEYThe encryption key has no copy outside the Worker, so replacing it means re-entering every integration’s upstream key. Follow the key rotation steps.
An .env.deploy from an older setup holds the keys as values. It keeps working, and bun run broker and bun run deploy in the broker checkout warn until you move the keys out. Every older deploy uploaded the file’s keyring, so once your last deploy has succeeded the Worker holds the same keys and the file’s copy can go. If you changed the keyring in the file without deploying it, deploy it with the older version of the broker first, because the file would then hold the only copy. Then save the admin and issuer keys in your password manager, replace them with references, and delete BROKER_ENCRYPTION_KEYS and BROKER_ENCRYPTION_KEY_VERSION from the file.
Limits
Section titled “Limits”The broker allows up to 1,000 active grants, 100 per issuer. Each grant has its own budget for each of its integrations, including streams: 800 requests a minute and 32 at once on GitHub, enough for large clones and fetches; 600 a minute and 32 at once on the Anthropic, OpenAI and OpenRouter gateways; and 300 a minute and 8 at once on custom http endpoints. A request over a limit gets HTTP 429. To change one integration’s limits, add limits to BROKER_CONFIG in .env.deploy and run bun run deploy. Set spend limits and scopes at the upstream provider as well. Grant API limits.
Run it locally
Section titled “Run it locally”To try changes without deploying, run the Worker with Wrangler on your machine. Local setup. The CLI accepts plain HTTP for localhost, so connect it with the fixture keys you generated.
beachside broker add local --url http://localhost:8787 --issuer-key env:LOCAL_ISSUER_KEY --admin-key env:LOCAL_ADMIN_KEYbeachside broker status --broker localA sandbox can’t reach your localhost, so test grants inside sandboxes against a deployed broker.
Upgrade
Section titled “Upgrade”Pull the broker repository and run bun run deploy again. Grants and integrations are kept, and the database migrates on first use. Deployment runbook.
© 2026 Beachside Compute · Made by humans & in Texas