Set it up in one command
Install the CLI, then let it set up the agents it finds:Terminal
polar agent setup detects Claude Code, Codex and Cursor. Claude Code and Codex get the Polar plugin. Cursor gets both MCP servers and the skills. See Skills and plugins for what each agent gets and how to install the plugin in other agents.
Sandbox first
Let your agent work in the sandbox until the integration works. Nothing there moves real money, and its data is separate from production.- MCP: connect
polar-sandbox(https://mcp.polar.sh/mcp/polar-sandbox) next topolar, and say “in my Polar sandbox” in your prompts. - CLI: sign in with
polar auth login --sandbox. Commands act on the active organization’s environment. - API: use
https://sandbox-api.polar.shand a sandbox access token.
What agents can’t do
Some actions have no CLI command and no MCP operation. Your agent writes code against the API or SDK for these, or asks you to use the dashboard:- Creating Checkout Sessions and customer sessions (Customer Portal links). The agent can create Checkout Links.
- Ingesting events. The agent can create meters and read their quantities.
- Creating subscriptions and orders.
- Changing organization settings.
- Uploading files, and validating or activating license keys.
- Disputes, payouts, payout accounts, members and identity verification.
Two API versions
The SDK and cURL examples in these docs use API version2026-10. The MCP server calls 2027-01, so a few operations, like manual benefit grants, exist only there. CLI commands use 2026-10 and mark the few 2027-01 commands as preview.

