Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
relay
command
Command relay is the self-hosted agent relay: an authenticating inference proxy that fronts agent CLIs (v1: claude) behind Anthropic- and OpenAI-compatible HTTP APIs.
|
Command relay is the self-hosted agent relay: an authenticating inference proxy that fronts agent CLIs (v1: claude) behind Anthropic- and OpenAI-compatible HTTP APIs. |
|
internal
|
|
|
api/a2a
Package a2a exposes the relay as an Agent2Agent (A2A) agent: a third wire adapter alongside the Anthropic and OpenAI ones.
|
Package a2a exposes the relay as an Agent2Agent (A2A) agent: a third wire adapter alongside the Anthropic and OpenAI ones. |
|
api/anthropic
Package anthropic translates the Anthropic Messages wire format to and from the neutral core model (REQ-API-01).
|
Package anthropic translates the Anthropic Messages wire format to and from the neutral core model (REQ-API-01). |
|
api/openai
Package openai translates the OpenAI Chat Completions wire format to and from the neutral core model (REQ-API-03).
|
Package openai translates the OpenAI Chat Completions wire format to and from the neutral core model (REQ-API-03). |
|
backend/claude
Package claude adapts the `claude` CLI to the neutral core.Backend interface.
|
Package claude adapts the `claude` CLI to the neutral core.Backend interface. |
|
backend/ollama
Package ollama adapts a local Ollama server to the neutral core.Backend interface.
|
Package ollama adapts a local Ollama server to the neutral core.Backend interface. |
|
config
Package config loads and validates the relay configuration.
|
Package config loads and validates the relay configuration. |
|
core
Package core defines the neutral request/event model that sits between the wire-format API layer and the agent backends.
|
Package core defines the neutral request/event model that sits between the wire-format API layer and the agent backends. |
|
obs
Package obs provides request IDs, structured request logging, and a minimal JSON metrics snapshot (REQ-API-06, DQ-4: minimal JSON over Prometheus for v1).
|
Package obs provides request IDs, structured request logging, and a minimal JSON metrics snapshot (REQ-API-06, DQ-4: minimal JSON over Prometheus for v1). |
|
outputs
Package outputs retains the artifacts of agentic requests for later retrieval.
|
Package outputs retains the artifacts of agentic requests for later retrieval. |
|
ratelimit
Package ratelimit implements a per-caller token bucket: the relay's concurrency cap bounds simultaneous work, this bounds sustained rate, so one caller cannot drain the operator's subscription.
|
Package ratelimit implements a per-caller token bucket: the relay's concurrency cap bounds simultaneous work, this bounds sustained rate, so one caller cannot drain the operator's subscription. |
|
server
Package server wires the HTTP mux: routing, auth, and the handlers that bridge wire decoding to core dispatch.
|
Package server wires the HTTP mux: routing, auth, and the handlers that bridge wire decoding to core dispatch. |
|
toolbridge
Package toolbridge lets a backend agent call the *caller's* tools.
|
Package toolbridge lets a backend agent call the *caller's* tools. |
Click to show internal directories.
Click to hide internal directories.