Skip to main content
LangChain’s ChatOpenAI is OpenAI-compatible — point it at the Orbitrage gateway and every call is routed and traced. Tools, managed tools, and streaming all work unchanged.

Install

Basic chat

Wrapper clients build their own HTTP client, so set the base URL and key explicitly, and pass your end-user id via default_headers.

Managed tools (web search, scrape, calculator — no keys)

Reference a managed tool by name and Orbitrage runs it server-side, then loops the result back to the model.
Your own LangChain tools (@tool / bind_tools) keep working alongside managed tools in the same call.

Streaming

Pin a direct model (glm-5.2, minimax-m3) for predictable behavior. Use model="auto" to let Orbitrage pick the cheapest capable model — and keep max_tokens ≥ 512 so reasoning models aren’t truncated.