> ## Documentation Index
> Fetch the complete documentation index at: https://vlyai-1c28d863.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Polar

> Open-source SaaS billing. Subscriptions, one-time charges, customer portal — friendly to indie devs.

[Polar](https://polar.sh) is an open-source alternative to Stripe focused on indie SaaS. Subscriptions, one-time charges, customer portal.

<Note>
  Full walkthrough being written.
</Note>

## When to pick

* You prefer open-source billing infrastructure.
* You want a developer-friendly alternative to Stripe.
* You're indie / bootstrapped.

## Setup

`POLAR_API_KEY` and `POLAR_WEBHOOK_SECRET` in vly secrets. Webhook URL: `/api/polar-webhook`.

## Related

<CardGroup cols={3}>
  <Card title="Stripe" icon="credit-card" href="/integrations/stripe">
    Comparison.
  </Card>

  <Card title="LemonSqueezy" icon="lemon" href="/integrations/lemonsqueezy">
    MoR alternative.
  </Card>

  <Card title="Subscription billing" icon="repeat" href="/recipes/subscription-billing">
    Patterns.
  </Card>
</CardGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.