News · Build history
One model gateway, and keys that never reach the browser
On 13 November 2026 every AI call in TheCircle.ai started going through one model gateway on our server, and the rule we had followed since day two became a hard, tested rule: secrets live on the server only.
By TheCircle editorialMilestone date: 1 min readUpdated

TheCircle.ai uses many AI models: for research, writing, images, video and voice. By November 2026 they were called from dozens of places. On 13 November 2026 they started going through one door.
One gateway
The model gateway is a single layer on our server that knows every model we use, what each one is for, and how to call it. Product features ask for a use — “write”, “research”, “draw an image” — and the gateway picks the model, reads the key, makes the call, records what it used and maps any error to our own message. By the end of the day every model call in the platform went through it. Admins can override which model serves a use, with versions and a rollback, and test a call before switching.
Customers see our names for what they get — for example Image Fast, Standard and Pro — rather than a list of vendors.
Keys stay on the server
The principle from our second day became a written hard rule, with checks to back it:
- Keys are read at run time from a secret manager by the server’s own identity, and only ever sent in request headers, never in a web address.
- Logs redact anything that looks like a key or token.
- The build fails if a browser setting looks like a secret, provider libraries were removed from the browser code, and every deploy scans the live site for anything key-shaped.
Since then
The gateway grew routing, retries and evaluations in the following week, and on 22 November access to each secret was narrowed to exactly the service identity that needs it. Nothing about it is visible to customers — which is the point.
Next: Vera’s AI team.
- Build history
- Security
- Model gateway
