ogx

Repo

An open-source, OpenAI-compatible API server that runs any model on your own infrastructure.

8.5k1.4kPythonMIT

Claim this listing

Made ogx? Claim it to edit the listing and see how many people view it. Sign in to claim

OGX is an open-source agentic API server, formerly called Llama Stack, that acts as a drop-in replacement for the OpenAI API on your own hardware. It is for developers who want to swap models and hosts without rewriting client code.

It is written in Python, uses the MIT license, and has about 8,500 stars. The project description is "Open GenAI Stack", and the README says the rename also changed the mission to model-agnostic, multi-SDK and production-grade.

Table of contents

  1. What OGX does
  2. Key features
  3. How to get started
  4. Who should use it, and when to skip it
  5. OGX alternatives
  6. License and cost
  7. FAQs

What OGX does

You run an OGX server and point any OpenAI-compatible client at it. The README example uses the standard openai Python package with base_url set to http://localhost:8321/v1. The server forwards requests to whichever model provider you configured, so the application code stays the same when you move from a local model to a hosted one.

The provider system is pluggable. The README suggests developing locally with Ollama, deploying to production with vLLM, or connecting a managed service, with the same API throughout. You can also call it with the Anthropic SDK through /v1/messages or the Google GenAI SDK through /v1alpha/interactions, so one server can serve clients written for different vendors.

Key features

  • Chat Completions, Completions and Embeddings endpoints that match the OpenAI shapes.
  • A Responses API that handles server-side agent orchestration: tool calling, MCP server integration and built-in file search (RAG) in one call. The README says it passes the Open Responses conformance test suite.
  • Vector Stores and Files endpoints for managed document storage and search.
  • A Batches endpoint for offline processing.
  • A /v1alpha/skills endpoint for versioned skill bundles, which are zip archives with a SKILL.md manifest. The v1alpha path means this part may change.
  • Official client SDKs for Python and TypeScript.
  • Models such as Llama, GPT, Gemini and Mistral, per the README, swapped without changing your client.

How to get started

Install and start a server with the one-line installer, or with uv:

curl -LsSf https://github.com/ogx-ai/ogx/raw/main/scripts/install.sh | bash

uv pip install ogx

uv run ogx go

ogx go auto-detects providers from your environment. Then use any OpenAI-style client:

from openai import OpenAI
client = OpenAI(base_url="http://localhost:8321/v1", api_key="fake")
response = client.chat.completions.create(
    model="llama-3.3-70b",
    messages=[{"role": "user", "content": "Hello"}],
)

The README links a Quick Start guide, an OpenAI compatibility page with endpoint coverage and a provider matrix, and a getting-started notebook. Check the compatibility page before you depend on a specific endpoint, since coverage can vary by provider.

Who should use it, and when to skip it

OGX suits developers building an AI app who want the freedom to change models or hosting later, and teams that need to keep inference on their own machines. It is also useful if you want RAG and tool calling handled by the server rather than coded into each app.

Skip it if you only call one hosted API from a single script, because running a server adds moving parts. Skip it if you need exact behavior parity with every OpenAI feature, since compatibility depends on the provider behind it. The rename from Llama Stack means older tutorials and package names may not match, so follow the current docs.

OGX alternatives

Similar tools are LLM gateways and local model servers. LiteLLM offers an OpenAI-style proxy across many providers, and Ollama and vLLM serve models locally with OpenAI-compatible endpoints. Those focus on the model layer, while OGX adds a Responses API, vector stores and skills on top. See OGX alternatives and the AI repos directory.

License and cost

OGX is MIT licensed and free to run. Your costs are the hardware you use or the fees of any hosted model provider you connect. The README mentions no paid tier.

FAQs

What happened to Llama Stack?

It was renamed OGX. The README links an announcement describing the change in mission to a model-agnostic, multi-SDK project.

Does OGX work with the OpenAI Python client?

Yes. Set base_url to your OGX server, for example http://localhost:8321/v1, and use the client as usual.

Which models can I run?

The README names Llama, GPT, Gemini and Mistral, and says any model works through its providers, such as Ollama or vLLM. See the provider docs for the full list.

Can I use the Anthropic SDK with it?

Yes. OGX exposes /v1/messages for the Anthropic SDK and /v1alpha/interactions for Google GenAI.

Does it include RAG?

It has vector stores, a files API and built-in file search in the Responses API.

Reviews (0)

No reviews yet.

Sign in to write a review.

Similar Repos

Open Source

LangChain

Agent engineering platform for building LLM applications from composable parts

Reviewed by hand · Jun 2026
Free

ECC

Agent harness optimisation for Claude Code, Codex, OpenCode and Cursor

Reviewed by hand · May 2026
Free

Hermes Agent

Self-improving agent from Nous Research that learns across sessions

Reviewed by hand · May 2026
Free

Skills for Real Engineers

Small, composable agent skills from Matt Pocock's daily .agents directory

Reviewed by hand · Apr 2026