MCPcopy Index your code
hub / github.com/ogx-ai/ogx

github.com/ogx-ai/ogx @v1.1.3

repository ↗ · DeepWiki ↗ · release v1.1.3 ↗ · Ask this repo → · + Follow
9,409 symbols 44,114 edges 1,101 files 4,549 documented · 48% updated 1d agov0.5.4 · 2026-06-26★ 8,41681 open issues
README

OGX

PyPI Version PyPI Downloads Docker Hub Pulls License Discord Unit Tests Integration Tests OpenResponses Conformance Ask DeepWiki

Quick Start | Documentation | OpenAI API Compatibility | Discord

[!IMPORTANT] Llama Stack is now OGX. The name changed, and so did the mission — model-agnostic, multi-SDK, production-grade. Read the full announcement →

Open-source agentic API server for building AI applications. OpenAI-compatible. Any model, any infrastructure.

OGX Architecture

OGX is a drop-in replacement for the OpenAI API that you can run anywhere — your laptop, your datacenter, or the cloud. Use any OpenAI-compatible client or agentic framework. Swap between Llama, GPT, Gemini, Mistral, or any model without changing your application code.

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"}],
)

What you get

  • Chat Completions & Embeddings — standard /v1/chat/completions, /v1/completions, and /v1/embeddings endpoints, compatible with any OpenAI client
  • Responses API — server-side agentic orchestration with tool calling, MCP server integration, and built-in file search (RAG) in a single API call (learn more)
  • Vector Stores & Files/v1/vector_stores and /v1/files for managed document storage and search
  • Batches/v1/batches for offline batch processing
  • Open Responses conformant — the Responses API implementation passes the Open Responses conformance test suite
  • Multi-SDK support — use the Anthropic SDK (/v1/messages) or Google GenAI SDK (/v1alpha/interactions) natively alongside the OpenAI API

Use any model, use any infrastructure

OGX has a pluggable provider architecture. Develop locally with Ollama, deploy to production with vLLM, or connect to a managed service — the API stays the same.

See the provider documentation for the full list.

Get started

Install and run a OGX server:

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

# Or install via uv
uv pip install ogx[starter]

# Start the server (uses the starter distribution with Ollama)
uv run ogx stack run starter

Then connect with any OpenAI, Anthropic, or Google GenAI client — Python, TypeScript, curl, or any framework that speaks these APIs.

See the Quick Start guide for detailed setup.

Resources

Client SDKs:

OGX provides official client SDKs for Python and TypeScript:

Language SDK Package
Python ogx-client-python PyPI version
TypeScript ogx-client-typescript NPM version

Alternative Python SDK:

For users who prefer an OpenAPI Generator-based SDK, an alternative Python client is available:

  • ogx-open-client — Auto-generated from OpenAPI spec, provides similar functionality with a different generation approach
  • Usage Examples — End-to-end code examples for all major features
  • Strategy & Rationale — Why two SDKs, when to use which, and long-term plans

The official ogx_client SDK is recommended for most use cases. The ogx_open_client package offers an alternative for teams with specific OpenAPI tooling requirements.

Community

We hold regular community calls every Thursday at 09:00 AM PST — see the Community Event on Discord for details.

Star History Chart

Thanks to all our amazing contributors!

OGX contributors

Extension points exported contracts — how you extend this code

Session (Interface)
(no doc)
src/ogx_ui/types/next-auth.d.ts
LogTableRow (Interface)
(no doc)
src/ogx_ui/components/logs/logs-table.tsx
LogsTableProps (Interface)
(no doc)
src/ogx_ui/components/logs/logs-table.tsx
ToolGroup (Interface)
(no doc)
src/ogx_ui/components/tools/tools-management.tsx
ToolParam (Interface)
(no doc)
src/ogx_ui/components/tools/tools-management.tsx

Core symbols most depended-on inside this repo

get
called by 476
src/ogx_api/internal/kvstore.py
get
called by 441
src/ogx/providers/utils/tools/ttl_dict.py
model_dump
called by 174
src/ogx/providers/utils/inference/openai_mixin.py
list
called by 174
client-sdks/openapi/templates/python/lib/cli/vector_stores/vector_stores.py
get
called by 156
src/ogx/core/store/registry.py
add
called by 132
src/ogx_api/datatypes.py
object
called by 112
src/ogx_api/models/models.py
parse_args
called by 110
src/ogx/cli/ogx.py

Shape

Method 4,224
Function 3,354
Class 1,470
Route 231
Interface 130

Languages

Python93%
TypeScript7%

Modules by API surface

src/ogx_api/openai_responses.py103 symbols
tests/unit/server/test_auth.py96 symbols
src/ogx/testing/api_recorder.py95 symbols
src/ogx_api/inference/models.py86 symbols
tests/unit/providers/inference/test_passthrough_forward_headers.py73 symbols
tests/unit/core/test_errors.py71 symbols
tests/unit/cli/test_stack_lets_go.py67 symbols
tests/unit/providers/inline/messages/test_impl.py63 symbols
tests/unit/providers/utils/inference/test_network_config.py60 symbols
tests/unit/providers/inference/vertexai/test_converters_requests.py60 symbols
tests/unit/cli/test_connect_claude.py60 symbols
src/ogx_api/messages/models.py58 symbols

Dependencies from manifests, versioned

@docusaurus/core3.9.2 · 1×
@docusaurus/preset-classic3.9.2 · 1×
@docusaurus/theme-mermaid3.9.2 · 1×
@easyops-cn/docusaurus-search-local0.52.1 · 1×
@eslint/eslintrc3 · 1×
@mdx-js/react3.0.0 · 1×
@radix-ui/react-collapsible1.1.12 · 1×
@radix-ui/react-dialog1.1.15 · 1×
@radix-ui/react-dropdown-menu2.1.16 · 1×
@radix-ui/react-label2.1.7 · 1×
@radix-ui/react-separator1.1.7 · 1×

Datastores touched

(mongodb)Database · 1 repos

For agents

$ claude mcp add ogx \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact