Open Source Private AI MIT Licence

Supercharge Your Native Ollama.

Ollama Gateway: Supercharge your native Ollama with enterprise-grade API authentication, request auditing, rate limiting, and virtual model management—your secure, private AI gateway.

OllamaGateway main screenshot
Enterprise Ready

Security and Auditing by Design.

Bearer Token Auth

Create multiple API keys for different users and applications, each with its own fine-grained permissions.

Clickhouse Auditing

Detailed auditing for every request and response, stored in high-performance Clickhouse storage for compliance.

Team Management

A built-in Role-Based Access Control (RBAC) system for managing your team's access to AI models.

Model Keep-alive

Periodically pings underlying models to ensure they stay loaded in memory for instant response times.

Default Model Support

Automatically redirect requests to a default virtual model if no model is specified in the API call.

Native Passthrough

Seamless support for native Ollama features including MCP tools, embedding, images, and stream mode.

OllamaGateway in Docker
Smart Proxy

Intelligent
Virtual Models

Create multiple aliases for your models with custom system prompts and parameter overrides.

Chat Models

Create virtual chat models with persistent system prompts.

Embedding Models

Dedicated management for embedding models for RAG applications.

Parameter Overrides

Override temperature, top_k, and other Ollama options per virtual model.

Smart Mapping
Alias -> Real
Validation
Auto Sync
Agent & Ecosystem Ready

Perfect for Agent Deployment

OllamaGateway has been officially tested and is fully compatible with popular ecosystem tools including Claude Code, Open-WebUI, Opencode, and Roocode. Its robust API translation makes it the ideal choice for deploying autonomous AI agents.

Recommended Models
  • qwen3.6:27b-q8_0
  • qwen3.6:35b-a3b-q4_K_M
Native Power, AI Development

Supercharge AI Development with Claude Code, Opencode & Qwen Code

OllamaGateway seamlessly connects your local Ollama capabilities to professional AI development tools. Whether you are using Claude Code, Opencode or Qwen Code, you can now leverage your own hardware for automated coding and development tasks—all verified and officially supported by our team.

  • Verified compatibility with Claude Code agent
  • Optimized for Opencode & Qwen Code ecosystems
  • Secure local inference with zero data leakage
Opencode and Qwen Code working with OllamaGateway
Cross-Protocol Compatibility

Inspect one translation route at a time.

Choose the API your client sends on the left and the protocol spoken by the physical backend on the right. The active route shows exactly what is preserved, translated, rejected, and overridden.

01Requester's API
Active route 01 / 12
Client Ollama Chat /api/chat
Backend Ollama Native /api/chat
Native / same dialect

The gateway keeps the protocol shape and rewrites only gateway-owned values and configured policy fields.

02Physical backend protocol

Provider type and backend protocol are separate. No physical Anthropic backend adapter exists today.

Current route contract

Ollama → Ollama

Only the selected route is shown
Implementation method

Preserved

Mapped / reconstructed

Discarded, rejected, or preferred

Database override

Configuration precedence

Database values are hard assignments

A configured virtual-model value replaces the client-derived value after translation. An unset value leaves the translated value unchanged.

OllamaTemperature · TopP · TopK · NumPredict · NumCtx · RepeatPenalty · Thinking
OpenAI ChatTemperature · TopP · NumPredict · Thinking
ResponsesTemperature · TopP · NumPredict
OpenAI Responses

Native state passthrough

Stateful controls pass through to native Responses providers and are never silently translated.

previous_response_idconversationstore:truebackground:true

requires a Responses-capable provider

Embedding route inspector

Two client dialects × two Provider types

Embedding adapters select by ProviderType, not chat BackendProtocol
01Client endpoint
Embedding route 01 / 04
ClientOpenAI Embeddings/v1/embeddings
ProviderOpenAI-compatible/v1/embeddings
Native / same dialect
02Backend Provider type
OpenAI Embeddings → OpenAI-compatible
Current route only

Preserved / mapped

Discarded / restriction

Policy and implementation

Narrow operation
Ollama Generate
Ollama only
POST /api/generate

Ollama JSON/NDJSON stays in the native dialect; model identity, answer, finish data, and usage are observed and rewritten.

No Chat Completions or Responses translation. A non-Ollama backend returns 501.
Gateway-owned operation
Model discovery
No upstream call
/v1/models*/api/tags/api/ps/api/version

Virtual-model names and gateway-owned metadata are rendered directly in the requested client shape.

Physical provider metadata is not proxied; Ollama runtime details are placeholders or omitted.
High Availability

Load Balancing, Tiered Fallback & Mixed Providers

OllamaGateway goes beyond simple proxying. It intelligently distributes requests across multiple underlying models, automatically falls back when a provider is unavailable, and lets you combine models from different providers into a single virtual model.

Smart Load Balancing

Distribute API requests across multiple underlying Ollama instances or OpenAI-compatible providers. Configure weights and priorities for each backend to optimize throughput and resource utilization.

Tiered Fallback

Define fallback chains for your models. If the primary provider fails or times out, OllamaGateway automatically steps down to the next available backend — ensuring maximum uptime without manual intervention.

Multi-Provider Virtual Models

Blend multiple models from entirely different providers into a single virtual model. Mix Ollama backends with OpenAI-compatible services — your clients see one unified endpoint while the gateway handles all routing and translation behind the scenes.

OllamaGateway High Availability Routing
Native vs. Gateway

Why choose OllamaGateway?

Native Ollama is great for personal use, but it lacks the enterprise features required for team collaboration and production deployment. OllamaGateway fills those gaps without changing your workflow.

Feature Comparison Native Ollama OllamaGateway
Model Hosting & Inference
Multimodal
MCP
Function call
Streaming
OpenAI API Translation
Anthropic API Translation
API Authentication (Bearer)
Multiple API Keys Management
Request & Response Auditing
API Rate Limiting
Virtual Model Overrides
Multi-backend Support
Load Balancing
Tiered Fallback
Default Model Support
Model Keep-alive (Ping)
Admin Management GUI
Chat/Embedding Segregation