Directories
¶
| Path | Synopsis |
|---|---|
|
Package apikeys mints and verifies the caller credentials stored in the api_key table.
|
Package apikeys mints and verifies the caller credentials stored in the api_key table. |
|
Package audio transcodes the raw PCM emitted by Gemini TTS into the OGG/Opus container chat apps such as Telegram render as a voice message.
|
Package audio transcodes the raw PCM emitted by Gemini TTS into the OGG/Opus container chat apps such as Telegram render as a voice message. |
|
Package cooldown holds back upstream targets whose vendor answered 429 or 503 with Retry-After, so routing skips them without network IO until it expires.
|
Package cooldown holds back upstream targets whose vendor answered 429 or 503 with Retry-After, so routing skips them without network IO until it expires. |
|
Package crypto encrypts vendor LLM keys at rest with AES-256-GCM.
|
Package crypto encrypts vendor LLM keys at rest with AES-256-GCM. |
|
Package declarative keeps a Keystone configuration in a file and applies it through the Admin API.
|
Package declarative keeps a Keystone configuration in a file and applies it through the Admin API. |
|
Package grpcapi implements the proto services on top of proxydb, the registry, and the router.
|
Package grpcapi implements the proto services on top of proxydb, the registry, and the router. |
|
Package latent projects text into a representation space (JEPA or any embedding encoder) for semantic caching and latent guardrails.
|
Package latent projects text into a representation space (JEPA or any embedding encoder) for semantic caching and latent guardrails. |
|
Package mcpgw is Keystone's MCP gateway: clients reach registered MCP servers through /mcp with a KTMS key, and the gateway holds the servers' credentials, enforces each key's allowed_mcp and tool_rpm, and accounts for every tool call.
|
Package mcpgw is Keystone's MCP gateway: clients reach registered MCP servers through /mcp with a KTMS key, and the gateway holds the servers' credentials, enforces each key's allowed_mcp and tool_rpm, and accounts for every tool call. |
|
Package panicsafe turns a panic into a reported, recoverable error instead of a silent process death.
|
Package panicsafe turns a panic into a reported, recoverable error instead of a silent process death. |
|
Package pricing turns token usage into money.
|
Package pricing turns token usage into money. |
|
Package proxydb is the pgx data layer: api keys, the model registry, routing rules, encrypted vendor keys, and the config version counter.
|
Package proxydb is the pgx data layer: api keys, the model registry, routing rules, encrypted vendor keys, and the config version counter. |
|
Package redisguard fails Redis commands fast while Redis is unreachable.
|
Package redisguard fails Redis commands fast while Redis is unreachable. |
|
Package rediskeys builds every Redis key this service uses, so one Redis can host several deployments behind REDIS_KEY_PREFIX.
|
Package rediskeys builds every Redis key this service uses, so one Redis can host several deployments behind REDIS_KEY_PREFIX. |
|
Package router picks a rule for a request and walks its model chain.
|
Package router picks a rule for a request and walks its model chain. |
|
Package safefetch validates and downloads external media URLs with SSRF protection.
|
Package safefetch validates and downloads external media URLs with SSRF protection. |
|
Package spendlimit names the monetary limit subjects, periods and refusal reasons, and computes the UTC calendar windows they reset on.
|
Package spendlimit names the monetary limit subjects, periods and refusal reasons, and computes the UTC calendar windows they reset on. |
|
Package throttle enforces per-model RPM via GCRA, daily token budgets and monetary spend limits in Redis, shared across replicas.
|
Package throttle enforces per-model RPM via GCRA, daily token budgets and monetary spend limits in Redis, shared across replicas. |
Click to show internal directories.
Click to hide internal directories.