The LangChain integration now has a dedicated package: langchain-openrouter on PyPI and @langchain/openrouter on npm. Most guides still teach the old ChatOpenAI base_url override. This is the current path, plus the routing economics the docs skip.
Using OpenRouter With LangChain: ChatOpenRouter Setup Guide
calendar_today
July 29, 2026
domain
openrouter