Skip to content

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

775 linesCodeBlameRaw
1import { ArrowUpRight } from "lucide-react";
2
3import type { FeaturePlan, FreeTier, Price } from "@g1t/contracts";
4import { type InstanceType, machineSize, machines } from "@g1t/contracts/instances";
5
6import type { Route } from "./+types/pricing";
7import { money as sum, wholeDollars } from "../lib/money";
8import { page } from "../lib/meta";
9import { application, faqPage } from "../lib/structured-data";
10import { TimeAgo } from "../components/ui";
11import { Card } from "../components/ui/card";
12import { billing } from "../lib/services.server";
13import { Unavailable } from "../components/boundary";
14import { isFailed, orElse, part } from "../lib/partial";
15
16export function meta(args: Route.MetaArgs) {
17 const plan = args.loaderData?.book?.plans?.find((p) => p.feature === "plan") ?? DEFAULT_PLAN;
18 return [
19 ...page(args, {
20 title: `g1t pricing - $${plan.monthlyCents / 100} per workspace, never per seat, usage priced from cost plus 20%`,
21 description:
22 "People chat free on every plan, and the forge is free. One plan, $21 a month per workspace with $10 of usage included. Runner minutes are a flat rate per machine; everything else g1t runs is priced from what it costs, plus 20%. Your own runners are free. No seats, ever.",
23 }),
24 application(plan.monthlyCents / 100),
25 faqPage(FAQ),
26 ];
27}
28
29export async function loader() {
30 // The page reads without the price book: the plan and the rest are its
31 // defaults, and the usage table and price changes say they could not be
32 // loaded instead of looking empty.
33 const [book, status] = await Promise.all([part(billing.prices(), "The price book"), billing.status().catch(() => null)]);
34 return { book: orElse(book, null), unpriced: isFailed(book), free: status?.free ?? false };
35}
36
37/** A price, with the fraction of a cent it is set to: `$0.024`, `$0.25`. */
38function money(micros: number): string {
39 return sum(micros, { precise: true });
40}
41
42/** Per second is easier to read per minute. */
43function perUnit(price: Price, micros: number): string {
44 return price.unit === "second" ? `${money(micros * 60)} a minute` : `${money(micros)} per ${price.unit}`;
45}
46
47function gigabytes(bytes: number): string {
48 return `${Math.round((bytes / 1e9) * 10) / 10} GB`;
49}
50
51function count(n: number): string {
52 return n.toLocaleString("en-US");
53}
54
55/**
56 * Price-book rows the table shows in rows of their own, or not at all. The
57 * agent and model meters are retired: a price book that still lists them
58 * leaves them off the page.
59 */
60const SHOWN_APART = new Set([
61 "app_month",
62 "agent_models",
63 "agent_tokens",
64 "agent_tokens_own",
65 "agent_token_weight_input",
66 "agent_token_weight_output",
67 "agent_token_weight_cache_read",
68 "agent_token_weight_cache_write",
69 "gateway_models",
70 "card_fee_percent",
71 "card_fee_fixed",
72 "security_activation",
73 // What a sandbox second costs g1t: runner minutes are charged at each
74 // machine's rate, in rows of their own.
75 "sandbox_second",
76 "sandbox_base_second",
77 "sandbox_cpu_second",
78]);
79
80/**
81 * What a minute of a machine costs g1t at Cloudflare's list prices with
82 * every vCPU busy: memory, disk and the Durable Object behind it (128 MB)
83 * for every second, and its vCPUs.
84 */
85function busyMinuteMicros(instance: InstanceType): number {
86 return 60 * (instance.memoryGib * 2.5 + instance.diskGb * 0.07 + 0.125 * 12.5 + instance.vcpu * 20);
87}
88
89/** A retired meter: agents' models and tokens, and the AI Gateway. */
90function retired(meter: string): boolean {
91 return meter.startsWith("agent_") || meter === "gateway_models";
92}
93
94/** What the page says when billing cannot be reached: the published defaults. */
95const DEFAULT_FREE: Required<FreeTier> = {
96 trialWorkspaceMicros: 5_000_000,
97 trialMonthlyPoolMicros: 100_000_000,
98 ossPoolMicros: 25_000_000,
99 ossRepoMicros: 2_000_000,
100 freePrivateStorageBytes: 1_000_000_000,
101 auditRetentionDays: 7,
102 planAuditRetentionDays: 90,
103 minChargeMicros: 5_000_000,
104 gitOperationsIncluded: 50_000,
105 paidStartCeilingMicros: 100_000_000,
106 overageForgiveCostMicros: 50_000_000,
107};
108
109const DEFAULT_PLAN: FeaturePlan = {
110 feature: "plan",
111 title: "g1t",
112 monthlyCents: 2100,
113 includes: [
114 "$10 of usage each month, used first: runner minutes at their flat rate, everything else g1t runs at cost plus 20%",
115 "Everyone in the workspace at one price, never per person",
116 "Unlimited projects, previews and repositories",
117 "Checks, workflows, the merge queue, deployments, semantic search, and Security and quality on private repositories",
118 "Usage past $10 is charged the same way, up to your spend limit",
119 ],
120 overage:
121 "Everything g1t runs is metered from the first unit, priced from what it costs g1t plus 20%: runner minutes at a fixed rate for each machine, the rest at cost plus 20%. Your own runners cost nothing. Unused included usage does not roll over.",
122};
123
124/** How each part of a workspace is charged. */
125const WORKSPACE_CHARGES: { what: string; how: string; soon?: boolean }[] = [
126 {
127 what: "People chatting",
128 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.",
129 },
130 { what: "Docs", how: "Included on every plan, like chat: pages, live editing and history.", soon: true },
131 {
132 what: "Your coding agents",
133 how: "Nothing from g1t. Coding agents you already use connect through the MCP server and the API with your access tokens; their models are billed by whoever runs them. What they start on g1t, such as checks and workflows, is charged like anyone else's.",
134 },
135 {
136 what: "Files in chat and Docs",
137 how: "The storage meter, at cost plus 20%, past what is free.",
138 soon: true,
139 },
140];
141
142const FAQ: { q: string; a: string }[] = [
143 {
144 q: "Do people pay to use Chat?",
145 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.",
146 },
147 {
148 q: "Does using my coding agent with g1t cost extra?",
149 a: "No. Claude Code, Codex, Cursor and other coding agents connect through g1t's MCP server and API with your access tokens, at no charge. Their models are billed by whoever runs them. What they start on g1t, such as checks and workflows, is charged like anything else.",
150 },
151 {
152 q: "Does adding the whole company cost more?",
153 a: "No. There are no seats. People who only chat cost nothing.",
154 },
155 {
156 q: "What does moving from GitHub cost, and can we leave again?",
157 a: "Moving in is an import: bring repositories across from GitHub with every branch, tag and their issues. 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.",
158 },
159 {
160 q: "Is Docs included?",
161 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.",
162 },
163];
164
165/** The ways to reach g1t about an enterprise account. */
166const ENTERPRISE_MAIL = "mailto:support@g1t.sh?subject=Enterprise%20billing%20for%20g1t";
167
168const HOW = [
169 {
170 title: "Our cost, passed through",
171 body: "Every runner minute, build and app request costs g1t money at Cloudflare. Builds and app traffic are charged at that cost plus 20%, from the first second and the first request; runner minutes at a fixed rate for each machine, set from its cost plus 20% and never under its cost with every vCPU busy. Use a little, pay a little.",
172 },
173 {
174 title: "Prices follow costs, by themselves",
175 body: "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.",
176 },
177 {
178 title: "The 20% is the overhead",
179 body: "It pays for running g1t and for building and keeping up the features you use. The same 20% on everything, and nothing bundled in.",
180 },
181 {
182 title: "Your own runners are free",
183 body: "Checks, workflows and the merge queue on your own hardware cost nothing here.",
184 },
185 {
186 title: "No seats, ever",
187 body: "Once a workspace is on the plan, add as many people as you like. It pays one flat price for the plan, and for what it uses past what the plan includes.",
188 },
189 {
190 title: "Prices exclude tax",
191 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.",
192 },
193 {
194 title: "No card fee on top",
195 body: "Stripe's card processing fee is part of the price. Paying by card, by bank transfer or by invoice costs the same: the price, plus tax where it applies.",
196 },
197];
198
199/** One row of the free-and-plan table. */
200type Row = { what: string; free: string; plan: string; note?: string };
201
202function rows(tier: Required<FreeTier>): Row[] {
203 return [
204 {
205 what: "Chat",
206 free: "Included, for the people already in the workspace",
207 plan: "Included, for unlimited members",
208 note: "Channels, direct messages, threads, mentions and live delivery. History is never cut off.",
209 },
210 {
211 what: "Docs (coming soon)",
212 free: "Included",
213 plan: "Included",
214 note: "Pages, live editing and history, once Docs ships.",
215 },
216 {
217 what: "The forge",
218 free: "Free",
219 plan: "Included",
220 note: "Public and private repositories, issues, pull requests, reviews, protected branches, code owners, search and Explore.",
221 },
222 {
223 what: "Checks, workflows, merge queue",
224 free: "After a card check: the trial, and the open-source pool for checks, workflows and the merge queue on public repositories",
225 plan: "From the plan's included usage, then by the runner minute, at a fixed rate for each machine",
226 },
227 {
228 what: "Projects and previews",
229 free: "Not available: deployments run on g1t's machines",
230 plan: "Unlimited, and never charged for. An app no one visits costs nothing.",
231 },
232 {
233 what: "Deployments",
234 free: "Not available",
235 plan: "Builds by the second, app requests, CPU time and custom domains, each from the first at cost plus 20%",
236 },
237 {
238 what: "Semantic search",
239 free: "After a card check, from the trial",
240 plan: "From the plan's included usage, then at cost plus 20%",
241 },
242 {
243 what: "Private storage",
244 free: `${gigabytes(tier.freePrivateStorageBytes)}, never charged. Past it, pushes to private repositories stop until you make room or start the plan.`,
245 plan: `${gigabytes(tier.freePrivateStorageBytes)} free, then at cost plus 20%. Pushes never stop.`,
246 note: "Public repository storage is free, with a 5 GB limit per workspace on every plan.",
247 },
248 {
249 what: "Git operations",
250 free: `${count(tier.gitOperationsIncluded)} a month, never charged. Past it, slowed to 60 an hour until the month turns.`,
251 plan: `${count(tier.gitOperationsIncluded)} a month free, then at cost plus 20%. Never slowed.`,
252 note: "Clones, fetches and pushes through g1t.",
253 },
254 {
255 what: "Actions cache",
256 free: "2 GiB an entry and 10 GiB a repository, never charged",
257 plan: "The same limits, with what it stores at cost plus 20%",
258 },
259 {
260 what: "Audit log",
261 free: `${tier.auditRetentionDays} days, with export`,
262 plan: `${tier.planAuditRetentionDays} days, with export`,
263 note: "Longer by arrangement. Older entries are deleted each day.",
264 },
265 {
266 what: "Secret scanning, push protection, vulnerability alerts, security updates",
267 free: "Included",
268 plan: "Included",
269 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.",
270 },
271 { what: "Single sign-on", free: "On every plan, once it is built", plan: "On every plan, once it is built" },
272 {
273 what: "Members",
274 free: "Only the people already in it: a free workspace cannot add members, invite people or invite outside collaborators",
275 plan: "Unlimited, never per seat",
276 note: "Each person can own one free workspace. More workspaces need the plan.",
277 },
278 {
279 what: "Usage past what is included",
280 free: "Not possible: a free workspace never runs up a bill",
281 plan: "Priced from cost plus 20%, up to a spend limit you set. No quotas: only your limit stops anything.",
282 },
283 ];
284}
285
286export default function Pricing({ loaderData }: Route.ComponentProps) {
287 const { book, unpriced, free } = loaderData;
288 const checked = book?.prices.map((p) => p.checkedAt).filter((at): at is string => !!at).sort().at(-1);
289 const given = Object.fromEntries(Object.entries(book?.free ?? {}).filter(([, value]) => value != null));
290 const tier: Required<FreeTier> = { ...DEFAULT_FREE, ...given };
291 const plan = book?.plans?.find((p) => p.feature === "plan") ?? DEFAULT_PLAN;
292 const price = plan.monthlyCents / 100;
293 const dollars = wholeDollars;
294 // What g1t's own metered work is marked up, from the price book: one figure today.
295 const runMarkups = (book?.prices ?? [])
296 .filter((p) => !SHOWN_APART.has(p.meter) && p.meter !== "security_activation" && p.costMicros > 0)
297 .map((p) => p.markupPercent);
298 const markup = runMarkups.length && Math.min(...runMarkups) === Math.max(...runMarkups) ? `${runMarkups[0]}%` : "20%";
299 // Price changes, without the retired agent and model meters.
300 const changes = (book?.changes ?? []).filter((change) => !retired(change.meter));
301 return (
302 <main className="mx-auto max-w-4xl px-4 py-12">
303 <p className="text-sm font-medium text-accent">Pricing</p>
304 <h1 className="mt-2 text-3xl font-semibold tracking-tight sm:text-4xl">What g1t runs, priced from cost plus {markup}.</h1>
305 <p className="mt-3 max-w-2xl text-muted">
306 People chatting and the forge are free for everyone. Everything g1t runs is priced from what it costs g1t plus{" "}
307 {markup}: runner minutes at a fixed rate for each machine, the rest at cost plus {markup}. Your own runners are free, connecting your coding agents costs nothing, and there are no seats. The numbers on this page are the live price book g1t charges from. Prices exclude tax, which is added
308 where it applies.
309 </p>
310 <Card asChild tone="plain" className="mt-6 grid gap-px overflow-hidden bg-line text-sm sm:grid-cols-2 lg:grid-cols-4">
311 <ul>
312 {[
313 ["What g1t runs", `At cost + ${markup}`, "Sandboxes, builds, hosting, storage, search and scans"],
314 ["Your own runners", "Free", "Checks and workflows on your hardware"],
315 ["Your coding agents", "Free to connect", "Through the MCP server and the API"],
316 ["People", "No seats", "Everyone in the workspace at one price"],
317 ].map(([what, price, about]) => (
318 <li key={what} className="bg-surface px-4 py-3">
319 <p className="text-xs text-muted">{what}</p>
320 <p className="mt-0.5 font-medium">{price}</p>
321 <p className="mt-0.5 text-xs text-faint">{about}</p>
322 </li>
323 ))}
324 </ul>
325 </Card>
326 {free && (
327 <div className="mt-5 rounded-xl border border-accent/30 bg-accent/5 px-4 py-3 text-sm">
328 <span className="font-medium">Free while g1t is being built out.</span>{" "}
329 <span className="text-muted">Usage is recorded at these prices but not charged for now. The plan is charged.</span>
330 </div>
331 )}
332
333 <section className="mt-10 rounded-xl border border-accent/40 bg-surface p-6">
334 <div className="flex flex-wrap items-baseline justify-between gap-3">
335 <h2 className="flex flex-wrap items-center gap-2 text-xl font-semibold tracking-tight">
336 {plan.title}
337 <span className="rounded-full bg-accent/15 px-2 py-0.5 text-xs font-medium tracking-normal text-accent">Recommended</span>
338 </h2>
339 <p>
340 <span className="text-3xl font-semibold tabular-nums">${price}</span>{" "}
341 <span className="text-sm text-muted">a month per workspace</span>
342 <span className="block text-right text-xs text-faint">Plus tax where it applies</span>
343 </p>
344 </div>
345 <p className="mt-2 text-sm text-muted">
346 The plan for a team that ships: unlimited members, checks, the merge queue and deployments.
347 </p>
348 <p className="mt-3 text-sm text-fg-soft">
349 One price for the whole team: a 10-person team pays ${price} a month, not ${price} a person.
350 </p>
351 <ul className="mt-4 space-y-1.5 text-sm text-muted">
352 {plan.includes.map((line) => (
353 <li key={line} className="flex gap-2">
354 <span aria-hidden className="text-accent">
355 ✓
356 </span>
357 {line}
358 </li>
359 ))}
360 </ul>
361 <p className="mt-3 text-xs text-faint">{plan.overage}</p>
362 <div className="mt-5 grid gap-5 border-t border-line pt-5 text-sm sm:grid-cols-2">
363 <div>
364 <p className="font-medium">Where the ${price} goes</p>
365 <p className="mt-1 text-muted">
366 $10 comes back to you as usage: runner minutes, builds and deployments, priced from cost plus 20%, used before
367 anything else. The other $10 pays for running g1t, the free forge for everyone, and the people building it.
368 </p>
369 </div>
370 <div>
371 <p className="font-medium">No quotas</p>
372 <p className="mt-1 text-muted">
373 No count of projects, previews, builds, requests or git operations ever stops a workspace on the plan. Past
374 the $10, usage is charged at the same prices, and only your spend limit stops it. Unused included usage does
375 not roll over.
376 </p>
377 </div>
378 </div>
379 <p className="mt-5 text-sm text-muted">An owner starts the plan from the workspace's Billing page.</p>
380 </section>
381
382 <section id="workspace" className="mt-14">
383 <h2 className="text-xl font-semibold tracking-tight">Chat, Docs and your coding agents</h2>
384 <p className="mt-1 max-w-3xl text-sm text-muted">
385 People talking costs g1t very little, so it is included. So is connecting the coding agents you already use.
386 </p>
387 <Card tone="plain" className="mt-4 overflow-hidden">
388 <dl className="divide-y divide-line text-sm">
389 {WORKSPACE_CHARGES.map((row) => (
390 <div key={row.what} className="grid gap-1 px-4 py-3 sm:grid-cols-[14rem_1fr] sm:gap-4">
391 <dt className="font-medium">
392 {row.what}
393 {row.soon && (
394 <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>
395 )}
396 </dt>
397 <dd className="text-muted">{row.how}</dd>
398 </div>
399 ))}
400 </dl>
401 </Card>
402 </section>
403
404 <h2 className="mt-14 text-xl font-semibold tracking-tight">Free and the plan, side by side</h2>
405 <p className="mt-1 text-sm text-muted">
406 Secret scanning, push protection, vulnerability alerts and security updates are free everywhere, on every plan.
407 </p>
408 {/* On a phone, one row at a time with both answers under it; a table that wide would scroll. */}
409 <Card asChild tone="plain" divided className="mt-4 text-sm sm:hidden">
410 <ul>
411 {rows(tier).map((row) => (
412 <li key={row.what} className="px-4 py-3">
413 <p className="font-medium">{row.what}</p>
414 {row.note && <p className="text-xs text-faint">{row.note}</p>}
415 <dl className="mt-2 grid grid-cols-[4.5rem_1fr] gap-x-3 gap-y-1.5">
416 <dt className="text-xs leading-5 text-faint">Free</dt>
417 <dd className="text-muted">{row.free}</dd>
418 <dt className="text-xs leading-5 text-faint">{plan.title}</dt>
419 <dd className="text-muted">{row.plan}</dd>
420 </dl>
421 </li>
422 ))}
423 </ul>
424 </Card>
425 <Card tone="plain" className="mt-4 hidden overflow-x-auto sm:block">
426 <table className="w-full min-w-xl text-left text-sm">
427 <thead className="border-b border-line text-xs text-muted">
428 <tr>
429 <th className="px-4 py-2.5 font-medium">
430 <span className="sr-only">What</span>
431 </th>
432 <th className="px-4 py-2.5 font-medium">Free</th>
433 <th className="px-4 py-2.5 font-medium">
434 {plan.title}, ${price} a month
435 </th>
436 </tr>
437 </thead>
438 <tbody className="divide-y divide-line">
439 {rows(tier).map((row) => (
440 <tr key={row.what} className="align-top">
441 <td className="px-4 py-3">
442 <p className="font-medium">{row.what}</p>
443 {row.note && <p className="text-xs text-faint">{row.note}</p>}
444 </td>
445 <td className="px-4 py-3 text-muted">{row.free}</td>
446 <td className="px-4 py-3 text-muted">{row.plan}</td>
447 </tr>
448 ))}
449 </tbody>
450 </table>
451 </Card>
452 <p className="mt-3 text-sm text-muted">
453 Git operations cost g1t money too: Cloudflare charges g1t $0.15 per 1,000. {count(tier.gitOperationsIncluded)} a
454 month is far more than an active workspace uses.
455 </p>
456
457 <h2 className="mt-14 text-xl font-semibold tracking-tight">No card, no compute</h2>
458 <div className="mt-3 max-w-3xl space-y-3 text-sm text-muted">
459 <p>
460 Checks, workflows, the merge queue, deployments and semantic search run on g1t's machines. They need
461 the plan, or a card check.
462 </p>
463 <p>
464 The reason: compute costs g1t real money from the first second, and free compute draws people who use it to
465 mine cryptocurrency. A card check is the smallest gate that stops that, with one trial per card.
466 </p>
467 <p>
468 A card check is never charged. Stripe saves and verifies the card, with 3-D Secure where your bank asks for it.
469 Nothing is charged until an owner starts the plan, and then the same card is used, without asking for it again.
470 The trial needs a credit or debit card; prepaid cards can still pay for the plan.
471 </p>
472 </div>
473
474 <div className="mt-5 grid gap-4 sm:grid-cols-2">
475 <Card asChild className="p-5">
476 <section>
477 <h3 className="font-medium">The trial</h3>
478 <p className="mt-1.5 text-sm text-muted">
479 {dollars(tier.trialWorkspaceMicros)} of usage, once per workspace and once per card, after a card check with a credit or
480 debit card. It comes from a{" "}
481 {dollars(tier.trialMonthlyPoolMicros)} pool each month for everyone; when a month's pool is given out, new
482 trials wait until the 1st. The trial does not cover deployments and never turns into a charge. If the last
483 run on a trial goes past it, g1t covers the difference.
484 </p>
485 </section>
486 </Card>
487 <Card asChild className="p-5">
488 <section>
489 <h3 className="font-medium">The open-source pool</h3>
490 <p className="mt-1.5 text-sm text-muted">
491 Checks, workflows and the merge queue on public repositories, after a card check:{" "}
492 {dollars(tier.ossPoolMicros)} a month in all, up to {dollars(tier.ossRepoMicros)} a month per repository.
493 When the pool or a repository's share is used up, the work waits for the
494 month to turn, or the workspace pays as usual.
495 </p>
496 </section>
497 </Card>
498 </div>
499
500 <h2 className="mt-14 text-xl font-semibold tracking-tight">Limits, and how to raise them</h2>
501 <p className="mt-1 max-w-3xl text-sm text-muted">
502 g1t lets usage run ahead of payment only so far. Limits keep a mistake small, for you and for g1t.
503 </p>
504 <ul className="mt-4 grid gap-3 text-sm sm:grid-cols-2">
505 <Card asChild className="p-4">
506 <li>
507 <p className="font-medium">{dollars(tier.paidStartCeilingMicros)} in the first month</p>
508 <p className="mt-1 text-muted">
509 A workspace on the plan can use up to {dollars(tier.paidStartCeilingMicros)} in its first month. After that,
510 the limit grows with payments that clear.
511 </p>
512 </li>
513 </Card>
514 <Card asChild className="p-4">
515 <li>
516 <p className="font-medium">Your own spend limit</p>
517 <p className="mt-1 text-muted">
518 Owners set a monthly spend limit anywhere up to the highest limit the workspace has had, with no approval.
519 Once, you can raise it yourself to twice that.
520 </p>
521 </li>
522 </Card>
523 <Card asChild className="p-4">
524 <li>
525 <p className="font-medium">Prepay to raise it now</p>
526 <p className="mt-1 text-muted">
527 Prepaying from $25 raises what you can use by the same amount, at once. From $1,000 you can also pay by bank
528 transfer.
529 </p>
530 </li>
531 </Card>
532 <Card asChild className="p-4">
533 <li>
534 <p className="font-medium">Raise my limit</p>
535 <p className="mt-1 text-muted">
536 Need more? Ask from Billing with the amount, why, and what you expect to spend. You get an answer within one
537 business day, in the app and by email.
538 </p>
539 </li>
540 </Card>
541 </ul>
542
543 <h2 className="mt-14 text-xl font-semibold tracking-tight">When usage runs high</h2>
544 <ul className="mt-4 grid gap-3 text-sm sm:grid-cols-2">
545 <Card asChild className="p-4">
546 <li>
547 <p className="font-medium">A spike pauses new work</p>
548 <p className="mt-1 text-muted">
549 When an hour's spend is five times your usual hour, and at least $5, new compute waits for an owner to choose
550 Keep going or Stop. Runs already going finish.
551 </p>
552 </li>
553 </Card>
554 <Card asChild className="p-4">
555 <li>
556 <p className="font-medium">Alerts at 50, 75, 90 and 100%</p>
557 <p className="mt-1 text-muted">
558 Of the plan's included usage, your spend limit and g1t's limit: in the app and by email.
559 </p>
560 </li>
561 </Card>
562 <Card asChild className="p-4">
563 <li>
564 <p className="font-medium">Spent more than you meant to? Tell us</p>
565 <p className="mt-1 text-muted">
566 Tell us from Billing what happened. Once in 12 months, g1t can credit back usage you did not mean, always
567 including its 20% on it. Larger credits, or a second one within 12 months, are reviewed by a person.
568 </p>
569 </li>
570 </Card>
571 </ul>
572 <p className="mt-3 text-sm text-muted">
573 No card is charged less than {dollars(tier.minChargeMicros)} when a month closes, so a payment's fee is never most
574 of it. Smaller amounts carry over to the next invoice. Charges at a limit always go through.
575 </p>
576
577 <div className="mt-14 grid gap-4 sm:grid-cols-2">
578 {HOW.map((item) => (
579 <Card asChild key={item.title} className="p-5">
580 <section>
581 <h2 className="font-medium">{item.title}</h2>
582 <p className="mt-1.5 text-sm text-muted">{item.body}</p>
583 </section>
584 </Card>
585 ))}
586 </div>
587
588 <h2 className="mt-14 text-xl font-semibold tracking-tight">Usage</h2>
589 <p className="mt-1 text-sm text-muted">
590 {checked ? (
591 <>
592 Last checked against Cloudflare's bill <TimeAgo at={checked} />.
593 </>
594 ) : (
595 "Starting from Cloudflare's published prices; checked against its bill daily."
596 )}
597 </p>
598 <Card tone="plain" className="mt-4 overflow-x-auto">
599 <table className="w-full text-left text-sm sm:min-w-xl">
600 <thead className="border-b border-line text-xs text-muted">
601 <tr>
602 <th className="px-4 py-2.5 font-medium">What</th>
603 <th className="px-4 py-2.5 font-medium">Costs g1t</th>
604 {/* The markup is in what you pay; on a phone the column gives way. */}
605 <th className="hidden px-4 py-2.5 font-medium sm:table-cell">Markup</th>
606 <th className="px-4 py-2.5 font-medium">You pay</th>
607 </tr>
608 </thead>
609 <tbody className="divide-y divide-line">
610 {machines().map((instance) => (
611 <tr key={instance.machine}>
612 <td className="px-4 py-3">
613 <p className="font-medium">
614 Runner minutes, {instance.label === "standard" ? "standard machine" : instance.label}
615 </p>
616 <p className="text-xs text-faint">
617 {machineSize(instance)}. Each job's time rounded up to the minute; checks, workflows and the merge queue
618 </p>
619 </td>
620 <td className="px-4 py-3 font-mono text-xs tabular-nums text-muted">Up to {money(busyMinuteMicros(instance))} a minute</td>
621 <td className="hidden px-4 py-3 tabular-nums sm:table-cell">Fixed rate</td>
622 <td className="px-4 py-3 font-mono text-xs tabular-nums">{money(instance.microsPerMinute)} a minute</td>
623 </tr>
624 ))}
625 <tr>
626 <td className="px-4 py-3">
627 <p className="font-medium">Your own runners</p>
628 <p className="text-xs text-faint">Checks, workflows and the merge queue on your own hardware</p>
629 </td>
630 <td className="px-4 py-3 text-muted">Nothing</td>
631 <td className="hidden px-4 py-3 tabular-nums sm:table-cell">—</td>
632 <td className="px-4 py-3 text-muted">Free</td>
633 </tr>
634 <tr>
635 <td className="px-4 py-3">
636 <p className="font-medium">Projects, previews and apps</p>
637 <p className="text-xs text-faint">Having them. An app's requests and CPU time are charged below.</p>
638 </td>
639 <td className="px-4 py-3 text-muted">Next to nothing</td>
640 <td className="hidden px-4 py-3 tabular-nums sm:table-cell">—</td>
641 <td className="px-4 py-3 text-muted">Not charged</td>
642 </tr>
643 {unpriced && (
644 <tr>
645 <td colSpan={4} className="px-4 py-3">
646 <Unavailable what="The metered prices" compact />
647 </td>
648 </tr>
649 )}
650 {(book?.prices ?? []).filter((price) => !SHOWN_APART.has(price.meter)).map((price) => (
651 <tr key={price.meter}>
652 <td className="px-4 py-3">
653 <p className="font-medium">{price.title}</p>
654 <p className="text-xs text-faint">
655 {price.meter === "actions_cache" ? "On the plan only. A free workspace is never charged for it. " : ""}
656 {price.source === "cloudflare" ? "Measured from Cloudflare's bill" : "Cloudflare's published price"}
657 </p>
658 </td>
659 <td className="px-4 py-3 font-mono text-xs tabular-nums text-muted">{perUnit(price, price.costMicros)}</td>
660 <td className="hidden px-4 py-3 tabular-nums sm:table-cell">{price.markupPercent}%</td>
661 <td className="px-4 py-3 font-mono text-xs tabular-nums">{perUnit(price, price.priceMicros)}</td>
662 </tr>
663 ))}
664 </tbody>
665 </table>
666 </Card>
667
668 <h2 className="mt-14 text-xl font-semibold tracking-tight">Enterprise</h2>
669 <p className="mt-1 text-sm text-muted">
670 For organizations with several workspaces: one invoice and one limit. The prices are the ones on this page.
671 </p>
672 <Card asChild className="mt-4 p-5">
673 <section>
674 <ul className="grid gap-3 text-sm sm:grid-cols-2">
675 <li>
676 <p className="font-medium">Consolidated invoicing</p>
677 <p className="text-muted">One monthly invoice for every workspace, paid by card or bank transfer.</p>
678 </li>
679 <li>
680 <p className="font-medium">Custom terms</p>
681 <p className="text-muted">One limit across every workspace, invoice terms and a billing contact, set with you.</p>
682 </li>
683 <li>
684 <p className="font-medium">Security on every plan</p>
685 <p className="text-muted">
686 The audit log with export, {tier.planAuditRetentionDays} days or longer by arrangement, and secret push
687 protection, for every workspace.
688 </p>
689 </li>
690 <li>
691 <p className="font-medium">
692 Single sign-on <span className="ml-1 rounded bg-raised px-1.5 py-0.5 text-xs text-muted">Coming</span>
693 </p>
694 <p className="text-muted">Through your identity provider, on every plan once it is built. Not available yet.</p>
695 </li>
696 </ul>
697 <a
698 href={ENTERPRISE_MAIL}
699 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"
700 >
701 Write to us about enterprise
702 <ArrowUpRight size={14} />
703 </a>
704 </section>
705 </Card>
706
707 <h2 className="mt-14 text-xl font-semibold tracking-tight">Price changes</h2>
708 {book && changes.length > 0 ? (
709 <Card asChild tone="plain" divided className="mt-4">
710 <ul>
711 {changes.map((change) => {
712 const title = book.prices.find((p) => p.meter === change.meter)?.title ?? change.meter;
713 // What you pay moved: the cost, the markup, or both.
714 const before = change.oldCostMicros * (100 + (change.oldMarkupPercent ?? change.markupPercent));
715 const after = change.newCostMicros * (100 + change.markupPercent);
716 const up = after > before;
717 const fresh = after === before || before === 0;
718 return (
719 <li key={`${change.meter}-${change.createdAt}`} className="px-4 py-3 text-sm">
720 <p>
721 <span className="font-medium">{title}</span>{" "}
722 {fresh ? (
723 <span className="text-muted">new</span>
724 ) : (
725 <span className={up ? "text-warn" : "text-accent"}>
726 {up ? "up" : "down"} {Math.abs((after / before - 1) * 100).toFixed(1)}%
727 </span>
728 )}
729 </p>
730 <p className="mt-0.5 text-xs text-faint">
731 {change.effectiveAt ? (
732 <>
733 {change.reason} · <span className="text-fg-soft">takes effect {change.effectiveAt.slice(0, 10)}</span>
734 </>
735 ) : (
736 <>
737 {change.reason} · <TimeAgo at={change.createdAt} />
738 </>
739 )}
740 </p>
741 </li>
742 );
743 })}
744 </ul>
745 </Card>
746 ) : unpriced ? (
747 <div className="mt-4">
748 <Unavailable what="Price changes" />
749 </div>
750 ) : (
751 <p className="mt-2 text-sm text-muted">None yet. When a price moves, it is listed here with why.</p>
752 )}
753
754 <h2 id="faq" className="mt-14 text-xl font-semibold tracking-tight">Questions</h2>
755 <Card asChild tone="plain" divided className="mt-4">
756 <dl>
757 {FAQ.map((item) => (
758 <div key={item.q} className="px-4 py-4 text-sm">
759 <dt className="font-medium">{item.q}</dt>
760 <dd className="mt-1.5 text-muted">{item.a}</dd>
761 </div>
762 ))}
763 </dl>
764 </Card>
765
766 <a
767 href="https://docs.g1t.sh/guides/usage-and-billing/"
768 className="mt-12 inline-flex items-center gap-1.5 text-sm text-accent hover:underline"
769 >
770 How usage and billing work
771 <ArrowUpRight size={14} />
772 </a>
773 </main>
774 );
775}