Skip to main content

Proxy Gateway

The Proxy Gateway sits between agent containers and external APIs. Agents make requests to the proxy, and Steward injects the real credentials before forwarding.

How It Works

Agent code that normally calls an API directly:
Instead routes through Steward’s proxy:
The proxy:
  1. Strips the dummy auth header
  2. Looks up the route for api.openai.com
  3. Decrypts the real API key from the Secret Vault
  4. Injects it as Authorization: Bearer sk-proj-abc123...
  5. Forwards to https://api.openai.com/v1/chat/completions

URL Routing

The proxy supports two routing modes:

Common Route Configurations

Request Pipeline

Every proxied request passes through this pipeline:

Network Isolation

The real security win comes from combining the proxy with Docker network isolation:
Even if an agent is fully compromised:
  • ❌ Cannot exfiltrate data to arbitrary URLs
  • ❌ Cannot access other agents’ data
  • ❌ Cannot spend more than policy allows
  • ✅ Can only communicate through Steward (which logs everything)

Performance