Billing (cloud mode)

Billing is for hosted deployments only. With BILLING_ENABLED unset (the self-host default), reviews have no quota, the Stripe webhook endpoint returns 404, and the billing page says billing is off.

Plans

Use left and right arrow keys to scroll columns. Home shows the first column; End shows the last.

FeatureFreeStarterPro
Price$0, no card (existing workspaces only)BILLING_SEAT_PRICE_LABEL per seat (we sell $12/month)BILLING_PRO_PRICE_LABEL per seat (we sell $24/month)
Included model usage per monthBILLING_FREE_USAGE_USD per workspace (default $3)BILLING_USAGE_PER_SEAT_USD per seat (default $6), pooledBILLING_PRO_USAGE_PER_SEAT_USD per seat (default $12), pooled
Extra usagenoneup to the admin capup to the admin cap
Fix prompts, the local bridge, your own cloud agents and Devin✓✓✓
OpenReview agent fixes (fix pull requests) per monthBILLING_STARTER_FIXES_PER_SEAT per seat (default 5), pooledBILLING_PRO_FIXES_PER_SEAT per seat (default 20), pooled
Your own model key (its calls are not metered)✓✓
Deep reviews (deep tier, agentic and hypothesis engines, agent budgets, model overrides), generated reproduction tests✓
Requirements from Linear, Jira, Confluence and Notion; learning conventions✓
API keys, analytics older than 30 days, SSO, the audit log✓

The plan catalog is src/plans.ts. Security checks, every provider, and the CLI and MCP signed in through the browser are on every plan. With billing off every feature is unlocked.

Stripe setup:

Usage

Usage is the inference cost of the workspace's model calls (reviews, chat, Slack answers, fixes, knowledge, indexing embeddings), priced by INFERENCE_PRICES or the built-in prices, so pricier models use it faster. Workspaces that bring their own model key are not metered.

Operators

OPERATOR_GITHUB_IDS on Convex lists the operators (super admins) by numeric GitHub user id, comma-separated; look one up with gh api users/<login> --jq .id. Only this setting grants it: nothing a user can edit does, and a GitHub login (which can be renamed and reused) never does.

Model choice

Workspace and team defaults and repository settings pick the review model from the operator's priced list: the INFERENCE_PRICES entries for LLM_PROVIDER (for example openrouter:anthropic/claude-sonnet-5-5). Chat, Slack answers, fixes and knowledge use the workspace default. A saved model that leaves the list falls back to the operator's LLM_MODEL. Only list models that support tool calls and response_format JSON.

Choosing a plan during setup

When the deployment bills workspaces, guided setup adds a Choose your plan step right after the workspace. Every step uses the same total (wizardProgress in src/onboarding-steps.ts): 10 with the plan step, 9 without it. The step shows the Starter and Pro cards and the seat count:

The no-card Starter trial clock starts when an admin chooses Start 14-day trial; each workspace gets one, and it cannot be restarted. Checkout for Pro (or to add a card) carries any remaining trial into the subscription (subscription_data.trial_end), so the card is not charged until the trial ends. Stripe requires a trial end at least 48 hours away, so a trial with less time left is charged at Checkout. Without billing, or without a Stripe secret, the step does not exist and setup has one step fewer.

The dashboard's trial banner (days left, Add Payment Method) shows for the no-card Starter trial the whole time it is running, and for a Stripe trialing subscription with no default payment method on file: neither the subscription's default_payment_method (from customer.subscription.*) nor the customer's invoice_settings.default_payment_method (from customer.updated, sent when a card is added in the Customer Portal). A subscription from before these were recorded counts as having one, because Checkout always collects a card. With a card on file the banner returns for the last 3 days of the trial, saying when the card will be charged, with Manage billing. Also turn on Stripe's own trial-ending reminder email (Stripe Dashboard → Settings → Billing → Subscriptions and emails), in test and live mode.

From 80% of the included usage, or when reviews are blocked, every dashboard page shows a usage banner with an estimate of the reviews left (this workspace's average review cost over the last 30 days, at least five reviews, else $0.065). Admins get Upgrade (Free) or Manage usage; members get Ask an admin, which emails owners and admins with a verified notification address, at most once a day per member.

Pricing-page buttons for Starter and Pro send sign-up to /dashboard/onboarding/plan?intent=<plan>; the intent survives workspace creation, so the plan step opens with that plan's Checkout as the main action.

Conversion events (conversionEvents, see convex/conversions.ts) add checkout_started, first_paid (the first invoice.paid with money in it; subscribed includes trials), paywall:<feature> (a deep review or agentic engine capped, repro tests or linked tickets skipped, a fix PR asked for on Free) and upgrade_requested. Operators see them, for the last 30 days, on /dashboard/operator.

Setup can't be skipped. Until a workspace finishes it, opening the dashboard takes owners and admins back to setup, and every dashboard page shows a Setup isn't finished bar (members see that an admin is completing it). Setup finishes only from its last step (onboarding.complete), which needs the plan and a selected repository that has started indexing. Workspaces that used the former Exit setup before any repository was indexing are reopened once per deployment with npx convex run onboarding:reopenSkippedSetups '{"confirm":"reopen-skipped-setups"}' --prod.

When a review is blocked, it is recorded as failed with a Billing: reason, visible on the pull request's review page. Blocked reviews are also counted on Organization Settings → Billing & Usage.

Enterprise contracts

Enterprise is sold by contract, not through Checkout. It bills active contributors: the distinct authors of pull requests that got a completed review in a UTC month. Bots and the logins a contract lists as non-billable never count. A customer commits to a number of contributors for a year and is invoiced.

What the customer receives:

Two modes:

Stripe objects (one Product per tier, prices per contract):

Creating a contract: an operator opens Operator → Enterprise contracts, enters the terms, checks Preview and chooses Create contract. The preview is computed by the app before tax; it does not call Stripe. The workspace moves to Enterprise when the customer.subscription.created webhook arrives on the contract's first day, and a live Pro subscription is replaced then. Every step is recorded in the operator log and the workspace audit log (billing.contract_draft, billing.contract_created).

Moving from Starter or Pro: choose the workspace and Preview: the form shows its current subscription and its billable contributors for the last three months, so the commitment comes from data rather than seats. Creating a contract that starts next month sets the old subscription's cancel_at to the contract's first day with no proration, so it bills normally until then. A contract that starts on the 1st of the current month ends the old subscription at once and credits its unused time. The audit log records billing.migrated_from_pro. Features never drop in between: Enterprise holds every Pro feature, and if the old subscription ends a moment before the new one starts, the contract takes over at once (billing.contract_takeover in the logs).

Renewal and end of term: 60 and 30 days before a contract ends, the workspace's owners and the operators get one email each, unless a renewal is signed. To renew, use the same form for that workspace: it creates the next year's contract, which must start the day the term ends, with its own prices. Without a renewal the subscription cancels at the end of the term and the workspace is left as after a cancelled Pro subscription. The term's last month of contributors is reported at 23:30 UTC on its last day, before the subscription ends.

What customers see: Organization Settings → Billing & Usage shows the contract term, this month's active contributors against the commitment, and the included usage (or "Your own model key, nothing metered"). Admins also see the price and the list of contributors, with bots marked not billed. There is no Checkout, plan switch or seat count. The billing portal opens with STRIPE_ENTERPRISE_PORTAL_CONFIGURATION_ID when it is set: create that portal configuration in Stripe with invoices and payment details on, and cancellation and plan switching off.

Pricing page: the Enterprise card shows only when BILLING_ENTERPRISE_CONTACT_URL is set on the web app (a mailto: or https: link). BILLING_ENTERPRISE_PRICE_LABEL is its price text, for example "From $22 per active contributor".

Enterprise-only features:

Own cloud account (Own-key mode, and any plan with its own model key): besides Anthropic, OpenAI and OpenRouter keys, a workspace can run on its own AWS Bedrock, Azure OpenAI or Google Vertex AI account (Organization Settings → API Keys → Model provider key). All three are called in the OpenAI Chat Completions format, and none of those calls is metered.

Stripe setup (once):

  1. Create the product, the contributors meter and the shared overage price, and set the four settings above on Convex.
  2. In Billing settings, leave a past-due invoiced subscription past due. The contract's grace days decide when reviews pause.
  3. In Invoice settings, give subscription-cycle invoices with a metered price at least 24 hours before they finalize (Stripe allows up to 72), so the monthly contributor report always lands first.
  4. Turn on invoice reminder emails.

Stripe customers

Every workspace becomes a Stripe customer when it is created, so the Stripe Dashboard lists all of them. The customer is named after the workspace and carries its first owner's verified email (if there is one) and metadata.organizationId. The workspace keeps the ID in organizations.stripeCustomerId. Checkout reuses it, and linking it there (billingAccounts.customerId) is still what starts the trial and shows the billing portal. Operators' workspaces get no customer.

Creating the customer is a scheduled job (billingJobs.createCustomer), so signup never waits on Stripe. If Stripe is down, the job logs billing.customer_failed and does not retry: Checkout still creates a customer, and the backfill below picks the workspace up.

To give existing workspaces a customer, count them first, then create them. Rerunning is safe:

npx convex run billing:backfillCustomers '{}' --prod
npx convex run billing:backfillCustomers '{"confirm":"create-stripe-customers"}' --prod

Deleting a workspace leaves its Stripe customer in place.

Discounts and free months

Checkout shows an Add promotion code box. To give a prospect a free month:

  1. Coupon: create one in Stripe (Product catalog → Coupons): 100% off, duration Multiple months = 1, limited to the Starter product.
  2. Promotion code: give the coupon a single-use code (limit 1 redemption, with an expiry date) and send that code to the prospect. Reuse the coupon and create one code per prospect.

The prospect enters the code at Checkout, from the setup plan step or Organization Settings → Billing & Usage. Their first billed month is free for every seat. Any remaining trial still comes first, so the first charge falls one month after the trial ends, or one month after Checkout if the trial is over.

Referred workspaces: while the referral discount applies (a referred workspace that has not paid yet), Checkout carries the referral coupon instead and shows no promotion-code box, because Stripe takes only one of the two. Don't send such a prospect a code: after they subscribe, add the free-month coupon to the subscription as below and check that the referral coupon is still on it.

Existing subscriptions: in the Stripe Dashboard, open the subscription and choose Actions → Update subscription → Add coupon. The discount applies from the next invoice.

Deactivating: archive a promotion code to stop new redemptions. Deleting a coupon also stops them, and keeps the discounts already applied.

Setup (operator)

  1. Sandbox: use a Stripe sandbox (or test mode) for setup and testing.

  2. Product and price: create the Product "OpenReview Starter" with a recurring, per-unit monthly price. Set its ID as STRIPE_SEAT_PRICE_ID. Each future tier gets its own Product.

  3. Webhook: add the endpoint https://<convex-site>/stripe/webhook on API version 2026-08-26.dahlia (STRIPE_API_VERSION in src/billing.ts) for these events:

    • checkout.session.completed
    • customer.subscription.created, customer.subscription.updated and customer.subscription.deleted
    • customer.updated (a card added in the Customer Portal). An endpoint created before this event was added must be edited in the Stripe Dashboard to subscribe to it too, in test and live mode.
    • invoice.payment_failed and invoice.paid
    • with the referral program: charge.refunded, charge.dispute.created and charge.dispute.closed

    Set its signing secret as STRIPE_WEBHOOK_SECRET.

  4. API key: create a restricted key (rk_test_…) with write access to Customers (every new workspace becomes one), Checkout Sessions, Customer portal and Subscriptions. Set it as STRIPE_SECRET_KEY on Convex (a sk_test_… key also works).

    • With the referral program, also give it read access to Charges, Disputes, Invoices and Invoice payments. Customers write already covers customer balance transactions (referral credit). Permission names vary in the Dashboard: make one credit and one refund in the sandbox and check the key's request log for denied calls.
  5. Turn on billing: set BILLING_ENABLED=true on Convex, and on the web app so the landing page shows pricing and the setup step count is right. Live keys (rk_live_…/sk_live_…) are refused unless BILLING_ALLOW_LIVE=true.

  6. Customer Portal: turn it on in Stripe so admins can manage their payment method, invoices and cancellation. Turn off quantity changes, because seats follow workspace membership.

  7. Tax: turn on Stripe Tax only after you have an active tax registration; until then Stripe collects no tax.

On Vercel, Stripe can also be provisioned from the Vercel Marketplace. The keys still belong in the Convex environment, because Convex runs Checkout, the portal and webhook handling.

Switching from test to live

  1. Activate payments on the Stripe account (business details and bank account) and fill in Settings → Public details: business name, support email and statement descriptor. Then, in live mode, create the same Product and Price, webhook endpoint (same events and API version) and portal configuration as in test mode, with the site's /privacy and /terms links in the portal.
  2. Live keys: create a live restricted key (rk_live_…) with the same permissions. Set it as STRIPE_SECRET_KEY, and the live endpoint's signing secret as STRIPE_WEBHOOK_SECRET.
  3. Convex settings: set STRIPE_SEAT_PRICE_ID to the live price and BILLING_ALLOW_LIVE=true.
  4. Drop test links: test customers and subscriptions do not exist in live mode, so every workspace must drop its Stripe links. Run this once:
    npx convex run billing:forgetStripeLinks '{"confirm":"switch-stripe-mode"}' --prod
    
    A workspace that keeps Free returns to it; any other has no allowance until its next Checkout, which creates a live customer with a fresh trial. Then give every workspace a live customer with the backfill under Stripe customers.
  5. Old webhook: cancel the test subscriptions and disable the test-mode webhook endpoint, so the sandbox stops sending events (and retries) that would now fail signature checks.
  6. Referrals: commissions, credits and payout accounts don't record the Stripe mode. Keep REFERRALS_ENABLED off on a deployment until it is live. A deployment where any test invoice earned a commission (any referralCommissions row) must not be switched to live, even after voiding them: its referrals stay marked as paid, so live Checkout gives no coupon, the commission window counts from the test invoice and the conversion email is not sent again. Use a separate deployment. If referrals were on but no commission was ever earned, only delete its referralPayoutAccounts rows (test acct_… IDs don't exist in live mode). Add the three charge events to the live webhook endpoint too, and enable Connect in live mode.

Referral program

Off unless REFERRALS_ENABLED=true and BILLING_ENABLED=true, on both Convex and the web app. Every signed-in user gets a link (/r/<code>) under Personal Settings → Referrals. A new account created through it is credited to the link's owner, and so is the first workspace it creates.

Setup

  1. Coupon: create a coupon, for example referral-20-3mo with percent_off=20, duration=repeating and duration_in_months=3. Set its ID as STRIPE_REFERRAL_COUPON_ID on Convex, and describe it in REFERRAL_DISCOUNT_LABEL on the web app (for example 20% off the first 3 paid months). Never create promotion codes for it.
    • The coupon's months start when the subscription is created, which is the start of a carried trial. With BILLING_TRIAL_DAYS under 28, 3 months cover 3 paid monthly invoices. For longer trials, set duration_in_months to 2 + ceil((trialDays + 1) / 28) (couponMonthsNeeded(3, trialDays) in src/referrals.ts) and word the label "at least the first 3 paid months".
    • max_redemptions and redeem_by are optional. When the coupon is used up, expired or deleted, Checkout continues without the discount and logs {"event":"referral.coupon_unavailable"}.
    • Annual prices (pricing-tiers P3.2): a repeating coupon discounts the whole first annual invoice. Use a separate once coupon for annual prices, or none.
  2. Settings: set REFERRALS_ENABLED=true on Convex and on the web app. REFERRAL_RATE_BPS, REFERRAL_MONTHS and REFERRAL_HOLD_DAYS are read on Convex.
  3. Deploy order: npx convex deploy --cmd '<build>' builds the web app first and pushes the Convex functions afterwards, and Vercel promotes the build only after both succeed, so forward deploys are safe. Never roll Convex back past the referral sign-up release (Phase 1) without first setting REFERRALS_ENABLED=false on the web app: the web app would send referral codes to functions that no longer accept them, and referred sign-ins would fail.

Cash payouts (Stripe Connect)

Setup:

  1. Connect: enable Connect on the platform account (Accounts v2), complete the platform profile and the Express branding (name, icon, color), and acknowledge that the platform is liable for connected-account losses (losses are collected from the application).
  2. Countries: payouts go to US bank accounts only (REFERRAL_PAYOUT_COUNTRIES in src/referrals.ts). Other countries need a code change and must be ones Stripe supports for cross-border payouts from the platform's country.
  3. Funding: transfers draw from the platform's available Stripe balance, and Stripe doesn't retry a failed transfer. Under Settings → Payouts, keep a minimum balance for automatic payouts, or switch to manual payouts, or add funds with top-ups (US, UK and JP platforms). Otherwise automatic payouts sweep the balance and cash-outs wait with balance_insufficient until funds arrive.
  4. API key: add write access for Transfers, Accounts (v2) and Account Links (v2), and Login Links, to STRIPE_SECRET_KEY's restricted key. Check the key's request log in the sandbox for denied calls.
  5. Tax reporting: turn on Connect tax reporting and choose 1099-NEC or 1099-MISC with a tax advisor. Stripe issues no 1099-K when the application collects fees, so the platform files; the 1099-NEC/MISC threshold is $2,000 a year. Workspace credits are customer balance credits, not Connect transfers, so they don't appear in Stripe's 1099 totals.
  6. Turn it on: set REFERRAL_PAYOUTS_ENABLED=true on Convex and on the web app (where Personal Settings → Account Settings uses it to explain the 15-minute limit on linking accounts).

Operator tools

Guarantees