Any OpenAI-compatible SDK
Route any application that uses an OpenAI-compatible SDK, including Python, TypeScript, Go, LangChain, LlamaIndex, or any other client, through Axemere Gateway by changing one base URL.
How It Works
The Axemere Gateway exposes OpenAI-compatible and Anthropic-compatible proxy endpoints. Any client that supports a configurable base URL works without code changes beyond setting that URL.
Python (openai SDK)
from openai import OpenAI client = OpenAI( base_url="https://us.gw.axemere.ai/proxy/openai/k/mvgc_k_your-key-here/v1", api_key="unused", # gateway authenticates via the key in the URL ) response = client.chat.completions.create( model="gpt-4o", messages=[{"role": "user", "content": "Hello"}], )
Python (anthropic SDK)
import anthropic client = anthropic.Anthropic( base_url="https://us.gw.axemere.ai/proxy/anthropic/k/mvgc_k_your-key-here", api_key="unused", ) message = client.messages.create( model="claude-opus-4-8", max_tokens=64, messages=[{"role": "user", "content": "Hello"}], )
TypeScript / Node.js
import Anthropic from "@anthropic-ai/sdk"; const client = new Anthropic({ baseURL: "https://us.gw.axemere.ai/proxy/anthropic/k/mvgc_k_your-key-here", apiKey: "unused", });
Environment variables (any SDK)
Most SDKs read base URL from environment variables. Set these before running your app:
# Anthropic export ANTHROPIC_BASE_URL="https://us.gw.axemere.ai/proxy/anthropic/k/mvgc_k_your-key-here" export ANTHROPIC_API_KEY="unused" # OpenAI export OPENAI_BASE_URL="https://us.gw.axemere.ai/proxy/openai/k/mvgc_k_your-key-here/v1" export OPENAI_API_KEY="unused"
Add Attribution
Embed workload, project, account, and customer IDs in the URL to tag every request for spend tracking:
https://us.gw.axemere.ai/proxy/anthropic/k/mvgc_k_.../w/my-team/p/my-project
See Proxy Path Attribution for the full URL schema.
Prerequisites
- A running Axemere gateway: Managed or Self-Hosted
- A gateway key from Console → Gateway Keys
Next Steps
- Build with Axemere: use the native gateway API for full attribution and governance control
- Proxy Path Attribution: full URL schema
- Records: verify requests are flowing