What works today
Sanvaya is alpha. This list says what is built, with each caveat that goes with it. Anything not listed here is planned, not built: see the roadmap.
- Commands.
sanvaya checkvalidates the configuration and finds every secret without printing it.sanvaya upstarts a server withGET /healthzandGET /v1/models.sanvaya models checkasks each provider for its models and names the ones in your configuration that it does not list. It contacts the providers, so it is not part ofcheck. Tested against simulated providers only. - Chat completions (with and without streaming) and embeddings, with your own provider keys, through adapters for OpenAI, OpenAI-compatible servers, Anthropic and Google Gemini. Tested against simulated providers, and briefly against live Anthropic, Gemini and Ollama only. OpenAI itself has not been tried live.
- Model aliases with retries, fallback and time limits. Only failures that may pass are retried. A fallback sends your prompt to the next provider, and retries can be billed twice.
- Spend records and budgets per client key, team and route, using prices you enter, and an opt-in exact-match cache that is separate for each team. They are kept in a SQLite file. A hard budget is not an exact cap, because cost is estimated before each call. Cached answers are stored unredacted.
- Claude and Gemini routes support part of the OpenAI format, mainly text and function tools. Anthropic has no embeddings API. For tool use, Sanvaya keeps some model data in memory, which needs a single server process.
- An Agent Passport for each request (with a store): a record of what it was allowed to do, what was sent to which model, why it stopped, what it cost and whether it can be replayed (a request cannot). Finished records are tied to a hash-chained audit log. By default they keep a redacted copy of the request, and redaction misses things.
- OpenTelemetry traces, sent only to a collector you configure, without prompts or answers.
- Agent runs, in paper or simulation mode only. A caller names a configured agent and a goal. Every tool call goes through a tool gate: a grant, a policy, and a person's approval, typed in a terminal, where the policy asks for one. A run can be resumed, is one trace, and has an Agent Passport for each start or resume, which can be replayed. A tool is Python code, and Sanvaya cannot see what it changes. Tried live with Claude and Gemini models only, and the approval step only with a simulated model.
- Client keys protect everything under
/v1. - Limits on slow and many clients: a request that takes too long to arrive is cut off with a
408(20 seconds for the headers, 120 for the body), open connections are capped (1000 in all, 100 for each address), a client that stops reading is dropped after 60 seconds, and a client key may cap how many requests it runs at once. All are settings, tested on loopback only. There is no rate limit. - HTTPS: the server can serve HTTPS itself (TLS 1.2 or later) or run behind a TLS proxy. Plain HTTP is allowed on loopback only, or between a proxy and the server in proxy mode.
- Local unless approved: listening beyond this machine, or in proxy mode, needs a client key, one of those two TLS modes and an approval typed in a terminal. Approvals expire and can be revoked. They guard against accidents. They do not stop a program running as your user, and they do not control firewalls or tunnels.
Source: the "What works today" section of the project README.