Skip to content

feat: mention BYOK in CLI create flow and credits error card - #942

Open
Aditya-thesys wants to merge 2 commits into
mainfrom
ap-byok-free-tier
Open

feat: mention BYOK in CLI create flow and credits error card#942
Aditya-thesys wants to merge 2 commits into
mainfrom
ap-byok-free-tier

Conversation

@Aditya-thesys

@Aditya-thesys Aditya-thesys commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Part of the BYOK free-tier launch: surface BYOK in the two places a new CLI user decides how models get paid for.

Changes

CLI (@openuidev/cli)

  • The openui-cloud choice in the interactive template picker now reads: "OpenUI Cloud — free hosted models or bring your own key, managed history, tools & artifacts; fastest setup (recommended)"
  • create --help templates blurb adds: "Bring your own OpenAI/Anthropic/Google key (BYOK) on any plan, including the free tier."

Devtools (@openuidev/devtools)

  • The out-of-credits card (ERR_BILLING_THRESHOLD_EXCEEDED) now offers BYOK as the alternative to purchasing credits, with a secondary Add your own key button linking to https://console.thesys.dev/byok
  • QuotaErrorInfo gains a showByokCta flag; the rate-limit card (ERR_QUOTA_EXCEEDED) keeps it off for now (follow-up)

Screenshot

BYOK option on the out-of-credits devtools card

Verification

  • tsc --noEmit clean in both packages; prettier clean
  • Verified live in a freshly scaffolded openui-cloud app: triggered a real 429 billing-threshold error and confirmed the card renders the new copy + button
  • Note: the card only matches when @openuidev/react-headless >= 0.9.6 is installed (0.9.5 emits the 429 event without error.type, so no card renders on any devtools version). Fresh scaffolds resolve ^0.9.3 to 0.9.6, so they're fine.

Shipping note

Reaches users via the next @openuidev/devtools npm publish (template pins ^0.0.3) and the next CLI publish.

- create: cloud template option now reads "free hosted models or bring
  your own key"; --help templates blurb notes BYOK works on any plan
- devtools: out-of-credits card offers BYOK alongside Purchase Credits,
  with an "Add your own key" button linking to the console BYOK page
@vercel

vercel Bot commented Aug 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openui-docs Ready Ready Preview Aug 7, 2026 9:47am

Request Review

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