AI & BYOK

Tostada's AI features are bring-your-own-key. You paste an Anthropic API key into Settings; it's stored in localStorage and only sent directly to Anthropic. Tostada has no server in between.

What's live

Surface Status
Ask AI on Primitives — generate a palette from a prompt ✅ UI live, stub mode by default (wiring deferred)
Suggest layout principles from a description ⏳ deferred
Real Spread (rewrite-in-your-system) ⏳ deferred
Drop a screenshot, get a token patch ⏳ deferred

Every AI surface has a manual fallback. The key gates AI-assisted shortcuts; nothing in Tostada requires a key.

Stub mode

When no key is set, the AI surfaces still work — they return deterministic mock responses. This lets you test the diff/apply/preview flow without paying for a call. Set a real key to switch to real responses.