Onlook Design Updates: A Second Model Provider Joins the Lineup
Onlook added TrustedRouter as a second model provider, extending the existing provider framework rather than rebuilding it — giving developers access to models from OpenAI, Anthropic, Google, and DeepSeek through one router.
Duration: PT2M6S
Episode overview
This episode is a short developer briefing from Onlook Design Updates.
It explains recent repository work in plain language.
- Show: Onlook Design Updates
- Published: 2026-08-16T13:10:03Z
- Audio duration: PT2M6S
Transcript excerpt
This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.
Good morning. It's August 16th, and here's your Onlook Design Update.
Today's headline: Onlook's model provider system just grew from one option to two, and the way it grew matters as much as what was added.
Pull request 3135, from developer J. Perla, adds TrustedRouter as a model provider. TrustedRouter is OpenAI-compatible — one API key gives access to models from OpenAI, Anthropic, Google, DeepSeek, and others, with per-request routing and automatic failover built in.
The interesting part here is architectural discipline. Before this change, the large language model provider setup had exactly one member — it was built for a single provider. Rather than designing a new structure for the second one, this PR extends the existing shape: a new models enum for TrustedRouter, an entry…
That last piece is worth flagging for maintainability. The code uses an "assert never" pattern on the default case of that switch — which means the compiler itself forces every new provider to add a matching case, or the build fails. It's a small guardrail, but it's the kind of thing that prevents a forgotten case…
For developers working with this code: if you're adding a third provider down the line, this…
Nearby episodes from Onlook Design Updates
- Taming Runaway AI Agents
- Weekly Recap - Fixing a Local Setup Deadlock
- Docker Setup Deadlock Fixed
- Fixing the Self-Host Onboarding Path
- Weekly Recap - Closing a Cross-Account Security Gap
- Closing a Major Security Gap
- Closing a Cross-Project Access Gap
- Weekly Recap - Closing a Security Gap and Smoothing Setup