> ## Documentation Index
> Fetch the complete documentation index at: https://polar.sh/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Benefits

> What customers get from you: benefit types, grants and revocation, and checking access.

A **benefit** is something a customer receives from you: usage credits, a feature flag, a shared Slack channel, a license key. Customers get benefits automatically when they buy a product, and you can also grant them to any customer directly, without a purchase. Other platforms call these **entitlements**.

Benefits are standalone objects. You create a benefit once and attach it to as many products as you like. Changing the benefit updates it everywhere.

## Benefit types

| Type | What the customer gets |
| - | - |
| [Meter Credits](https://polar.sh/docs/features/usage-based-billing/credits.md) | Units credited to a [meter](https://polar.sh/docs/concepts/usage.md) |
| [Feature Flag](https://polar.sh/docs/features/benefits/feature-flags.md) | A flag, with metadata, that your application checks |
| [Shared Slack Channel](https://polar.sh/docs/features/benefits/slack-shared-channel.md) | A Slack Connect channel with your team |
| [Custom](https://polar.sh/docs/features/benefits/custom.md) | Anything else, delivered by you |
| [License Keys](https://polar.sh/docs/features/benefits/license-keys.md) | A unique key, with optional activation limits and expiry |
| [File Downloads](https://polar.sh/docs/features/benefits/file-downloads.md) | Files to download from the Customer Portal |
| [GitHub Repository Access](https://polar.sh/docs/features/benefits/github-access.md) | An invitation to a private repository |
| [Discord Invite](https://polar.sh/docs/features/benefits/discord-access.md) | An invitation to a server, with roles |

## Grants

When a customer gets a benefit, Polar creates a **benefit grant**: the record that this customer holds this benefit, and why. A grant comes from a purchase or from you granting it directly.

```mermaid theme={null}
flowchart LR
  O[Order or subscription] -->|paid or active| G[Benefit grant]
  G -->|subscription ends, or one-time order refunded| R[Revoked]
```

* A **one-time purchase** grants its benefits for good, unless you revoke them when refunding the order.
* A **subscription** grants them while it's `active` or `trialing`, and revokes them when it ends.
* With [seat-based pricing](https://polar.sh/docs/features/seat-based-pricing.md), each team member who claims a seat gets their own grants.
* A **manual grant** gives a customer a benefit without any order: a trial of a feature, a goodwill gesture, a deal agreed outside checkout. It lasts until you revoke it. See [Grant or revoke a benefit manually](https://polar.sh/docs/features/benefits/introduction.md#grant-or-revoke-a-benefit-manually).

Polar delivers integrated benefits automatically. It generates the license key, sends the GitHub invitation or adds the Discord role, and removes access again on revocation. Custom benefits are delivered by you, and your application enforces feature flags and credits.

## Checking access in your application

Most benefits work without any code. For the ones your application enforces, like feature flags or credits, read the customer's granted benefits from the [customer state](https://polar.sh/docs/integrate/customer-state.md).

## In the dashboard, CLI or your agent

Benefits live under **Products → Benefits** in the dashboard. The same tasks work from your terminal and your agent. See the [CLI reference](https://polar.sh/docs/integrate/cli/reference.md) and the [MCP server](https://polar.sh/docs/integrate/mcp.md).

| Task | Dashboard | CLI | MCP operation |
| - | - | - | - |
| Create a benefit | **Products → Benefits → Create Benefit** | `polar benefits create` | `benefits_create` |
| List who holds a benefit | **Benefit Grants** on the benefit's page | `polar benefits grants <id>` | `benefits_grants` |
| List grants across customers | Per benefit only | `polar benefit_grants list` | `benefit_grants_list` |

## Learn more

| Resource | Description |
| - | - |
| [Benefits](https://polar.sh/docs/features/benefits/introduction.md) | Create and manage benefits |
| [Customer state](https://polar.sh/docs/integrate/customer-state.md) | Read a customer's granted benefits in one call |
| [Benefits API](https://polar.sh/docs/api-reference/current/benefits/list-benefits.md) | Manage benefits programmatically |
| [Benefit grants API](https://polar.sh/docs/api-reference/current/benefit-grants/list-benefit-grants.md) | List grants across customers |


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