langchain-oci
An integration package connecting OCI and LangChain
Decision gist · record as of 2026-08-14
Yes, if you are already committed to OCI and LangChain. The package is actively maintained, has low install friction, and provides a clean integration path. However, verify that UPL-1.0 aligns with your license requirements (treatment is unclear), and confirm you have OCI credentials and service setup in place before installation.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- OCI credentials must be configured and accessible via the specified auth_profile before the integration can connect to OCI services.
- Low install friction with a pure Python wheel.
- Active maintenance—last commit 2026-08-14, released 2026-08-07.
License · maintenance · safety
UPL-1.0 (unclear) — Licensed under UPL-1.0, but license treatment is marked unclear in the package metadata. Verify the actual license terms before use in proprietary or commercial contexts.
last release 2026-08-07 (7 days) · last repo commit 2026-08-14 · 59 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 134,380 downloads/mo, #11,475 on PyPI
Alternatives
Verify before relying
pip install langchain-oci
from langchain_oci import ChatOCIGenAI
llm = ChatOCIGenAI(
model_id="MY_MODEL_ID",
service_endpoint="https://inference.generativeai.us-chicago-1.oci.oraclecloud.com",
compartment_id="ocid1.compartment.oc1..xxxxx",
auth_profile="MY_AUTH_PROFILE"
)
response = llm.invoke("Sing a ballad of LangChain.")- Whether UPL-1.0 is compatible with your project's license requirements (treatment is marked unclear)
- Whether OCI credentials and service setup are required before any integration can be used
- Support status and SLA for the repository (59 stars, active but relatively new)
What it is and what it does
langchain-oci bridges LangChain with Oracle Cloud Infrastructure's generative AI and data science services. It exposes OCI's foundation models (both on-demand and custom models on Dedicated AI Clusters) as LangChain chat and completion interfaces, plus embeddings support including multimodal image embeddings. The package also integrates with OCI Data Science model deployments, allowing you to invoke deployed models through LangChain's standard interfaces.
The integration handles authentication via OCI credentials, regional endpoints, and model configuration. It supports multimodal content—images, PDFs, video, and audio—where the underlying OCI model supports it. You configure a model by providing its OCI model ID, compartment ID, service endpoint, and authentication profile, then invoke it like any other LangChain LLM or embedding provider.
Use it for
- Build LangChain agents and chains that call OCI Generative AI foundation models instead of other third-party providers
- Embed text and images in a shared vector space using OCI's multimodal embeddings for cross-modal retrieval workflows
- Analyze images, PDFs, videos, or audio files with OCI's vision and multimodal models through LangChain's message interface
- Deploy custom models on OCI Dedicated AI Clusters and invoke them via LangChain without leaving the OCI ecosystem
- Use OCI Data Science model deployments as LangChain LLM backends for inference on custom-trained models
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are already committed to OCI and LangChain.
The package is actively maintained, has low install friction, and provides a clean integration path. However, verify that UPL-1.0 aligns with your license requirements (treatment is unclear), and confirm you have OCI credentials and service setup in place before installation.
Install
langchain-oci on PyPI
Before you install
Low install friction with a pure Python wheel. Active maintenance—last commit 2026-08-14, released 2026-08-07. Supports Python 3.9 through 3.14. Depends on langchain, langchain-core, and oci SDK libraries.
OCI credentials must be configured and accessible via the specified auth_profile before the integration can connect to OCI services.
License in practice
Licensed under UPL-1.0, but license treatment is marked unclear in the package metadata. Verify the actual license terms before use in proprietary or commercial contexts.
Quickstart
pip install langchain-oci
from langchain_oci import ChatOCIGenAI
llm = ChatOCIGenAI(
model_id="MY_MODEL_ID",
service_endpoint="https://inference.generativeai.us-chicago-1.oci.oraclecloud.com",
compartment_id="ocid1.compartment.oc1..xxxxx",
auth_profile="MY_AUTH_PROFILE"
)
response = llm.invoke("Sing a ballad of LangChain.")
Verify before relying
- Whether UPL-1.0 is compatible with your project's license requirements (treatment is marked unclear)
- Whether OCI credentials and service setup are required before any integration can be used
- Support status and SLA for the repository (59 stars, active but relatively new)
Package facts
| License | UPL-1.0 unclear |
| Python support | Supports the current Python release <4.0,>=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 10 packagesaiohttplangchainlangchain-corelangchain-openailanggraphnumpyocioci-openaiopenaipydantic |
| Maintenance | Actively maintained 7 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 134,380 / month, #11,475 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Programming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9 |
Evidence: langchain_oci-0.3.2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “langchain oracle cloud integration”
- langchain-ociIntegrates LangChain with Oracle Cloud Infrastructure (OCI) services,…
- langchain-oracledbIntegrates Oracle Database with LangChain to enable vector search,…
- oci-openaiProvides OpenAI-compatible Python clients for accessing OCI…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also langchain-nvidia-ai-endpoints · langchain-together · oci-openai · langchain-google-genai · langchain-google-vertexai · langchain-oracledb · langchain-cohere · langchain-ibm · cohere · langchain-sambanova