AFAdocs
Billing

Billing

AFA pricing tiers, usage metering, and Stripe billing.

Billing

AFA uses a tiered pricing model with Stripe for payment processing. Usage is metered per analysis and enhancement, with per-tier quotas and rate limits.

Tiers at a glance

CommunityDeveloperTeamEnterprise
MonthlyFree$99$499Custom
AnnualFree$79.20/mo$399.20/moCustom
Analyses/mo2002,00010,00050,000
Enhancements/mo0502502,000

All paid tiers save 20% with annual billing.

See Tier Comparison for the full breakdown including features, rate limits, overage pricing, and repo limits.

How billing works

  1. Sign up at portal.undercurrentholdings.com -- starts on Community (free)
  2. Upgrade via Stripe checkout (monthly or annual)
  3. Usage tracked per analysis and enhancement call
  4. Quota enforced -- Community tier is hard-capped; paid tiers allow overage

Usage metering

Every analyze and enhance call (API, CLI, or GitHub App) is recorded in the metering database. You can check your usage:

  • Portal: AFA > Account page
  • API: GET /v1/customer/usage
  • GitHub App: quota status shown in PR comments when nearing limits

Overage

TierAnalysis overageEnhancement overageHard cap?
CommunityN/AN/AYes (blocked)
Developer$0.05/analysis$0.50/enhancementNo
Team$0.04/analysis$0.40/enhancementNo
EnterpriseN/AN/ANo (SLA)

Community tier is hard-capped: when you hit 200 analyses, further requests are blocked until the next billing cycle. Paid tiers allow overage at the rates above.

Stripe integration

  • Checkout sessions created via POST /billing/checkout
  • Webhooks handle checkout.session.completed, customer.subscription.updated, customer.subscription.deleted, and invoice.payment_failed
  • Stripe webhooks auto-provision Unkey API keys on checkout and update rate limits on tier changes
  • Enterprise tier is not available through self-serve checkout (contact sales)

On this page