skillfed

langchain-openai

An integration package connecting OpenAI and LangChain

langchain-openai Permissive license MIT Active 144,174 v1.5.0 released

Install

langchain-openai on PyPI

pip

pip install langchain-openai

uv

uv add langchain-openai

poetry

poetry add langchain-openai

Package 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Scientific/Engineering :: Artificial Intelligence

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.
langchain openai integrationopenai api langchainllm integration openailangchain gpt modelsopenai embeddings langchainlangchain openai chatai framework openai connector

Similar packages