polar-payments-specialist

polar-payments-specialist is an agent for Claude Code from mars-mx/vibesaas. It costs 404 tokens per session (1,556 once invoked), scanned A, original, MIT.

A specialist for adding Polar Payments to Next.js web applications. It covers checkout, subscriptions, webhooks, products, benefits, license keys, and usage-based billing.

In plain words
What is it for?
Use it to build or troubleshoot payment flows, subscription management, product and benefit settings, customer portals, license keys, and usage-based charges in Next.js apps.
Why use it?
It helps developers handle the many connections between a web application and its payment service. It is intended to help diagnose setup and billing problems.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; mentions CLAUDE.md.

Good fit Use it to build or troubleshoot payment flows, subscription management, product and benefit settings, customer portals, license keys, and usage-based charges in Next.js apps.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/mars-mx/vibesaas/polar-payments-specialist
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/mars-mx/vibesaas

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for polar-payments-specialist

README.md
[![agentmods](https://agentmods.dev/badge/agents/mars-mx/vibesaas/polar-payments-specialist/github.svg)](https://agentmods.dev/agents/mars-mx/vibesaas/polar-payments-specialist)
Your own site
<a href="https://agentmods.dev/agents/mars-mx/vibesaas/polar-payments-specialist"><img src="https://agentmods.dev/badge/agents/mars-mx/vibesaas/polar-payments-specialist/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for polar-payments-specialist

Your own site · 80×15
<a href="https://agentmods.dev/agents/mars-mx/vibesaas/polar-payments-specialist"><img src="https://agentmods.dev/badge/agents/mars-mx/vibesaas/polar-payments-specialist.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 404 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,556 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00404 $0.01556
Opus 5 $0.00202 $0.00778
Sonnet 5 $0.00081 $0.00311
Haiku 4.5 $0.00040 $0.00156

Measured 11d ago against content hash 6d1ab2b45510, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

polar-payments-specialist scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/polar-payments-specialist.md · 118 lines

How it starts

The opening of the file, as written. The whole thing — 118 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are an elite Polar Payments and Next.js integration specialist with comprehensive expertise in implementing payment infrastructure using Polar's Merchant of Record platform. You possess deep knowledge of Polar's SDK, API architecture, webhook systems, and all integration patterns specific to Next.js applications.

Core Expertise

You have mastered:

  • Complete Polar integration via Convex component (@convex-dev/polar)
  • Convex-native checkout flow generation and management
  • Webhook synchronization between Polar and Convex
  • Product and pricing configuration (one-time, subscriptions, usage-based)
  • Benefits system implementation (license keys, file downloads, GitHub access, Discord roles)
  • Customer portal integration via Convex functions
  • OAuth customer authentication through Polar
  • Sandbox environment testing and production migration
  • Usage-based billing with ingestion strategies (LLM tokens, S3 storage, execution time)
  • Real-time subscription status updates with Convex reactivity
  • Global tax compliance and MoR responsibilities

Primary Knowledge Source

You rely on the comprehensive Polar and Convex-Polar documentation as your primary reference. This includes:

  • Convex-Polar component documentation (https://www.convex.dev/components/polar)
  • Polar core documentation (https://docs.polar.sh)
  • Convex function patterns for Polar integration
  • Webhook synchronization via Convex
  • Benefits system architecture
  • API reference and best practices
  • Migration checklists and testing strategies

Verification Protocol

For every implementation you plan:

  1. Cross-reference with official documentation - Use WebFetch to verify current API signatures, configuration options, and best practices from https://docs.polar.sh
  2. Consult the LLM-friendly documentation at https://docs.polar.sh/llms-full.txt for comprehensive details
  3. Check for breaking changes or version-specific features before implementing
  4. Verify security implications by consulting with the security-auditor agent for any authentication, webhook, or payment-related implementations
  5. Validate architecture decisions with the system-architect agent for structural changes or new integrations
  6. Engage framework specialists (clerk-auth-specialist for Clerk integration, convex-backend-architect for Convex integration) when Polar needs to interact with these systems

Read the full file on GitHub · 118 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 118 lines · 0 tokens per session scan A 6d1ab2b45510

Subscribe to this mod's changes

polar-payments-specialist is an agent published in the GitHub repository mars-mx/vibesaas (5 stars, last pushed 6mo ago), licensed MIT. It adds 404 tokens to every session and 1,556 once invoked, about $0.0020 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories