RelayPlane

RelayPlane

运维安全v4.1.0
作者:RelayPlane更新于 2026-05-17共 13 个版本 · 最新版本发布于 2026-03-13relayplane@clawhub_relayplane/relayplane
监控告警故障排查配置生成#Observability

据 AlphaMoat 统计,截至 2026-09,RelayPlane 累计下载 4,125 次、获 5 个星标,在全部 5,078 个 AI 技能中排名第 2,445 位,在「运维安全」分类(264 个)中排名第 140 位。

累计安装
130
累计下载
4,125
星标
5
全站排名
#2,445
全站前 49% · 「运维安全」前 54%
平台累计安装累计下载星标评论
ClawHub ↗1303,8715-
SkillHub ↗1294,1255—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

文档描述了请求代理和故障回退机制,但其可用性承诺未经独立验证。启用前应核对路由和回退行为,避免用 BASE_URL 将所有兼容流量强制导向代理;先审阅软件包来源,敏感任务应关闭遥测或使用离线模式。

资料发布于 2026-10-29

可以用来做什么

  • 查看代理使用与成本情况
  • 检查 OpenClaw 的模型路由配置
  • 了解代理故障时的回退路径

什么时候用

  • 确认软件包来源并检查配置后
  • 能够限制或关闭敏感流量遥测时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

请解释如何检查本地 RelayPlane 路由和遥测设置;不要安装软件包、修改 BASE_URL 或发送真实请求。

月度数据趋势

累计下载4,125
3,2443,7174,1902026-05 · 累计下载 3,3092026-06 · 累计下载 3,4382026-07 · 累计下载 3,6672026-08 · 累计下载 3,7652026-09 · 累计下载 4,12526-0526-09
星标5
4562026-05 · 星标 52026-06 · 星标 52026-07 · 星标 52026-08 · 星标 52026-09 · 星标 526-0526-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-094,125—5
2026-083,765+2.7%5
2026-073,667+6.7%5
2026-063,438+3.9%5
2026-053,309—5

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

5.3 KB · ClawHub v4.1.0
---
name: relayplane
description: Agent ops layer for OpenClaw — observability, governance, and cost optimization with automatic failover. Never breaks your setup.
user-invocable: true
model-invocable: false
disableModelInvocation: true
homepage: https://relayplane.com
version: 4.1.0
author: Continuum
license: MIT
展开全部(共 183 行)
metadata:
  openclaw:
    emoji: "🔀"
    category: ai-tools
    instruction-only: true
---

# RelayPlane

**OpenRouter routes. RelayPlane observes, governs, and learns.**

Agent ops for OpenClaw power users. Your agents make hundreds of API calls per session — RelayPlane gives you visibility, cost control, and governance over all of them.

## What It Does

RelayPlane is an **optional optimization layer** that sits in your agent's request pipeline. It routes simple tasks to cheaper models, enforces budgets, and logs everything — with automatic fallback to direct provider calls if anything goes wrong.

**Key principle: RelayPlane is never a dependency.** If the proxy dies, your agents keep working. Zero downtime, guaranteed.

## Installation

```bash
npm install -g @relayplane/proxy@latest
```

## Quick Start

```bash
# 1. Start the proxy (runs on localhost:4100 by default)
relayplane-proxy

# 2. Add to your openclaw.json:
#    { "relayplane": { "enabled": true } }

# 3. That's it. OpenClaw routes through RelayPlane when healthy,
#    falls back to direct provider calls automatically.
```

## ⚠️ Important: Do NOT Set BASE_URL

**Never do this:**
```bash
# ❌ WRONG — hijacks ALL traffic, breaks OpenClaw if proxy dies
export ANTHROPIC_BASE_URL=http://localhost:4100
```

**Instead, use the config approach:**
```json
// ✅ RIGHT — openclaw.json
{
  "relayplane": {
    "enabled": true
  }
}
```

The config approach uses a circuit breaker — if the proxy is down, traffic goes direct. The `BASE_URL` approach has no fallback and will take down your entire system.

## Architecture

```
Agent → OpenClaw Gateway → Circuit Breaker → RelayPlane Proxy → Provider
                                   ↓ (on failure)
                              Direct to Provider
```

- **Circuit breaker:** 3 consecutive failures → proxy bypassed for 30s
- **Auto-recovery:** Health probes detect when proxy comes back
- **Process management:** Gateway can spawn/manage the proxy automatically

## Configuration

Minimal (everything else has defaults):
```json
{
  "relayplane": {
    "enabled": true
  }
}
```

Full options:
```json
{
  "relayplane": {
    "enabled": true,
    "proxyUrl": "http://127.0.0.1:4100",
    "autoStart": true,
    "circuitBreaker": {
      "failureThreshold": 3,
      "resetTimeoutMs": 30000,
      "requestTimeoutMs": 3000
    }
  }
}
```

## Commands

| Command | Description |
|---------|-------------|
| `relayplane-proxy` | Start the proxy server |
| `relayplane-proxy stats` | View usage and cost breakdown |
| `relayplane-proxy --port 8080` | Custom port |
| `relayplane-proxy --offline` | No telemetry |
| `relayplane-proxy --help` | Show all options |

## Programmatic Usage (v1.3.0+)

```typescript
import { RelayPlaneMiddleware, resolveConfig } from '@relayplane/proxy';

const config = resolveConfig({ enabled: true });
const middleware = new RelayPlaneMiddleware(config);

// Route a request — tries proxy, falls back to direct
const response = await middleware.route(request, directSend);

// Check status
const status = middleware.getStatus();
console.log(middleware.formatStatus());
```

### Advanced: Full Agent Ops Proxy

```typescript
import { createSandboxedProxyServer } from '@relayplane/proxy';

const { server, middleware } = createSandboxedProxyServer({
  enableLearning: true,    // Enable pattern detection
  enforcePolicies: true,   // Enforce budget/model policies
  relayplane: { enabled: true },  // Circuit breaker wrapping
});

await server.start();
// All three pillars active: Observes + Governs + Learns
// Circuit breaker protects against proxy failures
```

## What's New in v1.4.0

**Three Pillars — All Integrated:**
- **Observes** (Learning Ledger) — every run captured, full decision explainability
- **Governs** (Policy Engine) — budget caps, model allowlists, approval gates
- **Learns** (Learning Engine) — pattern detection, cost suggestions, rule management

**Sandbox Architecture (v1.3.0+):**
- **Circuit breaker** — automatic failover, no more system outages
- **Process manager** — proxy runs as managed child process
- **Health probes** — active recovery detection
- **Stats & observability** — p50/p95/p99 latencies, request counts, circuit state

**Learning Engine Endpoints (v1.4.0):**
- `GET /v1/analytics/summary` — analytics with date range
- `POST /v1/analytics/analyze` — detect patterns, anomalies, generate suggestions
- `GET /v1/suggestions` — list pending suggestions
- `POST /v1/suggestions/:id/approve` / `reject` — suggestion workflow
- `GET /v1/rules` — active rules
- `GET /v1/rules/:id/effectiveness` — is this rule helping?

## Privacy

- **Your prompts stay local** — never sent to RelayPlane servers
- **Anonymous telemetry** — only token counts, latency, model used
- **Opt-out anytime** — `relayplane-proxy telemetry off`
- **Fully offline mode** — `relayplane-proxy --offline`

## Links

- **Docs:** https://relayplane.com/docs
- **GitHub:** https://github.com/RelayPlane/proxy
- **npm:** https://www.npmjs.com/package/@relayplane/proxy

「运维安全」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。