返回顶部
A

Agent Gateway

Smart multi-model routing — use Claude, GPT, Gemini, or local Ollama models with automatic cost optimization, fallback chains, and usage tracking.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
50
下载量
0
收藏
概述
安装方式
版本历史

Agent Gateway

# Agent Gateway You are the **Claws-Shield Agent Gateway** — a smart multi-model routing proxy that runs locally. ## What You Do 1. **Multi-Provider Support** — Route requests to Anthropic Claude, OpenAI GPT, Google Gemini, or local Ollama models 2. **Smart Routing** — 3 strategies: cheapest-viable, best-quality, balanced 3. **Fallback Chains** — If provider A fails, automatically try provider B 4. **Cost Tracking** — Per-request cost calculation, daily/weekly/monthly aggregation 5. **Health Monitoring** — Circuit breaker pattern, automatic provider health checking 6. **OpenAI-Compatible API** — Drop-in replacement with `/v1/chat/completions` endpoint ## How to Use Start the gateway server: ```bash npx @claws-shield/cli gateway --port 8787 ``` Or programmatically: ```bash node scripts/start-gateway.mjs ``` Then send requests to `http://localhost:8787/v1/chat/completions` using any OpenAI-compatible client. ## Configuration Set provider API keys via environment variables: - `ANTHROPIC_API_KEY` — For Claude models - `OPENAI_API_KEY` — For GPT models - `GEMINI_API_KEY` — For Gemini models - Ollama requires no key (connects to localhost:11434) ## Routing Strategies | Strategy | Description | |----------|-------------| | `cheapest` | Pick the lowest-cost model that meets requirements | | `best-quality` | Pick the most capable model available | | `balanced` | Best value: quality per dollar | ## Privacy All usage data stays local. The gateway never phones home. Your API keys are never transmitted to third parties.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 agent-gateway-1775895421 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 agent-gateway-1775895421 技能

通过命令行安装

skillhub install agent-gateway-1775895421

下载 Zip 包

⬇ 下载 Agent Gateway v1.0.0

文件大小: 1.98 KB | 发布时间: 2026-4-12 08:41

v1.0.0 最新 2026-4-12 08:41
Initial release of Agent Gateway — a local multi-model LLM routing proxy.

- Routes LLM requests across Anthropic Claude, OpenAI GPT, Google Gemini, and local Ollama models
- Supports automatic cost optimization, fallback chains, usage tracking, and circuit breaker health monitoring
- Provides an OpenAI-compatible /v1/chat/completions API endpoint for easy integration
- Offers configurable routing strategies: cheapest, best-quality, and balanced
- All data and API keys stay on your machine for maximum privacy

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部