Skip to content
exoticrouter.com ↗

LangChain

Provides model integrations and abstractions for building agents. Point it at ExoticRouter with a base URL and a key: here are the values, and where they go in LangChain.

Setting Value
Base URL, OpenAI-compatible API https://api.exoticrouter.com/v1
Base URL, Anthropic API https://api.exoticrouter.com
Base URL, Gemini API https://api.exoticrouter.com
API key Your key, from the API keys page
Model An id such as anthropic/claude-sonnet-5-5, from the models page

A tool that adds /v1 to the address by itself is given https://api.exoticrouter.com instead.

An example with a handful of models and a stand-in for the key. Put your own key where it says sk-er-YOUR-KEY.

example.py
from langchain_openai import ChatOpenAI
llm = ChatOpenAI(model="anthropic/claude-opus-5-5", base_url="https://api.exoticrouter.com/v1", api_key="sk-er-YOUR-KEY")
reply = llm.invoke("Hello")
print(reply.content)

Install langchain-openai first. Every model in the catalogue answers on this endpoint.

API Models
OpenAI-compatible Every text model in the catalogue
Anthropic The Claude models
Gemini The Gemini models

The setting is described in LangChain’s own documentation.

  • Vercel AI SDK: Connects model providers, tools, structured output, and streaming UIs.
  • OpenAI Agents SDK: Builds agents with tools, handoffs, guardrails, and tracing.
  • LangGraph: Orchestrates stateful agent workflows as graphs.
  • LlamaIndex: Builds agents and retrieval applications over external data.
  • Claude Agent SDK: Builds applications around Claude’s tool-using agent loop.
  • Google Agent Development Kit: Builds, evaluates, and deploys agents with Google’s development toolkit.