TetherInstall
Home/Docs/Rust proxy architecture
Architecture

Rust proxy architecture

The backend is a modular monolith: small Rust modules with explicit service boundaries and a single binary.

Release
Alpha channel
Runtime
macOS + Linux + local proxy
Docs
19 guides

Request path

  • gateway parses the incoming path and chooses OpenAI-compatible or Anthropic upstreams.
  • context derives model, prompt, preview, and input hashes from provider payloads.
  • trace ingestion queues persistence work so the proxy hot path does not block on SQLite.
  • cache stores and replays identical request bodies for local iteration.

Trace services

ModuleResponsibility
captureBuild TraceCapture from request metadata and body previews.
summarizeExtract response text, token counts, language, and tool ids.
storeConvert captures and outcomes into trace_calls rows.
queryRead trace snapshots and session lists for the UI API.
replayReplay selected nodes and invalidate downstream branches.