RELAY_PORT (default 8080) and speaks OpenAI- and Anthropic-shape wire
protocols, plus Relay’s own provider-neutral canonical shape.
Authentication
Every inference request authenticates with a relay key as a bearer token:POST /api/relay-keys). The plaintext is shown exactly once on creation —
Relay stores only sha256(plaintext).
Namespacing
Each vendor wire shape is served under its own path prefix. The bare/v1
namespace belongs to Relay’s canonical shape.
Endpoints
Examples
Responses stream byte-for-byte from the upstream when the inbound shape
matches the upstream shape. Cross-shape requests (e.g. OpenAI in,
Anthropic upstream) are translated per chunk through Relay’s canonical
protocol.
Models
Themodel field is resolved against your catalog. A model is reachable
only if a policy grants it to your relay key and the model has an
enabled host binding with a healthy host key. List what your key can reach: