Polar is a free, open source finance & accounting project written in Python and released under Apache-2.0. It has 10,270 GitHub stars, 787 forks and 141 open issues, and was last pushed 3 hours ago. On this registry it ranks #5 of 34 tracked projects in Finance & Accounting, with 5 head-to-head comparisons available. It gained 15 stars over the last 6 tracked days.

What is Polar?

What it is

Polar is an open-source billing platform and payment infrastructure project for digital products, SaaS applications, and AI workloads. It is written in Python, licensed under Apache-2.0, and built around FastAPI, Next.js, React, and Turborepo. The project positions itself as a financial layer for software that needs to charge for tokens, agents, compute, subscriptions, and usage-based models.

The concrete problem it addresses is the billing boilerplate that product teams otherwise build and maintain themselves. Instead of assembling pricing logic, metering, checkout, receipts, dunning, customer accounts, tax handling, and merchant-of-record responsibilities from scratch, a team can adopt Polar as a payments platform. Its topics point to an ecosystem of digital products, subscriptions, merchant-of-record services, and API-driven payment workflows.

Key capabilities

  • Polar supports usage billing, subscriptions, seats, credits, trials, and discounts, so a product can compose the pricing model it needs.
  • It can meter tokens, API calls, agent runs, GPU seconds, and storage with event-level precision.
  • It provides checkout flows, realtime metrics, and worldwide tax handling as part of the billing platform.
  • It can operate as a merchant of record, handling receipts, customer accounts, dunning, sales tax, and VAT.
  • It supports AI workload billing patterns, including metered token billing on model calls, per-run agent billing with step-level granularity, and retries without double-billing.
  • It exposes a Public API, Webhook API, and official JavaScript and Python SDKs for integration.

Who uses it and how

  • AI startups use it to turn usage into revenue by charging for tokens, agents, and compute without building internal billing infrastructure.
  • SaaS and digital-product teams use it to ship pricing models such as subscriptions, seats, credits, trials, and discounts.
  • Developers integrate Polar into docs, sites, or services through the Public API, Webhook API, and JavaScript or Python SDKs.
  • Product owners can rely on merchant-of-record workflows to offload receipts, customer accounts, dunning, sales tax, and VAT.

Getting started

The README points to the website, docs, and API reference, and lists Starter, Pro, Growth, and Scale plans. For local development, it directs users to DEVELOPMENT.md, while integration can begin with the Public API, Webhook API, and official JavaScript or Python SDKs.

When to use it — and when not to

Polar is a good fit when an AI or SaaS product needs metered billing, merchant-of-record handling, and API integration rather than building billing infrastructure internally. It is less suitable when a team requires a complete self-hosted installation guide from the README, because the excerpt gives pricing and development pointers but no Docker images, package-manager commands, or required database, storage, and SMTP services. The repository metadata shows a zero-year age, zero listed contributors, and 141 open issues, which may make teams cautious about adopting it for critical payment workflows.

project readme (upstream, from github) — read inline

Polar - An open source monetization platform for developers | Product Hunt Polar - An open source monetization platform for developers | Product Hunt


Website   •   Docs   •   API Reference

Follow @polar_sh


Polar: A billing platform for the intelligence era

Turn usage into revenue. Polar is the financial layer for a new generation of intelligent software, built for AI startups that need to charge for tokens, agents, and compute without building billing infrastructure from scratch.

  • Ship any pricing model in an afternoon. Usage billing, subscriptions, seats, credits, trials, and discounts. Compose them however your product charges.
  • Meter what matters. Bill tokens, API calls, agent runs, GPU seconds, and storage with precision down to the event.
  • Checkouts that convert, realtime metrics, and worldwide tax handled for you.
  • We're the merchant of record, so we take on the billing boilerplate (receipts, customer accounts, dunning) and the headaches (sales tax, VAT) on your behalf.

Built for AI workloads

  • AI completions: wrap any model with metered token billing on every call.
  • Autonomous agents: charge per run with step-level granularity, retries without double-billing.
  • GPU & compute: meter fine-tuning, hosted inference, and training runs by the second.

Pricing

  • Starter (free): 5.00% + 50¢ per transaction
  • Pro: 3.80% + 40¢ per transaction
  • Growth: 3.60% + 35¢ per transaction
  • Scale: 3.40% + 30¢ per transaction
  • Eligible startups can apply to the Startup Program for a year on our most generous plan
  • Additional fees may apply. Read more

Roadmap, Issues & Feature Requests

💬 Feature requests & bugs can be reported through the "Feedback" button found in the sidebar, bottom left of your Polar dashboard.

🔓 Found a security vulnerability? We greatly appreciate responsible and private disclosures. See Security

Polar API & SDK

You can integrate Polar on your docs, sites or services using our Public API and Webhook API.

We also maintain SDKs for the following languages:

Contributions

Our DEVELOPMENT.md file contains everything you need to know to configure your development environment.

Contributors

♥️🙏 To our pyproject.toml friends: FastAPI, Pydantic, Dramatiq, SQLAlchemy, Githubkit, sse-starlette, Uvicorn, httpx-oauth, jinja, blinker, pyjwt, Sentry + more
♥️🙏 To our package.json friends: Next.js, TanStack Query, tailwindcss, openapi-typescript-codegen, axios, radix-ui, cmdk, framer-motion + more
♥️🙏 To IPinfo that provides IP address data to help us geolocate customers during checkout.

License

Licensed under Apache License, Version 2.0.

Frequently asked questions

Is Polar free to use?

Polar is open source under the Apache-2.0 licence. There is no licence fee and no seat count — you can self-host it or, where the project offers one, pay a vendor for a managed version instead.

What does Polar do?

Modern payment infrastructure for digital products and SaaS

What is Polar written in?

Polar is primarily written in Python. Its source is publicly available at https://github.com/polarsource/polar, and it has 10,270 GitHub stars.