LangChain
Agent engineering platform for building LLM applications from composable parts
An open-source, OpenAI-compatible API server that runs any model on your own infrastructure.
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
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.
/v1alpha/skills endpoint for versioned skill bundles, which are zip archives with a SKILL.md manifest. The v1alpha path means this part may change.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.
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.
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.
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.
It was renamed OGX. The README links an announcement describing the change in mission to a model-agnostic, multi-SDK project.
Yes. Set base_url to your OGX server, for example http://localhost:8321/v1, and use the client as usual.
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.
Yes. OGX exposes /v1/messages for the Anthropic SDK and /v1alpha/interactions for Google GenAI.
It has vector stores, a files API and built-in file search in the Responses API.
Agent engineering platform for building LLM applications from composable parts
Agent harness optimisation for Claude Code, Codex, OpenCode and Cursor
Self-improving agent from Nous Research that learns across sessions
Small, composable agent skills from Matt Pocock's daily .agents directory