Design decisions
The choices behind Sypnia AI, and why each one was made.
| # | Decision | What Sypnia AI does, and why |
|---|---|---|
| 1 | Tasks, not models, in your code | Code names a task; the route names the model. Models change often; your app should not need a deploy each time. |
| 2 | OpenAI’s language | The model endpoints follow the OpenAI API, so existing clients and libraries work; Sypnia’s additions travel in headers that other tools ignore. |
| 3 | Routes live in the repository | The [ai] table of sypnia.toml, the project’s one configuration file, is reviewed in pull requests and applied by a person with the owner or admin role; every change is a version you can go back to. |
| 4 | Only providers that keep nothing | In Sypnia Cloud a model is offered only through endpoints that keep nothing and train on nothing. Fewer models, no surprises. |
| 5 | Nothing kept by default | Questions and answers pass through. A route can keep them for 1 to 30 days, encrypted, with every read recorded. |
| 6 | Reserve, then charge | The most a call can cost is held before it runs, so a balance or a cap can never be overrun by calls running at the same time. |
| 7 | A limit for every person | A task browsers can call must have a per-person limit: a public feature with no ceiling is an open tap on your credits. |
| 8 | Browser tokens from the session | A browser shows the person’s Sypnia Data session and gets a 10-minute token for the allowed tasks; secret keys never leave servers. |
| 9 | Rust for the gateway | Every model call of the suite passes through it, many as long streams; Rust keeps the added time and memory small and the counting exact. |
| 10 | Licenses | AGPL-3.0 for the gateway, MIT for @sypnia/ai, like the other Sypnia engines and SDKs. |
| 11 | No default models when self-hosted | Who hosts the gateway chooses every model and its terms; Sypnia Cloud’s defaults are a service of the cloud. |
| 12 | Settings named SYPNIA_GATEWAY_ | The Telemetry engine already uses SYPNIA_AI_ for its own model settings; the two run side by side without confusion. |
| 13 | Spans without content | Calls are traced with OpenTelemetry’s names for AI calls, so any tool reads them, and never carry what was asked or answered. |
| 14 | People apply, agents propose | Through MCP an agent reads, tries within a small daily budget and drafts routes; applying routes, limits and keys waits for a person. |
| 15 | Response cache off by default | Reusing answers is right for some tasks and wrong for most; you turn it on per route. |
| 16 | On AWS | Lambda with response streaming, in us-east-1 next to the rest of Sypnia Cloud and to Amazon Bedrock (On AWS). |