Skip to content
915 linesCodeBlameRaw
1import { ArrowUpRight } from "lucide-react";
2
3import { type FeaturePlan, type FreeTier, MICROS_PER_DOLLAR, type Price } from "@g1t/contracts";
4
5import type { Route } from "./+types/pricing";
6import { money as sum, wholeDollars } from "../lib/money";
7import { page } from "../lib/meta";
8import { application, faqPage } from "../lib/structured-data";
9import { TimeAgo } from "../components/ui";
10import { Card } from "../components/ui/card";
11import { billing } from "../lib/services.server";
12
13export function meta(args: Route.MetaArgs) {
14 const plan = args.loaderData?.book?.plans?.find((p) => p.feature === "plan") ?? DEFAULT_PLAN;
15 return [
16 ...page(args, {
17 title: `g1t pricing - $${plan.monthlyCents / 100} per workspace, never per seat, models at cost`,
18 description:
19 "People chat free on every plan, and the forge is free. One plan, $20 a month per workspace with $10 of usage included. Models at the provider's price, plus a flat agent rate for what g1t runs around every model call; everything else g1t runs at cost plus 20%. Your own runners are free. No seats, ever.",
20 }),
21 application(plan.monthlyCents / 100),
22 faqPage(FAQ),
23 ];
24}
25
26export async function loader() {
27 const [book, status] = await Promise.all([billing.prices().catch(() => null), billing.status().catch(() => null)]);
28 return { book, free: status?.free ?? false };
29}
30
31/** A price, with the fraction of a cent it is set to: `$0.024`, `$0.25`. */
32function money(micros: number): string {
33 return sum(micros, { precise: true });
34}
35
36/** Per second is easier to read per minute. */
37function perUnit(price: Price, micros: number): string {
38 return price.unit === "second" ? `${money(micros * 60)} a minute` : `${money(micros)} per ${price.unit}`;
39}
40
41function gigabytes(bytes: number): string {
42 return `${Math.round((bytes / 1e9) * 10) / 10} GB`;
43}
44
45function count(n: number): string {
46 return n.toLocaleString("en-US");
47}
48
49/** Price-book rows the table shows in rows of their own, or not at all. */
50const SHOWN_APART = new Set([
51 "app_month",
52 "agent_models",
53 "agent_tokens",
54 "agent_tokens_own",
55 "agent_token_weight_input",
56 "agent_token_weight_output",
57 "agent_token_weight_cache_read",
58 "agent_token_weight_cache_write",
59 "gateway_models",
60 "card_fee_percent",
61 "card_fee_fixed",
62 "security_activation",
63]);
64
65/** How each kind of token counts toward the agent rate, from the price book: `input ×1, …`. */
66function tokenWeights(prices: { meter: string; costMicros: number }[]): string {
67 const weight = (kind: string) => {
68 const row = prices.find((p) => p.meter === `agent_token_weight_${kind}`);
69 return row ? Number((row.costMicros / 1_000_000).toFixed(3)) : 1;
70 };
71 return `input ×${weight("input")}, output ×${weight("output")}, cache reads ×${weight("cache_read")}, cache writes ×${weight("cache_write")}`;
72}
73
74/** What the page says when billing cannot be reached: the published defaults. */
75const DEFAULT_FREE: Required<FreeTier> = {
76 trialWorkspaceMicros: 5_000_000,
77 trialMonthlyPoolMicros: 100_000_000,
78 ossPoolMicros: 25_000_000,
79 ossRepoMicros: 2_000_000,
80 freePrivateStorageBytes: 1_000_000_000,
81 auditRetentionDays: 7,
82 planAuditRetentionDays: 90,
83 minChargeMicros: 5_000_000,
84 gitOperationsIncluded: 50_000,
85 paidStartCeilingMicros: 100_000_000,
86 overageForgiveCostMicros: 50_000_000,
87};
88
89const DEFAULT_PLAN: FeaturePlan = {
90 feature: "plan",
91 title: "g1t",
92 monthlyCents: 2000,
93 includes: [
94 "$10 of usage each month, used first: models at the provider's price with the g1t agent rate, everything else g1t runs at cost plus 20%",
95 "Everyone in the workspace at one price, never per person",
96 "Unlimited projects, previews and repositories",
97 "Agents, checks, workflows, the merge queue, deployments, semantic search, and Security and quality on private repositories",
98 "Usage past $10 is charged the same way, up to your spend limit",
99 ],
100 overage:
101 "Everything g1t runs is metered from the first unit at what it costs g1t plus 20%. Models are billed at the provider's price, with no markup, plus the g1t agent rate on their tokens, on your own model keys too. Your own runners cost nothing. Unused included usage does not roll over.",
102};
103
104/** How each part of a workspace is charged. */
105const WORKSPACE_CHARGES: { what: string; how: string; soon?: boolean }[] = [
106 {
107 what: "People chatting",
108 how: "Included on every plan, the free one too: channels, direct messages, threads, mentions and live delivery. No seats, and history is never cut off.",
109 },
110 { what: "Docs", how: "Included on every plan, like chat: pages, live editing and history.", soon: true },
111 {
112 what: "An agent replying in chat",
113 how: "The model provider's price, with no markup, plus the g1t agent rate on the tokens it used. Paid from the plan's included usage, then AI credit, and counted against that agent's budget.",
114 },
115 {
116 what: "An agent working on code",
117 how: "The same model price and agent rate, plus sandbox time at cost plus 20%. On your own runner, that time is free.",
118 },
119 {
120 what: "An agent on your own provider",
121 how: "Your provider bills you for the model directly. g1t charges the agent rate, for passing its calls through g1t's model gateway with your key kept secret.",
122 },
123 {
124 what: "How hard an agent works",
125 how: "Each agent has an effort setting, Auto, Low, Medium, High or Max, shown with what a typical task has cost at each level. Lower effort starts on a cheaper model, reasons less and takes fewer steps.",
126 },
127 {
128 what: "Files in chat and Docs",
129 how: "The storage meter, at cost plus 20%, past what is free.",
130 soon: true,
131 },
132 { what: "An idle agent", how: "Nothing. An agent costs money only while it is answering or working." },
133];
134
135const FAQ: { q: string; a: string }[] = [
136 {
137 q: "Do people pay to use Chat?",
138 a: "No. Messages, channels, threads and live delivery are included on every plan, with no per-person price and no limit on history. A workspace on the plan can add as many people as it likes at the same price.",
139 },
140 {
141 q: "Who pays for an agent's reply?",
142 a: "The workspace the agent belongs to. Each reply is charged as the model's price plus the agent rate, and counts against that agent's monthly budget, whoever asked it.",
143 },
144 {
145 q: "What does an agent cost when nobody talks to it?",
146 a: "Nothing. Agents have no monthly fee. They are charged only for replies and work, so an agent you made and forgot costs nothing.",
147 },
148 {
149 q: "How do I stop an agent from spending too much?",
150 a: "Give it a monthly budget and a cap per task. At its budget it stops taking new work and says so in the channel. The workspace's spend limit and the per-run caps still apply above it.",
151 },
152 {
153 q: "How do I spend less without worse work?",
154 a: "Lower an agent's effort, or let Spend suggest it. Every week g1t checks each agent's finished sessions: when a cheaper effort level was accepted as often on the same agent's work, Spend shows the suggestion with the numbers and an Apply button. With too little history, it says so instead.",
155 },
156 {
157 q: "Why is there an agent rate on my own model keys?",
158 a: "Your agents' calls still go through g1t: its model gateway keeps your key out of every sandbox, routes each call, adds the context and passes it to your provider. The agent rate pays for running that. Your provider bills the model itself.",
159 },
160 {
161 q: "Can agents use our own model provider?",
162 a: "Yes. Connect a provider in Integrations and limit an agent to it. The provider bills you for the model; g1t charges the agent rate for your own model key only.",
163 },
164 {
165 q: "Does adding the whole company cost more?",
166 a: "No. There are no seats. People who only chat, and ask agents questions, cost nothing until their questions use an agent; then the agent's reply is charged like any other.",
167 },
168 {
169 q: "What does moving from GitHub cost, and can we leave again?",
170 a: "Moving in is an import: bring repositories across from GitHub with every branch, tag and their issues, or keep a mirror that follows GitHub while you try g1t. Your code is plain git and g1t is MIT licensed, so leaving is a git clone, and the core forge runs on your own machine with Docker Compose.",
171 },
172 {
173 q: "Is Docs included?",
174 a: "Docs is coming soon. When it ships, pages, editing and history are included on every plan, like chat. Files are on the storage meter.",
175 },
176];
177
178/** The ways to reach g1t about an enterprise account. */
179const ENTERPRISE_MAIL = "mailto:hey@flagon.io?subject=Enterprise%20billing%20for%20g1t";
180
181const HOW = [
182 {
183 title: "Our cost, passed through",
184 body: "Every sandbox second, build and app request costs g1t money at Cloudflare. Each is metered and charged at that cost plus 20%, from the first second and the first request. Models are charged at the provider's price with no markup, plus a flat agent rate per million tokens for what g1t runs around every model call, from prepaid AI credit. Use a little, pay a little.",
185 },
186 {
187 title: "Prices follow costs, by themselves",
188 body: "Model runs are charged at what Cloudflare's AI Gateway priced each request at, so a provider's price change reaches you the same day. Every day, sandbox, build and app costs are checked against what Cloudflare billed g1t; when one moves, its price moves with it, and the change is listed below. The rest are Cloudflare's published prices, marked as such.",
189 },
190 {
191 title: "The 20% is the overhead",
192 body: "It pays for running g1t and for building and keeping up the features you use. The same 20% on everything but models, whose overhead is the agent rate, and nothing bundled in.",
193 },
194 {
195 title: "Your own runners are free",
196 body: "Agents, checks and workflows on your own hardware cost nothing here. On your own model keys, your provider bills the model and g1t charges only the agent rate.",
197 },
198 {
199 title: "No seats, ever",
200 body: "Once a workspace is on the plan, add as many people and agents as you like. It pays one flat price for the plan, and for what it uses past what the plan includes.",
201 },
202 {
203 title: "Prices exclude tax",
204 body: "Every price here is before tax. Stripe adds sales tax, VAT or GST where it applies, worked out from the billing address, and shows it as its own line before you pay and on every receipt and invoice. A valid business tax ID is applied where the law says so.",
205 },
206 {
207 title: "Card fees are passed on, nothing more",
208 body: "Paying by card adds Stripe's card processing fee as its own line, shown before you pay, so the 20% is never spent on fees. A bank transfer or invoiced billing has no card fee.",
209 },
210];
211
212/** One row of the free-and-plan table. */
213type Row = { what: string; free: string; plan: string; note?: string };
214
215function rows(tier: Required<FreeTier>): Row[] {
216 return [
217 {
218 what: "Chat",
219 free: "Included, for the people already in the workspace",
220 plan: "Included, for unlimited members",
221 note: "Channels, direct messages, threads, mentions and live delivery. History is never cut off.",
222 },
223 {
224 what: "Docs (coming soon)",
225 free: "Included",
226 plan: "Included",
227 note: "Pages, live editing and history, once Docs ships.",
228 },
229 {
230 what: "Workspace agents",
231 free: "After a card check, from the trial",
232 plan: "From the plan's included usage, then AI credit, under each agent's budget",
233 note: "Replies and work are charged as model price plus the g1t agent rate. An idle agent costs nothing.",
234 },
235 {
236 what: "The forge",
237 free: "Free",
238 plan: "Included",
239 note: "Public and private repositories, issues, pull requests, reviews, protected branches, code owners, search and Explore.",
240 },
241 {
242 what: "Agents, checks, workflows, merge queue",
243 free: "After a card check: the trial, and the open-source pool for checks, workflows and the merge queue on public repositories",
244 plan: "From the plan's included usage, then at cost plus 20%",
245 },
246 {
247 what: "Projects and previews",
248 free: "Not available: deployments run on g1t's machines",
249 plan: "Unlimited, and never charged for. An app no one visits costs nothing.",
250 },
251 {
252 what: "Deployments",
253 free: "Not available",
254 plan: "Builds by the second, app requests, CPU time and custom domains, each from the first at cost plus 20%",
255 },
256 {
257 what: "Semantic search",
258 free: "After a card check, from the trial",
259 plan: "From the plan's included usage, then at cost plus 20%",
260 },
261 {
262 what: "Private storage",
263 free: `${gigabytes(tier.freePrivateStorageBytes)}, never charged. Past it, pushes to private repositories stop until you make room or start the plan.`,
264 plan: `${gigabytes(tier.freePrivateStorageBytes)} free, then at cost plus 20%. Pushes never stop.`,
265 note: "Public repositories are never charged for storage.",
266 },
267 {
268 what: "Git operations",
269 free: `${count(tier.gitOperationsIncluded)} a month, never charged. Past it, slowed to 60 an hour until the month turns.`,
270 plan: `${count(tier.gitOperationsIncluded)} a month free, then at cost plus 20%. Never slowed.`,
271 note: "Clones, fetches and pushes through g1t.",
272 },
273 {
274 what: "Actions cache",
275 free: "2 GiB an entry and 10 GiB a repository, never charged",
276 plan: "The same limits, with what it stores at cost plus 20%",
277 },
278 {
279 what: "Audit log",
280 free: `${tier.auditRetentionDays} days, with export`,
281 plan: `${tier.planAuditRetentionDays} days, with export`,
282 note: "Longer by arrangement. Older entries are deleted each day.",
283 },
284 {
285 what: "Secret scanning, push protection, vulnerability alerts, security updates",
286 free: "Included",
287 plan: "Included",
288 note: "Custom patterns, validity checks, code scanning, dependency review and the security overview on private repositories come with the plan, with no price of their own: their scans are charged at cost plus 20%. On public repositories they are free.",
289 },
290 { what: "Single sign-on", free: "On every plan, once it is built", plan: "On every plan, once it is built" },
291 {
292 what: "Members",
293 free: "Only the people already in it: a free workspace cannot add members, invite people or invite outside collaborators",
294 plan: "Unlimited, never per seat",
295 note: "Each person can own one free workspace. More workspaces need the plan.",
296 },
297 {
298 what: "Usage past what is included",
299 free: "Not possible: a free workspace never runs up a bill",
300 plan: "Charged at cost plus 20%, up to a spend limit you set. No quotas: only your limit stops anything.",
301 },
302 ];
303}
304
305export default function Pricing({ loaderData }: Route.ComponentProps) {
306 const { book, free } = loaderData;
307 const checked = book?.prices.map((p) => p.checkedAt).filter((at): at is string => !!at).sort().at(-1);
308 const given = Object.fromEntries(Object.entries(book?.free ?? {}).filter(([, value]) => value != null));
309 const tier: Required<FreeTier> = { ...DEFAULT_FREE, ...given };
310 const plan = book?.plans?.find((p) => p.feature === "plan") ?? DEFAULT_PLAN;
311 const price = plan.monthlyCents / 100;
312 const dollars = wholeDollars;
313 // What g1t's own metered work is marked up, from the price book: one figure today.
314 const runMarkups = (book?.prices ?? [])
315 .filter((p) => !SHOWN_APART.has(p.meter) && p.meter !== "security_activation" && p.costMicros > 0)
316 .map((p) => p.markupPercent);
317 const markup = runMarkups.length && Math.min(...runMarkups) === Math.max(...runMarkups) ? `${runMarkups[0]}%` : "20%";
318 const modelMarkup = book?.modelMarginPercent ?? 0;
319 const agentRate = book?.prices.find((p) => p.meter === "agent_tokens");
320 const agentRateComing = book?.changes.find((c) => c.meter === "agent_tokens" && c.effectiveAt);
321 const agentRateLine =
322 agentRate && agentRate.priceMicros > 0
323 ? `${money(agentRate.priceMicros)} per million tokens`
324 : agentRateComing
325 ? `$0, and ${money(agentRateComing.newCostMicros)} per million tokens from ${agentRateComing.effectiveAt!.slice(0, 10)}`
326 : "as listed under Usage below";
327 // The summary tile: the rate in force, or the one coming and its day ("from Oct 22").
328 const comingDay = agentRateComing
329 ? new Date(agentRateComing.effectiveAt!).toLocaleDateString("en-US", { month: "short", day: "numeric", timeZone: "UTC" })
330 : null;
331 const agentRateTile =
332 agentRate && agentRate.priceMicros > 0
333 ? `${money(agentRate.priceMicros)} per million tokens`
334 : agentRateComing
335 ? `${money(agentRateComing.newCostMicros)} per million tokens from ${comingDay}`
336 : "Per million tokens";
337 return (
338 <main className="mx-auto max-w-4xl px-4 py-12">
339 <p className="text-sm font-medium text-accent">Pricing</p>
340 <h1 className="mt-2 text-3xl font-semibold tracking-tight sm:text-4xl">Models at cost. What g1t runs, at cost plus {markup}.</h1>
341 <p className="mt-3 max-w-2xl text-muted">
342 People chatting and the forge are free for everyone. Models are billed at the provider&apos;s price
343 {modelMarkup ? ` plus ${modelMarkup}%` : ", with no markup"}. The agent rate pays for what g1t runs around every model
344 call: the model gateway, secrets, routing, context and pass-through to your own provider, so it applies on your own
345 keys too. Everything else g1t runs is billed at what it costs g1t plus {markup}. Your own runners are free, and there
346 are no seats. The numbers on this page are the live price book g1t charges from. Prices exclude tax, which is added
347 where it applies.
348 </p>
349 <Card asChild tone="plain" className="mt-6 grid gap-px overflow-hidden bg-line text-sm sm:grid-cols-2 lg:grid-cols-5">
350 <ul>
351 {[
352 ["Models", modelMarkup ? `Provider price + ${modelMarkup}%` : "The provider's price", "No markup on tokens"],
353 ["Agent rate", agentRateTile, "Gateway, secrets, routing and pass-through, on your own keys too"],
354 ["Everything else g1t runs", `At cost + ${markup}`, "Sandboxes, builds, hosting, storage, search and scans"],
355 ["Your own runners", "Free", "Agents, checks and workflows on your hardware"],
356 ["People", "No seats", "Everyone in the workspace at one price"],
357 ].map(([what, price, about]) => (
358 <li key={what} className="bg-surface px-4 py-3">
359 <p className="text-xs text-muted">{what}</p>
360 <p className="mt-0.5 font-medium">{price}</p>
361 <p className="mt-0.5 text-xs text-faint">{about}</p>
362 </li>
363 ))}
364 </ul>
365 </Card>
366 {free && (
367 <div className="mt-5 rounded-xl border border-accent/30 bg-accent/5 px-4 py-3 text-sm">
368 <span className="font-medium">Free while g1t is being built out.</span>{" "}
369 <span className="text-muted">Usage is recorded at these prices but not charged for now. The plan is charged.</span>
370 </div>
371 )}
372
373 <section className="mt-10 rounded-xl border border-accent/40 bg-surface p-6">
374 <div className="flex flex-wrap items-baseline justify-between gap-3">
375 <h2 className="flex flex-wrap items-center gap-2 text-xl font-semibold tracking-tight">
376 {plan.title}
377 <span className="rounded-full bg-accent/15 px-2 py-0.5 text-xs font-medium tracking-normal text-accent">Recommended</span>
378 </h2>
379 <p>
380 <span className="text-3xl font-semibold tabular-nums">${price}</span>{" "}
381 <span className="text-sm text-muted">a month per workspace</span>
382 <span className="block text-right text-xs text-faint">
383 {plan.cardFeeCents ? `+ $${(plan.cardFeeCents / 100).toFixed(2)} card processing fee, plus tax where it applies` : "Plus tax where it applies"}
384 </span>
385 </p>
386 </div>
387 <p className="mt-2 text-sm text-muted">
388 The plan for a team whose agents do real work: unlimited members, agents, checks, the merge queue and
389 deployments.
390 </p>
391 <p className="mt-3 text-sm text-fg-soft">
392 One price for the whole team: a 10-person team pays ${price} a month, not ${price} a person.
393 </p>
394 <ul className="mt-4 space-y-1.5 text-sm text-muted">
395 {plan.includes.map((line) => (
396 <li key={line} className="flex gap-2">
397 <span aria-hidden className="text-accent">
398 ✓
399 </span>
400 {line}
401 </li>
402 ))}
403 </ul>
404 <p className="mt-3 text-xs text-faint">{plan.overage}</p>
405 <div className="mt-5 grid gap-5 border-t border-line pt-5 text-sm sm:grid-cols-2">
406 <div>
407 <p className="font-medium">Where the ${price} goes</p>
408 <p className="mt-1 text-muted">
409 $10 comes back to you as usage: agents, sandboxes, builds and deployments at cost plus 20%, used before
410 anything else. The other $10 pays for running g1t, the free forge for everyone, and the people building it.
411 </p>
412 </div>
413 <div>
414 <p className="font-medium">No quotas</p>
415 <p className="mt-1 text-muted">
416 No count of projects, previews, builds, requests or git operations ever stops a workspace on the plan. Past
417 the $10, usage is charged at cost plus 20%, and only your spend limit stops it. Unused included usage does
418 not roll over.
419 </p>
420 </div>
421 </div>
422 <p className="mt-5 text-sm text-muted">An owner starts the plan from the workspace's Billing page.</p>
423 </section>
424
425 <section id="workspace" className="mt-14">
426 <h2 className="text-xl font-semibold tracking-tight">Chat, Docs and agents</h2>
427 <p className="mt-1 max-w-3xl text-sm text-muted">
428 People talking costs g1t very little, so it is included. Agents use models, so they are charged for what they
429 use, to the agent that used it.
430 </p>
431 <Card tone="plain" className="mt-4 overflow-hidden">
432 <dl className="divide-y divide-line text-sm">
433 {WORKSPACE_CHARGES.map((row) => (
434 <div key={row.what} className="grid gap-1 px-4 py-3 sm:grid-cols-[14rem_1fr] sm:gap-4">
435 <dt className="font-medium">
436 {row.what}
437 {row.soon && (
438 <span className="ml-2 inline-block rounded bg-raised px-1.5 py-0.5 text-xs font-normal whitespace-nowrap text-muted">Coming soon</span>
439 )}
440 </dt>
441 <dd className="text-muted">{row.how}</dd>
442 </div>
443 ))}
444 </dl>
445 </Card>
446 <p className="mt-3 text-sm text-muted">
447 The agent rate today: {agentRateLine}. A chat reply is usually a few thousand tokens on a fast model, so most
448 replies cost a fraction of a cent. See{" "}
449 <a href="https://docs.g1t.sh/guides/agents/#what-an-agent-costs" className="text-accent hover:underline">
450 what an agent costs
451 </a>
452 .
453 </p>
454 </section>
455
456 <section id="spend-less" className="mt-14">
457 <h2 className="text-xl font-semibold tracking-tight">Help spending less</h2>
458 <p className="mt-1 max-w-3xl text-sm text-muted">Prices near cost are half of it. The other half is not spending more than the work needs.</p>
459 <div className="mt-4 grid gap-4 sm:grid-cols-3">
460 <Card asChild className="p-5">
461 <section>
462 <h3 className="font-medium">Effort per agent</h3>
463 <p className="mt-1.5 text-sm text-muted">
464 Auto, Low, Medium, High or Max: how hard an agent works, from the model tier it starts on to how hard it reasons and how
465 many steps a session takes. Each level shows what a typical task has cost that agent.
466 </p>
467 </section>
468 </Card>
469 <Card asChild className="p-5">
470 <section>
471 <h3 className="font-medium">Suggestions checked against your work</h3>
472 <p className="mt-1.5 text-sm text-muted">
473 Every week, each agent&apos;s finished sessions are checked. A cheaper level is suggested only when its work was accepted
474 as often, with the numbers it rests on and an Apply button. With too little history, Spend says so instead.
475 </p>
476 </section>
477 </Card>
478 <Card asChild className="p-5">
479 <section>
480 <h3 className="font-medium">Budgets that hold</h3>
481 <p className="mt-1.5 text-sm text-muted">
482 Workspace, team, person, agent and task budgets are checked before work starts. An agent at its budget stops taking new
483 work and says so.
484 </p>
485 </section>
486 </Card>
487 </div>
488 </section>
489
490 <h2 className="mt-14 text-xl font-semibold tracking-tight">Free and the plan, side by side</h2>
491 <p className="mt-1 text-sm text-muted">
492 Secret scanning, push protection, vulnerability alerts and security updates are free everywhere, on every plan.
493 </p>
494 {/* On a phone, one row at a time with both answers under it; a table that wide would scroll. */}
495 <Card asChild tone="plain" divided className="mt-4 text-sm sm:hidden">
496 <ul>
497 {rows(tier).map((row) => (
498 <li key={row.what} className="px-4 py-3">
499 <p className="font-medium">{row.what}</p>
500 {row.note && <p className="text-xs text-faint">{row.note}</p>}
501 <dl className="mt-2 grid grid-cols-[4.5rem_1fr] gap-x-3 gap-y-1.5">
502 <dt className="text-xs leading-5 text-faint">Free</dt>
503 <dd className="text-muted">{row.free}</dd>
504 <dt className="text-xs leading-5 text-faint">{plan.title}</dt>
505 <dd className="text-muted">{row.plan}</dd>
506 </dl>
507 </li>
508 ))}
509 </ul>
510 </Card>
511 <Card tone="plain" className="mt-4 hidden overflow-x-auto sm:block">
512 <table className="w-full min-w-[36rem] text-left text-sm">
513 <thead className="border-b border-line text-xs text-muted">
514 <tr>
515 <th className="px-4 py-2.5 font-medium">
516 <span className="sr-only">What</span>
517 </th>
518 <th className="px-4 py-2.5 font-medium">Free</th>
519 <th className="px-4 py-2.5 font-medium">
520 {plan.title}, ${price} a month
521 </th>
522 </tr>
523 </thead>
524 <tbody className="divide-y divide-line">
525 {rows(tier).map((row) => (
526 <tr key={row.what} className="align-top">
527 <td className="px-4 py-3">
528 <p className="font-medium">{row.what}</p>
529 {row.note && <p className="text-xs text-faint">{row.note}</p>}
530 </td>
531 <td className="px-4 py-3 text-muted">{row.free}</td>
532 <td className="px-4 py-3 text-muted">{row.plan}</td>
533 </tr>
534 ))}
535 </tbody>
536 </table>
537 </Card>
538 <p className="mt-3 text-sm text-muted">
539 Git operations cost g1t money too: Cloudflare charges g1t $0.15 per 1,000. {count(tier.gitOperationsIncluded)} a
540 month is far more than an active workspace uses; an agent run takes two to four.
541 </p>
542
543 <h2 className="mt-14 text-xl font-semibold tracking-tight">No card, no compute</h2>
544 <div className="mt-3 max-w-3xl space-y-3 text-sm text-muted">
545 <p>
546 Agents, checks, workflows, the merge queue, deployments and semantic search run on g1t's machines. They need
547 the plan, or a card check.
548 </p>
549 <p>
550 The reason: compute costs g1t real money from the first second, and free compute draws people who use it to
551 mine cryptocurrency. A card check is the smallest gate that stops that, with one trial per card.
552 </p>
553 <p>
554 A card check is never charged. Stripe saves and verifies the card, with 3-D Secure where your bank asks for it.
555 Nothing is charged until an owner starts the plan, and then the same card is used, without asking for it again.
556 The trial needs a credit or debit card; prepaid cards can still pay for the plan.
557 </p>
558 </div>
559
560 <div className="mt-5 grid gap-4 sm:grid-cols-2">
561 <Card asChild className="p-5">
562 <section>
563 <h3 className="font-medium">The trial</h3>
564 <p className="mt-1.5 text-sm text-muted">
565 {dollars(tier.trialWorkspaceMicros)} of usage, once per workspace and once per card, after a card check with a credit or
566 debit card. It comes from a{" "}
567 {dollars(tier.trialMonthlyPoolMicros)} pool each month for everyone; when a month's pool is given out, new
568 trials wait until the 1st. The trial does not cover deployments and never turns into a charge. If the last
569 run on a trial goes past it, g1t covers the difference.
570 </p>
571 </section>
572 </Card>
573 <Card asChild className="p-5">
574 <section>
575 <h3 className="font-medium">The open-source pool</h3>
576 <p className="mt-1.5 text-sm text-muted">
577 Checks, workflows and the merge queue on public repositories, after a card check:{" "}
578 {dollars(tier.ossPoolMicros)} a month in all, up to {dollars(tier.ossRepoMicros)} a month per repository.
579 Agents do not run from the pool. When the pool or a repository's share is used up, the work waits for the
580 month to turn, or the workspace pays as usual.
581 </p>
582 </section>
583 </Card>
584 </div>
585
586 <h2 className="mt-14 text-xl font-semibold tracking-tight">Limits, and how to raise them</h2>
587 <p className="mt-1 max-w-3xl text-sm text-muted">
588 g1t lets usage run ahead of payment only so far. Limits keep a mistake small, for you and for g1t.
589 </p>
590 <ul className="mt-4 grid gap-3 text-sm sm:grid-cols-2">
591 <Card asChild className="p-4">
592 <li>
593 <p className="font-medium">{dollars(tier.paidStartCeilingMicros)} in the first month</p>
594 <p className="mt-1 text-muted">
595 A workspace on the plan can use up to {dollars(tier.paidStartCeilingMicros)} in its first month. After that,
596 the limit grows with payments that clear.
597 </p>
598 </li>
599 </Card>
600 <Card asChild className="p-4">
601 <li>
602 <p className="font-medium">Your own spend limit</p>
603 <p className="mt-1 text-muted">
604 Owners set a monthly spend limit anywhere up to the highest limit the workspace has had, with no approval.
605 Once, you can raise it yourself to twice that.
606 </p>
607 </li>
608 </Card>
609 <Card asChild className="p-4">
610 <li>
611 <p className="font-medium">Prepay to raise it now</p>
612 <p className="mt-1 text-muted">
613 Prepaying from $25 raises what you can use by the same amount, at once. From $1,000 you can also pay by bank
614 transfer.
615 </p>
616 </li>
617 </Card>
618 <Card asChild className="p-4">
619 <li>
620 <p className="font-medium">Raise my limit</p>
621 <p className="mt-1 text-muted">
622 Need more? Ask from Billing with the amount, why, and what you expect to spend. You get an answer within one
623 business day, in the app and by email.
624 </p>
625 </li>
626 </Card>
627 </ul>
628
629 <h2 className="mt-14 text-xl font-semibold tracking-tight">When usage runs high</h2>
630 <ul className="mt-4 grid gap-3 text-sm sm:grid-cols-2">
631 <Card asChild className="p-4">
632 <li>
633 <p className="font-medium">A spike pauses new work</p>
634 <p className="mt-1 text-muted">
635 When an hour's spend is five times your usual hour, and at least $5, new compute waits for an owner to choose
636 Keep going or Stop. Runs already going finish.
637 </p>
638 </li>
639 </Card>
640 <Card asChild className="p-4">
641 <li>
642 <p className="font-medium">Caps per run and per issue</p>
643 <p className="mt-1 text-muted">
644 One agent run stops at $2 and the agents on one issue at $10 in all, so a run stuck in a loop stops on its own.
645 Owners change both on Billing.
646 </p>
647 </li>
648 </Card>
649 <Card asChild className="p-4">
650 <li>
651 <p className="font-medium">Alerts at 50, 75, 90 and 100%</p>
652 <p className="mt-1 text-muted">
653 Of the plan's included usage, your spend limit and g1t's limit: in the app and by email.
654 </p>
655 </li>
656 </Card>
657 <Card asChild className="p-4">
658 <li>
659 <p className="font-medium">Spent more than you meant to? Tell us</p>
660 <p className="mt-1 text-muted">
661 Tell us from Billing what happened. Once in 12 months, g1t can credit back usage you did not mean, always
662 including its 20% on it. Larger credits, or a second one within 12 months, are reviewed by a person.
663 </p>
664 </li>
665 </Card>
666 </ul>
667 <p className="mt-3 text-sm text-muted">
668 No card is charged less than {dollars(tier.minChargeMicros)} when a month closes, so a payment's fee is never most
669 of it. Smaller amounts carry over to the next invoice. Charges at a limit always go through.
670 </p>
671
672 <div className="mt-14 grid gap-4 sm:grid-cols-2">
673 {HOW.map((item) => (
674 <Card asChild key={item.title} className="p-5">
675 <section>
676 <h2 className="font-medium">{item.title}</h2>
677 <p className="mt-1.5 text-sm text-muted">{item.body}</p>
678 </section>
679 </Card>
680 ))}
681 </div>
682
683 <h2 className="mt-14 text-xl font-semibold tracking-tight">Usage</h2>
684 <p className="mt-1 text-sm text-muted">
685 {checked ? (
686 <>
687 Last checked against Cloudflare's bill <TimeAgo at={checked} />.
688 </>
689 ) : (
690 "Starting from Cloudflare's published prices; checked against its bill daily."
691 )}
692 </p>
693 <Card tone="plain" className="mt-4 overflow-x-auto">
694 <table className="w-full text-left text-sm sm:min-w-[36rem]">
695 <thead className="border-b border-line text-xs text-muted">
696 <tr>
697 <th className="px-4 py-2.5 font-medium">What</th>
698 <th className="px-4 py-2.5 font-medium">Costs g1t</th>
699 {/* The markup is in what you pay; on a phone the column gives way. */}
700 <th className="hidden px-4 py-2.5 font-medium sm:table-cell">Markup</th>
701 <th className="px-4 py-2.5 font-medium">You pay</th>
702 </tr>
703 </thead>
704 <tbody className="divide-y divide-line">
705 <tr>
706 <td className="px-4 py-3">
707 <p className="font-medium">Agent models</p>
708 <p className="text-xs text-faint">g1t's hosted models for agent runs, the cheapest that can do each job, paid from AI credit</p>
709 </td>
710 <td className="px-4 py-3 text-muted">What the provider charges, per request</td>
711 <td className="hidden px-4 py-3 tabular-nums sm:table-cell">{book?.modelMarginPercent ?? 0}%</td>
712 <td className="px-4 py-3 text-muted">{book?.modelMarginPercent ? `Cost + ${book.modelMarginPercent}%` : "The provider's price"}</td>
713 </tr>
714 {(() => {
715 const rate = book?.prices.find((p) => p.meter === "agent_tokens");
716 const gateway = book?.prices.find((p) => p.meter === "gateway_models");
717 const feePercent = book?.prices.find((p) => p.meter === "card_fee_percent");
718 const feeFixed = book?.prices.find((p) => p.meter === "card_fee_fixed");
719 const coming = book?.changes.find((c) => c.meter === "agent_tokens" && c.effectiveAt);
720 const ownRate = book?.prices.find((p) => p.meter === "agent_tokens_own");
721 const ownComing = book?.changes.find((c) => c.meter === "agent_tokens_own" && c.effectiveAt);
722 return (
723 <>
724 <tr>
725 <td className="px-4 py-3">
726 <p className="font-medium">g1t agent rate</p>
727 <p className="text-xs text-faint">The model gateway, secrets, routing, context and pass-through, on every token an agent run uses</p>
728 <p className="text-xs text-faint">Tokens count by kind: {tokenWeights(book?.prices ?? [])}</p>
729 </td>
730 <td className="px-4 py-3 text-muted">A flat rate</td>
731 <td className="hidden px-4 py-3 tabular-nums sm:table-cell">—</td>
732 <td className="px-4 py-3 font-mono text-xs tabular-nums">
733 {rate && rate.priceMicros > 0 ? `${money(rate.priceMicros)} per million tokens` : coming ? `${money(coming.newCostMicros)} per million tokens from ${coming.effectiveAt!.slice(0, 10)}` : "$0.25 per million tokens"}
734 </td>
735 </tr>
736 <tr>
737 <td className="px-4 py-3">
738 <p className="font-medium">g1t agent rate, your own model key</p>
739 <p className="text-xs text-faint">The same, on runs that pass through to your own provider; its models are billed by your provider, not g1t</p>
740 </td>
741 <td className="px-4 py-3 text-muted">A flat rate</td>
742 <td className="hidden px-4 py-3 tabular-nums sm:table-cell">—</td>
743 <td className="px-4 py-3 font-mono text-xs tabular-nums">
744 {ownRate && ownRate.priceMicros > 0 ? `${money(ownRate.priceMicros)} per million tokens` : ownComing ? `${money(ownComing.newCostMicros)} per million tokens from ${ownComing.effectiveAt!.slice(0, 10)}` : "$0.25 per million tokens"}
745 </td>
746 </tr>
747 <tr>
748 <td className="px-4 py-3">
749 <p className="font-medium">
750 AI Gateway <span className="ml-1 rounded bg-accent/15 px-1.5 py-0.5 text-xs text-accent">Free during beta</span>
751 </p>
752 <p className="text-xs text-faint">Your own code calling Claude and open models through g1t, in Anthropic's or OpenAI's format, paid from AI credit; on your own providers, free</p>
753 </td>
754 <td className="px-4 py-3 text-muted">What the provider charges</td>
755 <td className="hidden px-4 py-3 tabular-nums sm:table-cell">{gateway?.markupPercent ?? 0}%</td>
756 <td className="px-4 py-3 text-muted">{gateway?.markupPercent ? `Cost + ${gateway.markupPercent}%` : "The provider's price"}</td>
757 </tr>
758 {feePercent && feeFixed && (
759 <tr>
760 <td className="px-4 py-3">
761 <p className="font-medium">Card processing fee</p>
762 <p className="text-xs text-faint">
763 On every card payment, as its own line shown before you pay; never on bank transfers or invoiced billing
764 </p>
765 </td>
766 <td className="px-4 py-3 text-muted">Stripe's fee</td>
767 <td className="hidden px-4 py-3 tabular-nums sm:table-cell">—</td>
768 <td className="px-4 py-3 font-mono text-xs tabular-nums">
769 {(feePercent.priceMicros / 10_000).toFixed(1)}% + {money(feeFixed.priceMicros)}
770 </td>
771 </tr>
772 )}
773 </>
774 );
775 })()}
776 <tr>
777 <td className="px-4 py-3">
778 <p className="font-medium">Your own runners</p>
779 <p className="text-xs text-faint">Agents, checks and workflows on your own hardware</p>
780 </td>
781 <td className="px-4 py-3 text-muted">Nothing</td>
782 <td className="hidden px-4 py-3 tabular-nums sm:table-cell">—</td>
783 <td className="px-4 py-3 text-muted">Free</td>
784 </tr>
785 <tr>
786 <td className="px-4 py-3">
787 <p className="font-medium">Projects, previews and apps</p>
788 <p className="text-xs text-faint">Having them. An app's requests and CPU time are charged below.</p>
789 </td>
790 <td className="px-4 py-3 text-muted">Next to nothing</td>
791 <td className="hidden px-4 py-3 tabular-nums sm:table-cell">—</td>
792 <td className="px-4 py-3 text-muted">Not charged</td>
793 </tr>
794 {(book?.prices ?? []).filter((price) => !SHOWN_APART.has(price.meter)).map((price) => (
795 <tr key={price.meter}>
796 <td className="px-4 py-3">
797 <p className="font-medium">{price.title}</p>
798 <p className="text-xs text-faint">
799 {price.meter === "actions_cache" ? "On the plan only. A free workspace is never charged for it. " : ""}
800 {price.source === "cloudflare" ? "Measured from Cloudflare's bill" : "Cloudflare's published price"}
801 </p>
802 </td>
803 <td className="px-4 py-3 font-mono text-xs tabular-nums text-muted">{perUnit(price, price.costMicros)}</td>
804 <td className="hidden px-4 py-3 tabular-nums sm:table-cell">{price.markupPercent}%</td>
805 <td className="px-4 py-3 font-mono text-xs tabular-nums">{perUnit(price, price.priceMicros)}</td>
806 </tr>
807 ))}
808 </tbody>
809 </table>
810 </Card>
811
812 <h2 className="mt-14 text-xl font-semibold tracking-tight">Enterprise</h2>
813 <p className="mt-1 text-sm text-muted">
814 For organizations with several workspaces: one invoice and one limit. The prices are the ones on this page.
815 </p>
816 <Card asChild className="mt-4 p-5">
817 <section>
818 <ul className="grid gap-3 text-sm sm:grid-cols-2">
819 <li>
820 <p className="font-medium">Consolidated invoicing</p>
821 <p className="text-muted">One monthly invoice for every workspace, paid by card or bank transfer.</p>
822 </li>
823 <li>
824 <p className="font-medium">Custom terms</p>
825 <p className="text-muted">One limit across every workspace, invoice terms and a billing contact, set with you.</p>
826 </li>
827 <li>
828 <p className="font-medium">Security on every plan</p>
829 <p className="text-muted">
830 The audit log with export, {tier.planAuditRetentionDays} days or longer by arrangement, and secret push
831 protection, for every workspace.
832 </p>
833 </li>
834 <li>
835 <p className="font-medium">
836 Single sign-on <span className="ml-1 rounded bg-raised px-1.5 py-0.5 text-xs text-muted">Coming</span>
837 </p>
838 <p className="text-muted">Through your identity provider, on every plan once it is built. Not available yet.</p>
839 </li>
840 </ul>
841 <a
842 href={ENTERPRISE_MAIL}
843 className="mt-5 inline-flex items-center gap-1.5 rounded-md border border-line px-3 py-1.5 text-sm hover:border-line-strong"
844 >
845 Write to us about enterprise
846 <ArrowUpRight size={14} />
847 </a>
848 </section>
849 </Card>
850
851 <h2 className="mt-14 text-xl font-semibold tracking-tight">Price changes</h2>
852 {book && book.changes.length > 0 ? (
853 <Card asChild tone="plain" divided className="mt-4">
854 <ul>
855 {book.changes.map((change) => {
856 const title = book.prices.find((p) => p.meter === change.meter)?.title ?? change.meter;
857 // What you pay moved: the cost, the markup, or both.
858 const before = change.oldCostMicros * (100 + (change.oldMarkupPercent ?? change.markupPercent));
859 const after = change.newCostMicros * (100 + change.markupPercent);
860 const up = after > before;
861 const fresh = after === before || before === 0;
862 return (
863 <li key={`${change.meter}-${change.createdAt}`} className="px-4 py-3 text-sm">
864 <p>
865 <span className="font-medium">{title}</span>{" "}
866 {fresh ? (
867 <span className="text-muted">new</span>
868 ) : (
869 <span className={up ? "text-warn" : "text-accent"}>
870 {up ? "up" : "down"} {Math.abs((after / before - 1) * 100).toFixed(1)}%
871 </span>
872 )}
873 </p>
874 <p className="mt-0.5 text-xs text-faint">
875 {change.effectiveAt ? (
876 <>
877 {change.reason} · <span className="text-fg-soft">takes effect {change.effectiveAt.slice(0, 10)}</span>
878 </>
879 ) : (
880 <>
881 {change.reason} · <TimeAgo at={change.createdAt} />
882 </>
883 )}
884 </p>
885 </li>
886 );
887 })}
888 </ul>
889 </Card>
890 ) : (
891 <p className="mt-2 text-sm text-muted">None yet. When a price moves, it is listed here with why.</p>
892 )}
893
894 <h2 id="faq" className="mt-14 text-xl font-semibold tracking-tight">Questions</h2>
895 <Card asChild tone="plain" divided className="mt-4">
896 <dl>
897 {FAQ.map((item) => (
898 <div key={item.q} className="px-4 py-4 text-sm">
899 <dt className="font-medium">{item.q}</dt>
900 <dd className="mt-1.5 text-muted">{item.a}</dd>
901 </div>
902 ))}
903 </dl>
904 </Card>
905
906 <a
907 href="https://docs.g1t.sh/guides/usage-and-billing/"
908 className="mt-12 inline-flex items-center gap-1.5 text-sm text-accent hover:underline"
909 >
910 How usage and billing work
911 <ArrowUpRight size={14} />
912 </a>
913 </main>
914 );
915}