Third-Party Tools
TrustedRails API keys speak both the OpenAI and the Anthropic API format, so they work with any tool or framework that supports either. Pick your tool below for a step-by-step guide, or follow the general pattern.
Step-by-step guides
Section titled “Step-by-step guides”Editors & coding assistants
Frameworks & gateways
Command line
Chat UIs & workflows
Any OpenAI-compatible tool
Section titled “Any OpenAI-compatible tool”The general pattern for any tool that supports a custom OpenAI endpoint:
- Find the setting for API key and enter your TrustedRails API key (
tr-prx-...) - Find the setting for Base URL (sometimes called API base, endpoint, or host) and set it to
https://proxy.trustedrails.com/v1 - Select a model from the Supported Models list
If the tool uses environment variables:
OPENAI_API_KEY=tr-prx-your-api-keyOPENAI_BASE_URL=https://proxy.trustedrails.com/v1Migrating an existing OpenAI app? See Migrating from OpenAI.
Any Anthropic-compatible tool
Section titled “Any Anthropic-compatible tool”Tools that speak the Anthropic Messages API (like Claude Code or anything built on the Anthropic SDK) connect the same way: key plus base URL. The Anthropic base URL is the bare host, without /v1:
ANTHROPIC_API_KEY=tr-prx-your-api-keyANTHROPIC_BASE_URL=https://proxy.trustedrails.comThen select a model TrustedRails serves (see Supported Models). Details on the Anthropic surface: Anthropic API Compatibility.