Skip to content

Design decisions

The choices behind Sypnia AI, and why each one was made.

Applies to EngineCloud
View as Markdown
#DecisionWhat Sypnia AI does, and why
1Tasks, not models, in your codeCode names a task; the route names the model. Models change often; your app should not need a deploy each time.
2OpenAI’s languageThe model endpoints follow the OpenAI API, so existing clients and libraries work; Sypnia’s additions travel in headers that other tools ignore.
3Routes live in the repositoryThe [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.
4Only providers that keep nothingIn Sypnia Cloud a model is offered only through endpoints that keep nothing and train on nothing. Fewer models, no surprises.
5Nothing kept by defaultQuestions and answers pass through. A route can keep them for 1 to 30 days, encrypted, with every read recorded.
6Reserve, then chargeThe 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.
7A limit for every personA task browsers can call must have a per-person limit: a public feature with no ceiling is an open tap on your credits.
8Browser tokens from the sessionA browser shows the person’s Sypnia Data session and gets a 10-minute token for the allowed tasks; secret keys never leave servers.
9Rust for the gatewayEvery model call of the suite passes through it, many as long streams; Rust keeps the added time and memory small and the counting exact.
10LicensesAGPL-3.0 for the gateway, MIT for @sypnia/ai, like the other Sypnia engines and SDKs.
11No default models when self-hostedWho hosts the gateway chooses every model and its terms; Sypnia Cloud’s defaults are a service of the cloud.
12Settings named SYPNIA_GATEWAY_The Telemetry engine already uses SYPNIA_AI_ for its own model settings; the two run side by side without confusion.
13Spans without contentCalls are traced with OpenTelemetry’s names for AI calls, so any tool reads them, and never carry what was asked or answered.
14People apply, agents proposeThrough MCP an agent reads, tries within a small daily budget and drafts routes; applying routes, limits and keys waits for a person.
15Response cache off by defaultReusing answers is right for some tasks and wrong for most; you turn it on per route.
16On AWSLambda with response streaming, in us-east-1 next to the rest of Sypnia Cloud and to Amazon Bedrock (On AWS).

    Search pages, sections and terms