Integrate Polar
Wire billing in from your agent, your framework or your terminal.
$ curl -fsSL https://polar.sh/install.sh | bashAgents included. Polar as a tool your agent can call.
A remote MCP server with OAuth, so there are no keys to paste. Three meta-tools keep the context small, so the agent only loads the operations it needs.
search"refund Lumen's last order" → 3 operationsThe agent describes what it wants to do and gets back the operations that fit.
inspectorders.list · refunds.createIt loads the exact inputs for the best matches, and nothing else.
executerefunds.create → 200It runs the operation with validated arguments and reads the result.
100 operations underneathproducts · customers · subscriptions · orders · benefits · refunds · metrics
Built for your framework. One file is the integration.
One file in your framework gives you a checkout route, a customer portal and verified webhooks.
Adapters
Clients
A checkout route in one fileTypeScript
Localhost, wired in. The whole API from the terminal.
Sign in, tunnel webhooks, fire events and call any endpoint without leaving the terminal.
- Built for agentsJSON on request
- Every eventThe full webhook catalog
- Shaped fixturesThe same IDs on every run
One REST API. Everything the dashboard can do.
Open the API reference/v1/checkoutsOpen a hosted checkout for any product
/v1/customersProfiles, external ids and full customer state
/v1/subscriptionsUpgrades, downgrades and cancellations, prorated
/v1/eventsIngest usage the moment it happens
/v1/metersAggregate events into billable numbers
/v1/ordersEvery invoice, receipt and refund
/v1/metricsRevenue, usage and cost over time
/v1/webhooksSigned deliveries for everything that happens
From usage to revenue. Integrate in an afternoon.
One integration covers metering, subscriptions, tax and payouts. Start on the free plan and move up when the numbers say so.