Skip to content

Post: per-branch AI spend isolation (Neon AI Gateway #3)#1444

Open
bobbyonmagic wants to merge 5 commits into
mainfrom
post/neon-per-branch-ai-spend-isolation
Open

Post: per-branch AI spend isolation (Neon AI Gateway #3)#1444
bobbyonmagic wants to merge 5 commits into
mainfrom
post/neon-per-branch-ai-spend-isolation

Conversation

@bobbyonmagic

Copy link
Copy Markdown
Collaborator

Third AI-gateway post (dated Jul 16). Because a Neon branch carries its own gateway endpoint and its own usage ledger, model spend is attributed and isolated per environment (prod / preview / CI).

Tested live: read production's usage, branched a ci-run environment, ran two calls against it, and confirmed the branch's ledger grew (gpt-5-nano 25 -> 71) while production stayed at 25. Reuses neon-ai-gateway-demo. Honest about copy-on-write: a branch inherits prod's ledger snapshot at branch time; the isolation is in the delta.

Interactive: the /usage query, an animated terminal of the isolation proof, a note callout on the copy-on-write nuance, and a github card. OG generated, validated.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 2, 2026

Copy link
Copy Markdown

Deploying devops-daily with  Cloudflare Pages  Cloudflare Pages

Latest commit: aa5230e
Status: ✅  Deploy successful!
Preview URL: https://7644c60f.devops-daily.pages.dev
Branch Preview URL: https://post-neon-per-branch-ai-spen.devops-daily.pages.dev

View logs

@bobbyonmagic bobbyonmagic force-pushed the post/neon-per-branch-ai-spend-isolation branch from 804295f to aa5230e Compare July 8, 2026 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant