Back to directory

Business Software · Finance & Accounting

Polar

Open billing infrastructure for subscriptions, usage, and digital products

Polar is an Apache-2.0 billing platform for software companies selling subscriptions, digital products, and metered services. Its hosted Merchant of Record product offers public transaction pricing, while the repository can be deployed independently for teams that need to operate the application and supporting services themselves.

Key facts

License
Apache-2.0
Main language
Python, JavaScript, TypeScript
Maintainer
Polar and community contributors
First released
2023
Latest release
No unified product release; @polar-sh/cli@3.0.0, October 16, 2026
GitHub stars
10.4k, October 2026
Hosted option
Starter free at 5% + $0.50 per transaction; paid plans from $20/month

What Polar is

Polar is an open-source billing platform aimed at software companies, AI products, and developers selling digital goods. The repository was created in 2023, and its README lists 10,395 stars, 802 forks, and contributors led by frankie567, emilwidlund, zegl, and birkjernstrom. Polar is maintained by Polar and its open-source contributors. The project describes itself as a financial layer for software that charges for subscriptions, seats, credits, tokens, agent runs, GPU time, and storage. Its hosted business is also a Merchant of Record, handling checkout, receipts, customer accounts, failed payments, sales tax, and VAT. The repository does not name an earlier original release year beyond its 2023 creation date, so this directory records 2023 as the earliest documented project year.

How it works

A typical Polar workflow begins with a product, price, and customer checkout. Developers can combine recurring subscriptions with prepaid credits and metered usage, then send usage events for tokens, API calls, agent runs, GPU seconds, or storage. Meters support unit, volume, and graduated pricing, with optional caps and billing cycles that can differ from the subscription interval. Customers receive a portal for subscriptions, invoices, and estimated usage. Polar also exposes a Public API and Webhook API, plus JavaScript and Python SDKs. The README describes automated delivery for license keys, file downloads, GitHub repository access, and Discord roles. That combination targets teams that want billing, access delivery, and customer lifecycle handling in one system.

Architecture and recent releases

The repository contains a Python backend using FastAPI and a JavaScript and TypeScript web application using Next.js. The documented Docker development stack includes PostgreSQL 15.1, Redis, MinIO for S3-compatible storage, background workers, and optional Prometheus and Grafana services. The API runs migrations at startup, while workers process queues for priorities, Tinybird, invoices, and receipts. The project publishes multiple package releases rather than one unified application version. Recent 2026 releases include CLI 3.0.0 on October 16, checkout 0.4.3, and several framework adapters at version 1.1.0 on October 6. The October CLI release renamed webhook commands, added organization access tokens, and added JSON output controls. This release structure means operators should track the specific packages they depend on when planning upgrades, rather than relying on one application version.

License and pricing

Polar is licensed under Apache-2.0. That license permits commercial use, modification, redistribution, and private operation, subject to its notice and patent terms. The repository does not describe a separate proprietary open-core edition. Polar's hosted offering is a Merchant of Record service with a free Starter plan charging 5% plus $0.50 per transaction. Pro costs $20 per month at 3.8% plus $0.40, Growth costs $100 at 3.6% plus $0.35, and Scale costs $400 at 3.4% plus $0.30. International cards add 1.5%, and disputes cost $15. Hosted service charges cover more than software deployment, including tax handling, payment operations, and payouts. Operators must distinguish software permissions from the hosted commercial service.

Limitations and how it compares

Polar's main limitation is operational scope: self-hosting the code does not reproduce the hosted Merchant of Record, tax, payment, or payout service. Its Docker development setup also expects PostgreSQL, Redis, object storage, and at least 8 GB of Docker memory. Compared with Paymenter, Polar is more focused on software products, usage billing, and Merchant of Record operations, while Paymenter centers on hosting services. Compared with OpenMeter, Polar includes checkout, customer accounts, product delivery, and subscriptions, while OpenMeter concentrates on usage metering. Stripe Billing offers a larger proprietary payments service, but with less control over source code. Pick Polar if open licensing and software-focused billing matter more than a turnkey payment provider.

Main features

  • Usage metering. Records tokens, API calls, agent runs, GPU seconds, and storage, then applies unit, volume, or graduated pricing.
  • Subscription billing. Combines recurring products with seats, credits, trials, discounts, and metered charges within configurable billing periods.
  • Merchant of Record. Polar's hosted service handles checkout, receipts, customer accounts, sales tax, VAT, dunning, disputes, and payouts.
  • Automated delivery. Delivers license keys, files, GitHub repository access, and Discord roles after successful purchases.
  • Developer APIs. Provides Public API, Webhook API, JavaScript SDK, Python SDK, and a command-line client for integrations.
  • Customer portal. Lets customers view subscriptions, invoices, estimated meter charges, and account information through a hosted portal.

Self-hosting Polar

Polar's documented local deployment uses Docker Compose through the dev docker command. The stack includes the Python and FastAPI API, a background worker, the Next.js web application, PostgreSQL 15.1, Redis, and MinIO or another S3-compatible store. Prometheus and Grafana are optional. The instructions recommend at least 8 GB of Docker memory, but they do not publish a production minimum hardware specification. Volumes preserve PostgreSQL and MinIO data when containers stop, while cleanup removes them, so operators must back up database and object-storage data before destructive maintenance. Production differs from development by using managed database and S3 services, disabled hot reload, and production images.

Strengths

  • Apache-2.0 licensing permits commercial modification and redistribution.
  • Usage billing supports tokens, credits, subscriptions, seats, and GPU time.
  • Hosted plans publish transaction rates and monthly fees.
  • The repository includes APIs, SDKs, webhooks, and delivery integrations.

Drawbacks

  • Self-hosting does not include Polar's hosted payment, tax, or payout operations.
  • The documented stack requires PostgreSQL, Redis, object storage, and multiple application services.
  • The project publishes package releases instead of one clear unified application version.

What teams replace with it

Teams usually evaluate Polar when they want to move off Stripe Billing, Paddle, Lemon Squeezy.

For side-by-side commercial comparisons, browse our alternatives hub.

Open-source alternatives to Polar

Frequently asked questions

Is Polar free to use?

The Polar repository is free software under Apache-2.0, so teams can inspect, modify, and run the code commercially. Polar's hosted Merchant of Record service has a free Starter plan, but it charges 5% plus $0.50 per transaction. Paid hosted plans cost $20, $100, or $400 per month and reduce the variable transaction rate. Self-hosting still requires operating the application and infrastructure.

Can companies use Polar commercially?

Yes. Apache-2.0 permits commercial use, private modification, redistribution, and incorporation into commercial products, subject to the license notice and patent provisions. Polar does not describe a separate source-available restriction or proprietary open-core split in the repository. Hosted service economics are separate from software licensing, and hosted customers pay transaction fees, monthly plan fees, and applicable additional charges.

What does self-hosted Polar require?

The documented Docker environment runs an API, worker, web application, PostgreSQL, Redis, and MinIO for S3-compatible storage. Prometheus and Grafana are optional. The instructions recommend allocating at least 8 GB of Docker memory, but they do not publish a production hardware minimum. Operators should back up PostgreSQL and object-storage data before upgrades or cleanup because cleanup removes volumes.

How does Polar compare with OpenMeter?

Polar covers product catalogs, checkout, subscriptions, customer portals, delivery, webhooks, and usage billing. OpenMeter is more narrowly centered on event ingestion, meters, and usage-based billing infrastructure. Polar is a closer fit for a software seller that needs customer purchase flows and digital access delivery. OpenMeter is a better fit when an existing payment system already handles checkout and subscription operations.

Does self-hosted Polar keep payment and tax data private?

Self-hosting gives operators control over the application deployment, database, Redis instance, and object storage. It does not reproduce the hosted Merchant of Record service, payment processing relationships, tax handling, or payout operations. Teams must decide which integrations process customer data and secure their own secrets, backups, network access, database, object storage, and webhook endpoints.

Similar projects to compare

Sources

Last updated 2026-10-22.