Features / Scoped API keys

Hand out a key that opens one sandbox and nothing else.

Every call to the pols API is made with an API key. Let a key expire, and limit it to the sandboxes a colleague, a CI job or an agent needs: it then sees and uses those sandboxes only, and nothing of the org around them.

€10 of usage for 30 days · No credit card

curl -fsSL https://pols.so/install.sh | sh
Active API keys per org
25
Days until a key expires, or never
30 · 90 · 365
All pols keeps of a key's secret
SHA-256

A key-cutting machine and a board of locks

A key is cut for what it may open. The machine stands on the account page, the only place keys are made besides an email-approved pols signup --email. A key limited to one sandbox turns in that lock; the other sandboxes are shuttered as if they did not exist, and the org's own lock stays barred.

  1. The keyIts pols_… secret is shown once. pols keeps only a SHA-256 hash, so a lost key cannot be shown again. Up to 25 active keys per org.
  2. The cutterCuts what the key acts in: the whole org, or only the sandboxes you tick. To change that, make a new key and revoke the old one.
  3. The expiry selector30, 90 or 365 days, or never. An expired or revoked key gets 401 unauthorized everywhere.
  4. Other sandboxesAny sandbox outside the key's scope answers 404 not_found, by ID, name or host label, exactly like one that does not exist.
  5. The org lockCreating, deleting, forking, renaming or resizing sandboxes, templates, sites, the vault, webhooks, billing and listing keys answer 403 forbidden.
  6. Its sandboxIn the sandboxes it names, the key can run commands as root, move files, use the desktop, computer use and CDP, publish ports and log in over SSH.
  7. The machineKeys are made only on the account page, or by email approval with pols signup --email. The API cannot create or revoke them.

What a limited key can do

On its sandboxesGet them, their stats and timeline events; stop and resume them; run commands, move files, add and remove sandbox users; use the desktop, computer use and CDP; publish ports and log in over SSH.
403 forbiddenCreate, delete, fork, rename or resize sandboxes; templates, sites, the vault, webhooks and GitHub; listing API keys; billing, usage and the org's stats.
404 not_foundAny other sandbox, by ID, name or host label, exactly like a sandbox that does not exist.

A key's sandboxes are set when it is made. Once all of them are deleted, the key stops working; it never widens to the org. The key can run commands as root in its sandboxes, so limit it only to sandboxes whose secrets its holder may see.

Using a key

The API has no operation to create or revoke keys, so a leaked key can neither make successors for itself nor lock out your other keys. Revoking one on the account page stops it at once, together with the port sessions, desktop links and browser URLs it created.

pols CLI
# paste the key; it is read from standard input, never from a flag
$ pols login
# or approve a new key by email
$ pols login --email you@example.com
# the REST API takes it as a bearer token
$ curl -H "Authorization: Bearer $POLS_API_KEY" https://api.pols.so/v1/org
The Agent access page on my.pols.so: setup commands for connecting Claude Code, Cursor and other MCP clients, and the org's API keys with when each was created and last used.
Agent access on my.pols.so: connect an agent, and see every API key with its creation, last use and expiry.

€10 of usage for 30 days · No credit card

Questions

What happens to my keys if I leave the org?

Every key belongs to the person who made it and acts with their current role. When they leave or are removed, their keys of that org are revoked, so give automation a key made by someone who stays.

I lost a key. Can I see it again?

No. Its secret is shown once, when you create it, and pols keeps only a hash. Create a new key and revoke the old one on the account page.

Do revoked and expired keys count toward the limit of 25?

No. Only active keys count, those that are neither revoked nor expired.

Can a key limited to one sandbox cost money?

Yes. It can resume its sandboxes, which starts billed running time for your org, and publish their ports, also publicly. Its requests count against your org's rate limits.

Does pols logout revoke the key?

No. It only forgets the keys the CLI stored. If a key may have leaked, revoke it on the account page; it then stops working at once.

Start with one machine.

Install the CLI, sign up, and give your agent somewhere to work.

curl -fsSL https://pols.so/install.sh | sh

€10 of usage for 30 days · No credit card

Start my free trial

€10 of usage for 30 days · No credit card