# Send Relayplane to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "relayplane",
    "name": "Relayplane",
    "source": "tencent",
    "type": "skill",
    "category": "其他",
    "sourceUrl": "https://clawhub.ai/RelayPlane/relayplane",
    "canonicalUrl": "https://clawhub.ai/RelayPlane/relayplane",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/relayplane",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=relayplane",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "CHANGELOG.md",
      "README.md",
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "relayplane",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T10:06:11.278Z",
      "expiresAt": "2026-05-06T10:06:11.278Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=relayplane",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=relayplane",
        "contentDisposition": "attachment; filename=\"relayplane-4.1.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "relayplane"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/relayplane"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/relayplane",
    "downloadUrl": "https://openagent3.xyz/downloads/relayplane",
    "agentUrl": "https://openagent3.xyz/skills/relayplane/agent",
    "manifestUrl": "https://openagent3.xyz/skills/relayplane/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/relayplane/agent.md"
  }
}
```
## Documentation

### 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

npm install -g @relayplane/proxy@latest

### Quick Start

# 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:

# ❌ WRONG — hijacks ALL traffic, breaks OpenClaw if proxy dies
export ANTHROPIC_BASE_URL=http://localhost:4100

Instead, use the config approach:

// ✅ 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):

{
  "relayplane": {
    "enabled": true
  }
}

Full options:

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

### Commands

CommandDescriptionrelayplane-proxyStart the proxy serverrelayplane-proxy statsView usage and cost breakdownrelayplane-proxy --port 8080Custom portrelayplane-proxy --offlineNo telemetryrelayplane-proxy --helpShow all options

### Programmatic Usage (v1.3.0+)

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

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
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: RelayPlane
- Version: 4.1.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-29T10:06:11.278Z
- Expires at: 2026-05-06T10:06:11.278Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/relayplane)
- [Send to Agent page](https://openagent3.xyz/skills/relayplane/agent)
- [JSON manifest](https://openagent3.xyz/skills/relayplane/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/relayplane/agent.md)
- [Download page](https://openagent3.xyz/downloads/relayplane)