Skip to main content

Proxy Helpers

When using the Proxy Gateway, you need to configure LLM SDK clients to route through Steward instead of calling APIs directly. These helpers simplify that process.

Manual Configuration

Most LLM SDKs support custom base URLs. Configure them to point at the Steward proxy:

StewardProxy Helper

The SDK provides a planned StewardProxy helper class for wrapping common SDK clients:
StewardProxy is planned for SDK v0.4.0. For now, use the manual configuration shown above — it’s straightforward and works with any SDK.

Environment Variables

In your agent container, you need:

Pattern: Wrapper Function

A common pattern for projects with multiple API clients: