skillfed

llama-index-agent-openai

llama-index agent openai integration

llama-index-agent-openai v0.4.12 3.4M downloads/30d#2,621 on PyPI
Permissive license MIT AGING released

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-openai

uv

uv add llama-index-agent-openai

poetry

poetry add llama-index-agent-openai

Installing 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

llama index openai agentopenai integration llama indexai agent framework openaillama index agent libraryopenai llm agent integrationagentic ai with openaillama index reasoning agents
llama-index-integrationopenai-agentsrag-framework

More Artificial Intelligence packages

litellm

LiteLLM provides a unified Python interface to…

permissive · top 100 on PyPI

huggingface-hub

Client library and CLI tool for downloading,…

permissive · top 100 on PyPI

langchain

LangChain provides a framework for building…

permissive · top 1,000 on PyPI

hf-xet

hf-xet provides chunk-based deduplication and…

permissive · top 1,000 on PyPI

tokenizers

Tokenizers converts raw text into token…

permissive · top 1,000 on PyPI

transformers

Transformers provides a unified framework for…

permissive · top 1,000 on PyPI

datarobot-genai

A toolkit for building and deploying AI agents…

permissive · top 15,000 on PyPI

llama-index-multi-modal-llms-openai

Integrates OpenAI's multi-modal language models…

permissive · top 5,000 on PyPI

llama-index-program-openai

Integrates OpenAI-powered program synthesis…

permissive · top 5,000 on PyPI

llama-index-embeddings-openai

Integrates OpenAI's embedding models with…

permissive · top 5,000 on PyPI

llama-index-question-gen-openai

Generates follow-up questions from documents or…

permissive · top 5,000 on PyPI

llama-index-workflows

An async-first, event-driven framework for…

permissive · top 5,000 on PyPI

llama-index-llms-openai-like

Provides a thin wrapper to use…

permissive · top 15,000 on PyPI

llama-index-embeddings-azure-openai

Integrates Azure OpenAI's embedding models with…

permissive · top 15,000 on PyPI

llama-index

LlamaIndex is a data framework that connects…

permissive · top 5,000 on PyPI

llama-index-llms-gemini

Integrates Google's Gemini LLM with LlamaIndex,…

permissive · top 15,000 on PyPI

Further reading