polar.sh/auth.md. Point your agent there:
Prompt
How it works
1
The agent signs up
The agent registers anonymously with a name you’ll see later. It gets an identity assertion (valid 30 days) and a claim token (valid 30 days, returned once).
2
The agent builds
The agent exchanges its assertion for an access token that lasts one hour, and repeats that when it expires. It creates one organization and sets it up.
3
The agent asks for your email
When it’s done, the agent asks for your email and starts a claim. It gives you a link and a three-word code, like
amber-river-lemon.4
You claim it
You open the link, sign in or create an account with that email, and enter the code. The organization becomes yours.
5
You go live
When you’ve tested in the sandbox, the agent repeats these steps in production and you claim that organization too. See Go live.
What the agent can do before you claim it
An agent can create one organization. Until you claim it, it can only set up the catalog:
In the sandbox, checkout works right away with test cards. In production, the organization can’t take payments until you claim it and pass the account review.
Claim the agent
The agent gives you a link and a code in one message, for example:Open this link, sign in to Polar with jane@example.com, and enter this code: amber-river-lemon
- Open the link. It goes to Finish setup in the Polar dashboard.
- Sign in, or create an account, with the email the agent asked for. Only that account can claim it.
- Enter the code under Claim code and click Complete setup.
After the claim
The agent receives a new identity assertion and an access token for your account. Everything issued to it before the claim stops working. It keeps using one-hour access tokens from then on. If the agent loses access, connect it another way: the MCP server or the Polar CLI.Go live
The sandbox and production are separate: agents, organizations, products, access tokens and accounts don’t carry over. When you’re ready to take real payments, ask the agent to go live. It:- Signs up again in production and recreates the products, benefits and meters.
- Asks for your email and gives you a new link and code. Claim it with your production Polar account, the same way as in the sandbox.
- Switches the app to production credentials and the production API.
Manage your Pricing as Code Beta
Because the sandbox and production catalogs are separate, we recommend asking the agent to set up Pricing as Code withpolar config init. The same billing config in your repository works for both organizations: the agent publishes it to sandbox first, then to production once you’ve tested it, one organization at a time. Every later pricing change is a pull request that ships as a new catalog version.
Prompt

