An open-source, faster Devin alternative
TypeScript
Paywall copy: drop subscription mention (BYO is Pro-only, work 070)
Mohamed Habib via Computer009614a9dbbe
diff --git a/cli/README.md b/cli/README.mdindex 55ecba07..3546e8cf 100644--- a/cli/README.md+++ b/cli/README.md@@ -157,6 +157,5 @@ opencomputer upgrade # prints the checkout link for Pro ($200/mo)When credits are exhausted every command fails with HTTP `402` and a structured`insufficient_credits` error whose `hint` and `details.upgradeUrl` point at-checkout for Pro ($200/mo). Pro also lets the user connect their own Claude or-ChatGPT subscription. Agents driving the CLI should stop, relay that link to+checkout for Pro ($200/mo). Agents driving the CLI should stop, relay that link tothe user, and resume once billing is sorted rather than retrying.diff --git a/cli/src/billing.ts b/cli/src/billing.tsindex d97e9a59..efb73480 100644--- a/cli/src/billing.ts+++ b/cli/src/billing.ts@@ -56,7 +56,7 @@ export function creditsFooter(status: CreditsStatus | null): string {}return (`\n${status.usagePlan === "base" ? "You've used your free credits." : "You've used this month's credits."} ` +- `Upgrade to ${UPGRADE_PLAN_LABEL} to keep going, or to use your own Claude or ChatGPT subscription: ${status.upgradeUrl}\n`+ `Upgrade to ${UPGRADE_PLAN_LABEL} to keep going: ${status.upgradeUrl}\n`);}if (status.isLow) {diff --git a/cli/src/errors.ts b/cli/src/errors.tsindex c8b7caee..c084500c 100644--- a/cli/src/errors.ts+++ b/cli/src/errors.ts@@ -41,7 +41,7 @@ export function structuredError(error: unknown): StructuredCLIError {? `Out of this month's credits \u2014 do not retry. They renew next billing period; the user can review billing at ${url}.`: "Out of credits \u2014 do not retry. Tell the user to upgrade to Pro ($200/mo)" +(url ? ` at ${url}` : " with `opencomputer upgrade`") +- " to keep going, or to use their own Claude or ChatGPT subscription, then run the command again.",+ " to keep going, then run the command again.",details: {status: error.status,apiCode: error.code ?? "insufficient_credits",diff --git a/cloudflare-workers/api-edge/src/billing_onramp.test.ts b/cloudflare-workers/api-edge/src/billing_onramp.test.tsindex 9fac98e6..bb283c07 100644--- a/cloudflare-workers/api-edge/src/billing_onramp.test.ts+++ b/cloudflare-workers/api-edge/src/billing_onramp.test.ts@@ -86,7 +86,7 @@ describe("billing_onramp", () => {it("paywall copy names Pro and BYO subscriptions but not the grant amount", () => {expect(FREE_CREDITS_PAYWALL).toBe(- "You've used your free credits. Upgrade to Pro ($200/mo) to keep going, or to use your own Claude or ChatGPT subscription.",+ "You've used your free credits. Upgrade to Pro ($200/mo) to keep going.",);});diff --git a/cloudflare-workers/api-edge/src/billing_onramp.ts b/cloudflare-workers/api-edge/src/billing_onramp.tsindex d0278931..b3b5ef8b 100644--- a/cloudflare-workers/api-edge/src/billing_onramp.ts+++ b/cloudflare-workers/api-edge/src/billing_onramp.ts@@ -47,8 +47,7 @@ export const PLAN_DISPLAY_NAMES: Record<UsagePlan, string> = {// The free-tier paywall copy, shared by every surface. It does not state the// grant amount: that is still $5 today and changes in a later step.export const FREE_CREDITS_PAYWALL =- `You've used your free credits. Upgrade to Pro ($${UPGRADE_PLAN_PRICE_USD}/mo) to keep going, ` +- "or to use your own Claude or ChatGPT subscription.";+ `You've used your free credits. Upgrade to Pro ($${UPGRADE_PLAN_PRICE_USD}/mo) to keep going.`;export function billingLinks(request: Request): BillingLinks {const origin = new URL(request.url).origin;@@ -72,12 +71,12 @@ export function insufficientCreditsMessage(links: BillingLinks, plan?: UsagePlanif (plan === "pro") {return (`You've used this month's credits. Ask the user to upgrade to Pro ($${UPGRADE_PLAN_PRICE_USD}/mo) at ${links.upgradeUrl} ` +- "to keep going, or to use their own Claude or ChatGPT subscription; do not retry until they have."+ "to keep going; do not retry until they have.");}return (`You've used your free credits. Ask the user to upgrade to Pro ($${UPGRADE_PLAN_PRICE_USD}/mo) at ${links.upgradeUrl} ` +- "to keep going, or to use their own Claude or ChatGPT subscription; do not retry until they have."+ "to keep going; do not retry until they have.");}diff --git a/skills/opencomputer/SKILL.md b/skills/opencomputer/SKILL.mdindex 10441a4d..dbba9323 100644--- a/skills/opencomputer/SKILL.md+++ b/skills/opencomputer/SKILL.md@@ -58,8 +58,7 @@ the same way**. Do **not** retry or work around it. Instead:1. Stop and tell the user they've used their OpenComputer credits.2. Relay the upgrade link from the error verbatim (it looks like- `https://app.opencomputer.dev/billing?plan=max`). Pro is $200/month and also- lets them use their own Claude or ChatGPT subscription. If the error links+ `https://app.opencomputer.dev/billing?plan=max`). Pro is $200/month. If the error linksto plain `/billing` instead, the org is already on Pro and its monthlycredits renew next billing period.3. Resume once they confirm they've upgraded.diff --git a/web/src/components/app-shell.tsx b/web/src/components/app-shell.tsxindex 071f7d39..a33be523 100644--- a/web/src/components/app-shell.tsx+++ b/web/src/components/app-shell.tsx@@ -618,7 +618,7 @@ function HaltBanner() {<CircleAlert className="size-4 shrink-0" /><span>{FREE_CREDITS_USED} {upgradeLink(`Upgrade to ${UPGRADE_PLAN_LABEL}`)} to- keep going, or to use your own Claude or ChatGPT subscription.+ keep going.</span></div>)diff --git a/web/src/components/post-session-upsell.tsx b/web/src/components/post-session-upsell.tsxindex 5b9f6861..2af807fa 100644--- a/web/src/components/post-session-upsell.tsx+++ b/web/src/components/post-session-upsell.tsx@@ -97,8 +97,7 @@ export function PostSessionUpsell({{formatUsd(creditsRemainingCents ?? 0)} left.</p><p className="text-muted-foreground mt-0.5">- Upgrade to {UPGRADE_PLAN_LABEL} to keep going when they run out, or- to use your own Claude or ChatGPT subscription.+ Upgrade to {UPGRADE_PLAN_LABEL} to keep going when they run out.</p></div></div>diff --git a/web/src/lib/billing-onramp.test.ts b/web/src/lib/billing-onramp.test.tsindex ccd3aef2..8326d27a 100644--- a/web/src/lib/billing-onramp.test.ts+++ b/web/src/lib/billing-onramp.test.ts@@ -45,7 +45,7 @@ describe('billing on-ramp plans', () => {it('uses one paywall message without the grant amount or a top-up', () => {expect(FREE_CREDITS_PAYWALL).toBe(- "You've used your free credits. Upgrade to Pro ($200/mo) to keep going, or to use your own Claude or ChatGPT subscription.",+ "You've used your free credits. Upgrade to Pro ($200/mo) to keep going.",)expect(FREE_CREDITS_PAYWALL).not.toMatch(/top.?up|\$5\b|\$10\b/i)})diff --git a/web/src/lib/billing-onramp.ts b/web/src/lib/billing-onramp.tsindex 0983b63c..fa415deb 100644--- a/web/src/lib/billing-onramp.ts+++ b/web/src/lib/billing-onramp.ts@@ -35,7 +35,7 @@ export const UPGRADE_PLAN_LABEL = `${PLAN_NAMES[UPGRADE_PLAN]} ($${UPGRADE_OFFER// The free-tier paywall, the same on every surface. It does not state the// grant amount: that is still $5 today and changes in a later step.export const FREE_CREDITS_USED = "You've used your free credits."-export const FREE_CREDITS_PAYWALL = `${FREE_CREDITS_USED} Upgrade to ${UPGRADE_PLAN_LABEL} to keep going, or to use your own Claude or ChatGPT subscription.`+export const FREE_CREDITS_PAYWALL = `${FREE_CREDITS_USED} Upgrade to ${UPGRADE_PLAN_LABEL} to keep going.`// Monthly grant per plan; the base grant is the signup allowance.export const BASE_GRANT_CENTS = 500diff --git a/web/src/managed-agents/BYOK.tsx b/web/src/managed-agents/BYOK.tsxindex aaebc7b9..aa70f6d7 100644--- a/web/src/managed-agents/BYOK.tsx+++ b/web/src/managed-agents/BYOK.tsx@@ -194,7 +194,7 @@ export function ManagedProjectBYOK({<EmptyStateicon={LockKeyhole}title="BYOK is available on Pro"- description={`Bring your own provider keys and route this project's models through them. Available on ${UPGRADE_PLAN_LABEL}, which also lets you use your own Claude or ChatGPT subscription.`}+ description={`Bring your own provider keys and route this project's models through them. Available on ${UPGRADE_PLAN_LABEL}.`}action={<Button asChild><Linkdiff --git a/web/src/managed-agents/Detail.tsx b/web/src/managed-agents/Detail.tsxindex c0398962..2e8fc4f1 100644--- a/web/src/managed-agents/Detail.tsx+++ b/web/src/managed-agents/Detail.tsx@@ -533,7 +533,7 @@ function PlaygroundChat({>Upgrade to {UPGRADE_PLAN_LABEL}</Link>{' '}- to keep going, or to use your own Claude or ChatGPT subscription.+ to keep going.</p>) : error ? (<p className="text-destructive mb-2 text-xs">{error.message}</p>diff --git a/web/src/pages/Billing.tsx b/web/src/pages/Billing.tsxindex f535999e..97088ee1 100644--- a/web/src/pages/Billing.tsx+++ b/web/src/pages/Billing.tsx@@ -292,7 +292,7 @@ const USAGE_PLANS: Array<{label: PLAN_NAMES.max,price: PLAN_OFFERS.max.priceUsd,credits: PLAN_OFFERS.max.creditsUsd,- description: `$${PLAN_OFFERS.max.creditsUsd.toLocaleString()} in shared credits added every month. Use your own Claude or ChatGPT subscription.`,+ description: `$${PLAN_OFFERS.max.creditsUsd.toLocaleString()} in shared credits added every month.`,},]diff --git a/web/src/pages/SessionDetail.tsx b/web/src/pages/SessionDetail.tsxindex 7e0973a3..1c86ff5f 100644--- a/web/src/pages/SessionDetail.tsx+++ b/web/src/pages/SessionDetail.tsx@@ -638,8 +638,7 @@ for await (const event of session.events()) {>Upgrade to {UPGRADE_PLAN_LABEL}</Link>{' '}- to keep going, or to use your own Claude or ChatGPT- subscription.+ to keep going.</span></div>)}