Discover and explore top open-source AI tools and projects—updated daily.
mozilla-aiSelf-hosted OpenAI-compatible LLM gateway
Top 95.7% on SourcePulse
An open-source, OpenAI-compatible LLM gateway, Otari addresses the need for a unified, self-hosted endpoint to manage access across numerous LLM providers. It targets developers and organizations seeking centralized control over API keys, cost management, and usage tracking for their AI applications, offering a flexible alternative to direct provider integration.
How It Works
Otari functions as a proxy server, presenting a single OpenAI-compatible API endpoint. It intercepts requests, authenticates clients using virtual keys, enforces pre-call budgets, resolves provider credentials, and routes requests to over 40 LLM providers via the any-llm library. All interactions, including usage and spend, are logged centrally, providing a consolidated view of AI resource consumption.
Quick Start & Requirements
A metered gateway can be operational in approximately one minute using Docker.
docker run --rm -p 8000:8000 -e OTARI_MASTER_KEY=<your_master_key> -e <PROVIDER>_API_KEY=<your_provider_key> -e OTARI_CONFIG_YAML='default_pricing: true' mzdotai/otari:latest otari serveHighlighted Details
otari_code_execution (sandboxed Python REPL) and otari_web_search.Maintenance & Community
The project is hosted under the mozilla-ai GitHub organization. Community interaction is facilitated via a Discord server.
Licensing & Compatibility
Otari is licensed under the Apache 2.0 license, which permits commercial use and integration into closed-source applications.
Limitations & Caveats
The default otari_web_search backend (SearXNG) is rate-limited for sustained use; production environments require configuration with a licensed search backend. Advanced features like built-in tools and guardrails require specific Docker Compose profiles to be activated.
1 day ago
Inactive
theopenco
songquanpeng
modelcontextprotocol