polar-better-auth

Integrates Polar payments with Better Auth to automate customer management and billing.

1|1|Updated Mar 26, 2026
One-click install
npx skills add https://github.com/OmarHosamCodes/brainiac --skill polar-better-auth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: polar-better-auth
Source: https://github.com/OmarHosamCodes/brainiac/tree/main/.agents/skills/polar-better-auth
Command: npx skills add https://github.com/OmarHosamCodes/brainiac --skill polar-better-auth

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the integration of Polar payments into Better Auth, enabling zero-config billing, automatic customer syncing, and streamlined subscription management.

Core Features & Use Cases

  • Automatic Customer Creation: Syncs signup users to Polar customers.
  • Sync Deletion: Deletes Polar customer when user is deleted.
  • Reference System: Associates purchases with organizations/users.
  • Plugins: Checkout, Usage (Billing), Webhooks, and Customer Portal.

Quick Start

Install the Better Auth Polar integration, configure your Polar client, and enable the plugins to start auto-creating customers, syncing state, and handling usage-based billing.

Frequently Asked Questions about polar-better-auth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate Polar payments with Better Auth for subscription management?

You can integrate Polar payments with Better Auth by configuring a Polar client and enabling plugins for checkout, usage billing, webhooks, and the customer portal to automate customer syncing and subscription management.

Does Better Auth automatically sync new signups to Polar as customers?

Yes, integrating Polar with Better Auth enables automatic customer creation, syncing new signup users directly to Polar customers and associating purchases with their organization or user references.

What environment variables are required to configure Polar webhooks in Better Auth?

Configuring Polar webhooks in Better Auth requires setting the POLAR_ACCESS_TOKEN and POLAR_WEBHOOK_SECRET environment variables to authenticate and securely process billing events.

Can I handle usage-based billing and customer portals using Better Auth and Polar?

Yes, the Polar and Better Auth integration provides dedicated plugins for usage-based billing and a hosted customer portal, allowing you to manage metered usage and billing access directly.

What happens to a Polar customer when a user is deleted in Better Auth?

When a user is deleted in Better Auth, the integration automatically syncs the deletion to remove the corresponding Polar customer, keeping your billing database aligned.