Skip to main content
Polar is built so a coding agent can do what you’d do in the dashboard: create products, look up customers, test webhooks and write the integration code. There are five ways to give your agent access. Most setups use the first one.

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 to polar, 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.sh and a sandbox access token.
When you’re ready, follow Go live.

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.
The MCP operations page lists every operation that is available.

Two API versions

The SDK and cURL examples in these docs use API version 2026-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.

Learn more