internal/

directory
v1.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2026 License: Apache-2.0

Directories

Path Synopsis
Package agentrun answers an agent's inbox with a local CLI agent: it polls the MCP server "agents" with the agent's key, hands each task that waits for the agent to a command (claude, codex, agy or the user's own) and sends what the command printed back as the reply.
Package agentrun answers an agent's inbox with a local CLI agent: it polls the MCP server "agents" with the agent's key, hands each task that waits for the agent to a command (claude, codex, agy or the user's own) and sends what the command printed back as the reply.
Package agents lets people's agents talk through Keystone, as A2A does: an agent is a client key with a card, a task one request from one agent to another, delivered to the recipient's inbox (the MCP server "agents").
Package agents lets people's agents talk through Keystone, as A2A does: an agent is a client key with a card, a task one request from one agent to another, delivered to the recipient's inbox (the MCP server "agents").
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.
llm
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 nodetray is the desktop tray's logic, kept apart from the GUI so it is tested without one: what the menu bar shows for a daemon status, the notifications state changes raise, the icons and the settings page.
Package nodetray is the desktop tray's logic, kept apart from the GUI so it is tested without one: what the menu bar shows for a daemon status, the notifications state changes raise, the icons and the settings page.
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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL