Skip to main content

Proxy API

The Steward Proxy runs on a separate port (default: 8080) and handles credential injection for outbound API requests. Agents make requests to the proxy, and Steward injects real credentials before forwarding.

Base URL

Typically accessed from within the Docker network. Not exposed to the public internet.

Authentication

All proxy requests require an agent JWT:

Making Requests

Via Named Alias

Named aliases provide a clean URL pattern:
The proxy:
  1. Strips the agent’s Authorization header
  2. Resolves openaiapi.openai.com
  3. Finds the matching route for api.openai.com/*
  4. Decrypts and injects the real credential
  5. Forwards to https://api.openai.com/v1/chat/completions

Via Direct Host

For APIs without a named alias:

SDK Integration

Most LLM SDKs support custom base URLs, making proxy integration trivial:

Proxy Endpoints

Error Responses

Configuring Aliases

Aliases are configured per-tenant via route definitions. When you create a route for api.openai.com, the alias openai is automatically available. Default alias mappings: Custom aliases can be configured by the platform operator.