Skip to content

Commit 258cee5

Browse files
committed
glaze-byok-ai: honor the developer's saved AI default policy
The Free Coder for Glaze onboarding app writes ~/.config/glaze-coder/defaults.json with aiDefault set to glaze, byok-fallback or byok-first. The skill reads it before scaffolding so new apps follow the developer's chosen policy: platform-only, Glaze with free fallback, or free engines first with Glaze never running unasked.
1 parent 23d80a1 commit 258cee5

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

  • plugins/glaze-coder/skills/glaze-byok-ai

plugins/glaze-coder/skills/glaze-byok-ai/SKILL.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ description: Give Glaze app users a choice of AI engine - built-in Glaze AI (zer
55

66
# User-selectable AI engine for Glaze apps (Glaze AI or BYOK)
77

8+
Before scaffolding, read the developer's saved policy if present:
9+
`~/.config/glaze-coder/defaults.json` with `{"aiDefault": "glaze" | "byok-fallback"
10+
| "byok-first"}` (written by the Free Coder for Glaze onboarding app).
11+
`byok-fallback` = Glaze default + auto-fallback on (this skill's default);
12+
`byok-first` = scaffold with a free engine as the app's default provider and Glaze
13+
never running unasked; `glaze` = built-in AI only, skip the engine picker. A missing
14+
file means `byok-fallback`.
15+
816
Default policy for apps built with glaze-coder: when an app calls AI, the end user
917
gets to pick the engine. Glaze AI works with zero setup but spends the user's Glaze
1018
credits; a bring-your-own-key engine is free for them (Gemini has a real free tier);

0 commit comments

Comments
 (0)