MLX Omni Server is a local inference server powered by Apple's MLX framework, specifically designed for Apple Silicon (M-series) chips. It implements OpenAI-compatible API endpoints, enabling seamless integration with existing OpenAI SDK clients while leveraging the power of local ML inference.
See the codeLocal AI inference server optimized for Apple Silicon

MLX Omni Server provides dual API compatibility with both OpenAI and Anthropic APIs, enabling seamless local inference on Apple Silicon using the MLX framework.
pip install mlx-omni-server
Start the server:
mlx-omni-server
Choose your preferred API:
from openai import OpenAI
client = OpenAI(
base_url="http://localhost:10240/v1",
api_key="not-needed"
)
response = client.chat.completions.create(
model="mlx-community/gemma-3-1b-it-4bit-DWQ",
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)
import anthropic
client = anthropic.Anthropic(
base_url="http://localhost:10240/anthropic",
api_key="not-needed"
)
message = client.messages.create(
model="mlx-community/gemma-3-1b-it-4bit-DWQ",
max_tokens=1000,
messages=[{"role": "user", "content": "Hello!"}]
)
print(message.content[0].text)
🎉 That's it! You're now running AI locally on your Mac.
/v1/*)| Endpoint | Feature | Status |
|---|---|---|
/v1/chat/completions | Chat with tools, streaming, structured output | ✅ |
/v1/audio/speech | Text-to-Speech | ✅ |
/v1/audio/transcriptions | Speech-to-Text | ✅ |
/v1/images/generations | Image Generation | ✅ |
/v1/embeddings | Text Embeddings | ✅ |
/v1/models | Model Management | ✅ |
/anthropic/v1/*)| Endpoint | Feature | Status |
|---|---|---|
/anthropic/v1/messages | Messages with tools, streaming, thinking mode | ✅ |
/anthropic/v1/models | Model listing with pagination | ✅ |
# Default (port 10240)
mlx-omni-server
# Custom options
mlx-omni-server --port 8000
MLX_OMNI_LOG_LEVEL=debug mlx-omni-server
# View all options
mlx-omni-server --help
git clone https://github.com/madroidmaq/mlx-omni-server.git
cd mlx-omni-server
uv sync
# Start with hot-reload
uv run uvicorn mlx_omni_server.main:app --reload --host 0.0.0.0 --port 10240
Testing:
uv run pytest # All tests
uv run pytest tests/chat/openai/ # OpenAI tests
uv run pytest tests/chat/anthropic/ # Anthropic tests
Code Quality:
uv run black . && uv run isort . # Format code
uv run pre-commit run --all-files # Run hooks
Model Management
Advanced Capabilities
| Resource | Description |
|---|---|
| OpenAI API Guide | Complete OpenAI API reference |
| Anthropic API Guide | Complete Anthropic API reference |
| Examples | Practical usage examples |
Requirements:
Quick fixes:
# Check requirements
python --version # Should be 3.11+
python -c "import mlx; print(mlx.__version__)"
# Pre-download models (if needed)
huggingface-cli download mlx-community/gemma-3-1b-it-4bit-DWQ
# Enable debug logging
MLX_OMNI_LOG_LEVEL=debug mlx-omni-server
Quick contributor setup:
git clone https://github.com/madroidmaq/mlx-omni-server.git
cd mlx-omni-server
uv sync && uv run pytest
Built with MLX by Apple • FastAPI • MLX-LM
MIT License • Not affiliated with OpenAI, Anthropic, or Apple
(top 24 of 25)
13,200 followers · starred Dec 2025
17,347 followers · starred Jul 2025
1,329 followers · starred May 2025
2,254 followers · starred Dec 2024
MLX Omni Server is a local inference server powered by Apple's MLX framework, specifically designed for Apple Silicon (M-series) chips. It implements OpenAI-compatible API endpoints, enabling seamless integration with existing OpenAI SDK clients while leveraging the power of local ML inference.
See the codeLocal AI inference server optimized for Apple Silicon

MLX Omni Server provides dual API compatibility with both OpenAI and Anthropic APIs, enabling seamless local inference on Apple Silicon using the MLX framework.
pip install mlx-omni-server
Start the server:
mlx-omni-server
Choose your preferred API:
from openai import OpenAI
client = OpenAI(
base_url="http://localhost:10240/v1",
api_key="not-needed"
)
response = client.chat.completions.create(
model="mlx-community/gemma-3-1b-it-4bit-DWQ",
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)
import anthropic
client = anthropic.Anthropic(
base_url="http://localhost:10240/anthropic",
api_key="not-needed"
)
message = client.messages.create(
model="mlx-community/gemma-3-1b-it-4bit-DWQ",
max_tokens=1000,
messages=[{"role": "user", "content": "Hello!"}]
)
print(message.content[0].text)
🎉 That's it! You're now running AI locally on your Mac.
/v1/*)| Endpoint | Feature | Status |
|---|---|---|
/v1/chat/completions | Chat with tools, streaming, structured output | ✅ |
/v1/audio/speech | Text-to-Speech | ✅ |
/v1/audio/transcriptions | Speech-to-Text | ✅ |
/v1/images/generations | Image Generation | ✅ |
/v1/embeddings | Text Embeddings | ✅ |
/v1/models | Model Management | ✅ |
/anthropic/v1/*)| Endpoint | Feature | Status |
|---|---|---|
/anthropic/v1/messages | Messages with tools, streaming, thinking mode | ✅ |
/anthropic/v1/models | Model listing with pagination | ✅ |
# Default (port 10240)
mlx-omni-server
# Custom options
mlx-omni-server --port 8000
MLX_OMNI_LOG_LEVEL=debug mlx-omni-server
# View all options
mlx-omni-server --help
git clone https://github.com/madroidmaq/mlx-omni-server.git
cd mlx-omni-server
uv sync
# Start with hot-reload
uv run uvicorn mlx_omni_server.main:app --reload --host 0.0.0.0 --port 10240
Testing:
uv run pytest # All tests
uv run pytest tests/chat/openai/ # OpenAI tests
uv run pytest tests/chat/anthropic/ # Anthropic tests
Code Quality:
uv run black . && uv run isort . # Format code
uv run pre-commit run --all-files # Run hooks
Model Management
Advanced Capabilities
| Resource | Description |
|---|---|
| OpenAI API Guide | Complete OpenAI API reference |
| Anthropic API Guide | Complete Anthropic API reference |
| Examples | Practical usage examples |
Requirements:
Quick fixes:
# Check requirements
python --version # Should be 3.11+
python -c "import mlx; print(mlx.__version__)"
# Pre-download models (if needed)
huggingface-cli download mlx-community/gemma-3-1b-it-4bit-DWQ
# Enable debug logging
MLX_OMNI_LOG_LEVEL=debug mlx-omni-server
Quick contributor setup:
git clone https://github.com/madroidmaq/mlx-omni-server.git
cd mlx-omni-server
uv sync && uv run pytest
Built with MLX by Apple • FastAPI • MLX-LM
MIT License • Not affiliated with OpenAI, Anthropic, or Apple
(top 24 of 25)
13,200 followers · starred Dec 2025
17,347 followers · starred Jul 2025
1,329 followers · starred May 2025
2,254 followers · starred Dec 2024