llama-index-agent-openai
llama-index agent openai integration
What it is and what it does
This package provides a bridge between OpenAI's language models and LlamaIndex's agent framework. It allows you to build agents that leverage OpenAI's models (via the llama-index-llms-openai dependency) within the broader LlamaIndex ecosystem (llama-index-core). The package handles the integration plumbing so you can focus on defining agent logic and tools rather than managing API calls directly.
The package depends on three runtime components: llama-index-core for the agent framework foundation, llama-index-llms-openai for OpenAI model access, and openai for the underlying API client. It requires Python >=3.9,<4.0 and supports current Python versions. No known security vulnerabilities are recorded.
Use it for:
- Build conversational AI agents that use OpenAI models to reason through multi-step tasks within a LlamaIndex application.
- Create agents that retrieve documents via llama-index-core and use OpenAI to synthesize answers from retrieved context.
- Integrate OpenAI-powered agents into larger LlamaIndex RAG pipelines.
- Develop tool-using agents where OpenAI decides which tools to call and in what order.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Integrates OpenAI language models with LlamaIndex agents, enabling agents to use OpenAI's models for reasoning and decision-making within the LlamaIndex framework.
Yes, if you are already committed to the LlamaIndex ecosystem and need OpenAI model integration for agents. The low install friction and permissive MIT license are favorable. However, the aging maintenance status (411 days since last release) warrants caution—verify compatibility with your target versions of llama-index-core and llama-index-llms-openai before committing to production use.
Install
llama-index-agent-openai on PyPI
pip
pip install llama-index-agent-openaiuv
uv add llama-index-agent-openaipoetry
poetry add llama-index-agent-openaiInstalling llama-index-agent-openai
Before you install
Low install friction with a pure Python wheel. Maintenance status is aging—last release was 411 days ago—so expect slower updates and potential compatibility drift with newer OpenAI or llama-index-core versions.
License in practice
MIT license permits commercial and private use with minimal restrictions, making it safe to adopt in most projects.
Quickstart
pip install llama-index-agent-openai
from llama_index_agent_openai import OpenAIAgent
from llama_index_llms_openai import OpenAI
agent = OpenAIAgent.from_tools(tools=[], llm=OpenAI())
Requires Python >=3.9,<4.0 and valid OpenAI API credentials.
Verify before relying
- Whether this package is actively maintained or has entered maintenance-only mode despite the aging status.
- Compatibility guarantees with current versions of llama-index-core and llama-index-llms-openai.
- Whether the package supports the latest OpenAI API features or lags behind.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (<4.0,>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — llama-index-core, llama-index-llms-openai, openai |
| Maintenance | aging — 411 days since the last release |
| First released | |
| Downloads | 3,447,788/month — #2,621 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: llama_index_agent_openai-0.4.12-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,000 on PyPI
datarobot-genaiA toolkit for building and deploying AI agents…
permissive · top 15,000 on PyPI
llama-index-multi-modal-llms-openaiIntegrates OpenAI's multi-modal language models…
permissive · top 5,000 on PyPI
llama-index-program-openaiIntegrates OpenAI-powered program synthesis…
permissive · top 5,000 on PyPI
llama-index-embeddings-openaiIntegrates OpenAI's embedding models with…
permissive · top 5,000 on PyPI
llama-index-question-gen-openaiGenerates follow-up questions from documents or…
permissive · top 5,000 on PyPI
llama-index-workflowsAn async-first, event-driven framework for…
permissive · top 5,000 on PyPI
llama-index-llms-openai-likeProvides a thin wrapper to use…
permissive · top 15,000 on PyPI
llama-index-embeddings-azure-openaiIntegrates Azure OpenAI's embedding models with…
permissive · top 15,000 on PyPI
llama-indexLlamaIndex is a data framework that connects…
permissive · top 5,000 on PyPI
llama-index-llms-geminiIntegrates Google's Gemini LLM with LlamaIndex,…
permissive · top 15,000 on PyPI