llama-index-llms-openai-like

LlamaIndex LLM integration for any OpenAI-compatible API endpoint, via the OpenAILike class.

SDK
PyPI
v0.8.0
52,331 stars
MIT License

Repository Health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum. How we score it →
92 /100 Excellent
Development Activity 100
Maintenance 100
Community 76
Maturity 52
Momentum 40

Technical Analysis

AI-assessed by reading the actual repository — architecture, code quality, innovation, and documentation. How we score it →
77 /100 Good
Architecture 78
Code Quality 80
Innovation 66
Learning Curve 84

llama-index-llms-openai-like is a LlamaIndex integration package that lets you use any OpenAI-API-compatible endpoint as an LLM within the LlamaIndex framework. It provides the OpenAILike class, a thin wrapper around LlamaIndex’s OpenAI client that points at a custom api_base and lets you declare model capabilities explicitly.

This is the standard way to connect self-hosted or third-party inference servers, such as local runtimes (LM Studio, vLLM, llama.cpp servers), and OpenAI-compatible providers, into LlamaIndex pipelines. You supply the model name, API base URL, context window, and flags for whether the model is a chat model and supports function calling, and it plugs into the rest of LlamaIndex’s querying, agent, and RAG machinery.

What You Get

  • An OpenAILike LLM class that targets any OpenAI-compatible api_base endpoint.
  • Explicit configuration of context window, chat vs. completion mode, and function-calling support.
  • Drop-in compatibility with LlamaIndex query engines, agents, and RAG pipelines.
  • A thin, well-scoped wrapper over the LlamaIndex OpenAI client for non-OpenAI backends.

Common Use Cases

  • Using a locally hosted model server (vLLM, LM Studio, llama.cpp) as the LLM in LlamaIndex.
  • Connecting an OpenAI-compatible third-party inference provider to LlamaIndex pipelines.
  • Swapping the underlying model behind a LlamaIndex RAG or agent workflow without changing app logic.

Under The Hood

Architecture - The package is a small integration under llama-index-integrations/llms/llama-index-llms-openai-like/llama_index/llms/openai_like/, defining OpenAILike (and OpenAILikeResponses) as subclasses of the LlamaIndex OpenAI LLM that relax OpenAI-specific assumptions: they accept an arbitrary api_base, take explicit context_window, is_chat_model, and is_function_calling_model flags, and otherwise reuse the parent’s request/response handling. Tech Stack - Python built on llama-index-llms-openai and llama-index-core, packaged with hatch as part of the run-llama/llama_index monorepo; it targets the same Python versions as core LlamaIndex. Code Quality - As an official monorepo integration it inherits the project’s tooling (tests, mypy, codespell, shared CI) and is intentionally minimal, delegating almost all behavior to the well-tested OpenAI integration it extends. API Design - Instantiation is a single constructor call mirroring the OpenAI LLM plus a few capability flags, so developers already familiar with LlamaIndex LLMs can adopt it with almost no new concepts.

Used by 9 apps in this directory

Python
89%
Apache 2.0

Apache Airflow

Data Engineering

46,995

Define, schedule, and monitor complex data workflows as Python code — with a powerful UI, 80+ provider integrations, and battle-tested scalability across thousands of production deployments.

View details
96
Repo Health
89
Technical
64
Dependency
Built with
Python 89%
Updated 1 weeks ago
Python
51%
AGPL 3.0

LearnHouse

CMS · Learning Management

2,301

Open-source LMS with AI tutoring, real-time collaboration boards, live code execution, and built-in course monetization — self-hosted in minutes.

View details
90
Repo Health
77
Technical
66
Dependency
Built with
Python 51%
TypeScript 48%
Updated 1 weeks ago
Python
63%
GPL 3.0

Paperless-ngx

Bookmarks Archiving

46,108

Turn your paper pile into a searchable digital archive with OCR, AI classification, and automated workflows — all running on your own server.

View details
91
Repo Health
88
Technical
67
Dependency
Built with
Python 63%
TypeScript 28%
Updated 1 weeks ago
Python
63%
GPL 3.0

Paperless-ngx

Bookmarks Archiving

46,108

Turn your paper pile into a searchable digital archive with OCR, AI classification, and automated workflows — all running on your own server.

View details
91
Repo Health
88
Technical
67
Dependency
Built with
Python 63%
TypeScript 28%
Updated 1 weeks ago
Python
49%
Other

Arize Phoenix

Analytics · Devops · Monitoring

11,641

Open-source AI observability platform for tracing, evaluating, and debugging LLM applications with built-in intelligence and MCP support.

View details
90
Repo Health
88
Technical
67
Dependency
Built with
Python 49%
TypeScript 42%
Updated 1 weeks ago
Python
49%
Other

Arize Phoenix

Analytics · Devops · Monitoring

11,641

Open-source AI observability platform for tracing, evaluating, and debugging LLM applications with built-in intelligence and MCP support.

View details
90
Repo Health
88
Technical
67
Dependency
Built with
Python 49%
TypeScript 42%
Updated 1 weeks ago
Python
86%
Apache 2.0

PrivateGPT

AI Development

57,548

The open-source API layer that turns local LLMs into production private AI applications with full Claude API compatibility

View details
87
Repo Health
83
Technical
69
Dependency
Built with
Python 86%
Updated 2 weeks ago
Python
86%
Apache 2.0

PrivateGPT

AI Development

57,548

The open-source API layer that turns local LLMs into production private AI applications with full Claude API compatibility

View details
87
Repo Health
83
Technical
69
Dependency
Built with
Python 86%
Updated 2 weeks ago
JavaScript
50%
AGPL 3.0

QRev

AI Agents · CRM

363

Open source AI-first sales platform that replaces Salesforce with autonomous agents handling prospecting, outreach, and lead management at scale.

View details
38
Repo Health
68
Technical
63
Dependency
Built with
JavaScript 50%
Python 28%
TypeScript 14%
Updated 8 months ago

Join founders buildingwith open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on Substack
Join 750+ subscribers