Endpoint

ModRouter’s LangChain router combines OpenAI, Anthropic, GenAI, Bedrock, and Cohere route families under the /langchain prefix.

OpenAI Provider

Anthropic Provider

Bedrock Provider

For LangChain classes that use boto3 / Bedrock endpoint URLs, use:
and dummy AWS credentials if the SDK requires signing credentials.

Notes

  • Choose the LangChain provider class that matches the request shape you want to send.
  • ModRouter’s /langchain endpoint is a compatibility prefix, not a LangChain runtime. Your chains, tools, and memory still run in your application.
  • If a LangChain integration sends an endpoint ModRouter does not implement, use a provider-specific ModRouter integration or passthrough.