Captain UI

Pricing

Drag your usage and every plan's price rolls to what you would really pay. The raised plan slides to whichever is cheapest for you, and says by how much.

npx shadcn@latest add @captain/pricing
Pro

Pay for the runs you make

Agent runs a month1,200 agent runs
  • Hobby

    $012345678901234567890123456789a month

    1,100 agent runs past the free 100, at $0.12

    • One repository
    • Runs on shared sandboxes
    • 7 days of run logs
    Start free
  • Pro

    $01234567890123456789a month

    $29 plus 200 more agent runs at $0.06

    $91 a month less than Hobby

    • Unlimited repositories
    • Four agents in parallel
    • 90 days of run logs
    Choose Pro
  • Team

    $012345678901234567890123456789a month

    5,000 agent runs included, then $0.03 each

    • Shared spend caps per team
    • Sixteen agents in parallel
    • SSO and audit log
    Choose Team

At 1,200 agent runs, Pro is cheapest at $41 a month.

Usage

import { Pricing } from "@/components/ui/pricing"

<Pricing
  heading="Pay for the runs you make"
  unit={{ one: "agent run", many: "agent runs" }}
  plans={plans}
/>

Props

PropTypeDefaultWhat it does
plans{ id; name; base; included; over; features; cta; href? }[]base is the monthly fee, included the units in it, over the price per unit after that.
unit{ one: string; many: string }What is metered, e.g. { one: "agent run", many: "agent runs" }.
min / max / stepnumber0 / 10000 / 50The usage slider's scale.
defaultUsagenumber1000Where the slider starts.
headingReactNodeThe section's heading.
usageLabelReactNodeThe slider's label. Defaults to the unit, a month.
onSelect(plan: Plan, usage: number) => voidHandle the plan buttons yourself, with the usage the visitor chose.

Keyboard

← →
Change usage by a step
Shift + ← →
Ten steps

Accessibility

  • The usage control is the Captain slider: role=slider with a spoken value such as '1,200 agent runs'.
  • Each price has an aria-label with the whole figure, so the rolling digits are never read one by one.
  • Plans are a list of headed items; the cheapest plan's button is the filled one.