langchain-openai
An integration package connecting OpenAI and LangChain
Install
langchain-openai on PyPI
pip
pip install langchain-openaiuv
uv add langchain-openaipoetry
poetry add langchain-openaiPackage facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4.0.0,>=3.10.0) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — certifi, langchain-core, openai, tiktoken |
| Maintenance | actively maintained — 0 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: langchain_openai-1.5.0-py3-none-any.whl
About langchain-openai
from the package's own PyPI description — quoted content, verbatim
langchain-openai
PyPI - Version (image) PyPI - License (image) PyPI - Downloads (image) Twitter (image)
Looking for the JS/TS version? Check out LangChain.js.
Quick Install
uv add langchain-openai
🤔 What is this?
This package contains the LangChain integrations for OpenAI through their openai SDK.
📖 Documentation
For full documentation, see the API reference. For conceptual guides, tutorials, and examples on using these classes, see the LangChain Docs.
📕 Releases & Versioning
See our...
Read as markdown · JSON record · Source repository · Homepage · Docs
AI interpretation — verify before relying
AI-generated interpretation of the package facts above; every digit, version, license, or vulnerability id it cites is grounded in the facts already shown on this page
Provides LangChain integrations for OpenAI's API, enabling language model operations through the openai SDK within the LangChain framework.
Low friction installation with a pure-Python wheel. Active maintenance as of 2026-08-13 with recent release activity.
MIT license permits commercial and private use with minimal restrictions, requiring only attribution and inclusion of the license notice.
Usage
pip install langchain-openai
from langchain_openai import ChatOpenAI
model = ChatOpenAI(model="gpt-4", api_key="your-key")
Requires Python 3.10 or later and a valid OpenAI API key.
Verdict: Production-ready integration package with active maintenance, no known vulnerabilities, and permissive licensing. Straightforward installation and clear dependency chain make it suitable for projects integrating OpenAI models into LangChain applications.
Needs verification
- Whether the four runtime dependencies (certifi, langchain-core, openai, tiktoken) have any known vulnerabilities or maintenance concerns.
- Specific version constraints or compatibility notes between langchain-core and openai that might affect downstream stability.
Similar packages
permissive · top 1,000 on PyPI
langchain-text-splitterspermissive · top 1,000 on PyPI
langchain-corepermissive · top 1,000 on PyPI
langchain-google-vertexaipermissive · top 1,000 on PyPI
langchain-classicpermissive · top 1,000 on PyPI
langchain-communitypermissive · top 1,000 on PyPI
langchainpermissive · top 1,000 on PyPI
langchain-protocolpermissive · top 1,000 on PyPI
qdrant-clientpermissive · top 1,000 on PyPI
langgraphpermissive · top 1,000 on PyPI