AI Skill Hub 推荐使用:Otari LLM网关 是一款优质的AI工具。AI 综合评分 6.8 分,在同类工具中表现稳健。如果你正在寻找可靠的AI工具解决方案,这是一个值得深入了解的选择。
Otari LLM网关 是一款基于 Python 开发的开源工具,专注于 LLM网关、API代理、密钥管理 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
Otari LLM网关 是一款基于 Python 开发的开源工具,专注于 LLM网关、API代理、密钥管理 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:pip 安装(推荐)
pip install otari
# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install otari
# 方式三:从源码安装(获取最新功能)
git clone https://github.com/mozilla-ai/otari
cd otari
pip install -e .
# 验证安装
python -c "import otari; print('安装成功')"
# 命令行使用
otari --help
# 基本用法
otari input_file -o output_file
# Python 代码中调用
import otari
# 示例
result = otari.process("input")
print(result)
# otari 配置文件示例(config.yml) app: name: "otari" debug: false log_level: "INFO" # 运行时指定配置文件 otari --config config.yml # 或通过环境变量配置 export OTARI_API_KEY="your-key" export OTARI_OUTPUT_DIR="./output"
OpenAI-compatible LLM gateway with API key management, budget enforcement, and usage tracking.
</div>
uv venv
source .venv/bin/activate
uv sync --dev
The gateway image is published on Docker Hub.
cp config.example.yml config.yml
docker compose up -d
docker run --rm \
-p 8000:8000 \
-v "$(pwd)/config.yml:/app/config.yml:ro" \
mzdotai/otari:latest \
gateway serve --config /app/config.yml
Gateway will be available at http://localhost:8000.
cp config.example.yml config.yml
Edit config.yml and set at least:
master_keyproviders (for example openai.api_key)On startup, the gateway can bootstrap an API key in logs. Export it as GATEWAY_API_KEY, then call the gateway as an OpenAI-compatible server:
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["GATEWAY_API_KEY"],
base_url="http://localhost:8000/v1",
)
response = client.chat.completions.create(
model="openai:gpt-4o",
messages=[{"role": "user", "content": "Hello from gateway"}],
)
print(response.choices[0].message.content)
GET /healthPOST /v1/chat/completionsPOST /v1/embeddingsPOST /v1/moderationsGET /v1/modelsPOST/GET /v1/keysPOST/GET /v1/usersPOST/GET /v1/budgetsGET /v1/messagesGET /v1/pricingFull schema: docs/public/openapi.json
uv run gateway init-db --config config.yml
uv run gateway migrate --config config.yml
uv run gateway migrate --config config.yml --revision <rev>
uv run python scripts/generate_openapi.py --check
轻量级LLM网关实现���API密钥管理思路清晰。项目初期阶段,功能基础但有实际应用价值,适合小型团队快速部署。
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ Apache 2.0 — 宽松开源协议,可商用,需保留版权声明和 NOTICE 文件,含专利授权条款。
总体来看,Otari LLM网关 是一款质量良好的AI工具,在同类工具中具备一定竞争力。AI Skill Hub 将持续追踪其更新动态,建议收藏备用,结合自身场景选择合适时机引入使用。
| 原始名称 | otari |
| 原始描述 | 开源AI工具: This gateway is a standalone service that proxies LLM requests with API key man。⭐9 · Python |
| Topics | LLM网关API代理密钥管理Python开发 |
| GitHub | https://github.com/mozilla-ai/otari |
| License | Apache-2.0 |
| 语言 | Python |
收录时间:2026-05-21 · 更新时间:2026-05-30 · License:Apache-2.0 · AI Skill Hub 不对第三方内容的准确性作法律背书。