Agrout Bridge banner
Khip01 Khip01

Agrout Bridge

Development community

Description

Local HTTP proxy that routes OpenAI-/Anthropic-compatible clients (OpenCode, Claude Desktop, Cursor) through AgentRouter with Claude Code header spoofing, WAF cookie management, and content-blocked mitigation. TUI dashboard + headless server mode.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

agrout-bridge

AgentRouter bridge for OpenCode, Claude Desktop, Cursor, and any OpenAI-/Anthropic-compatible client.

image

Local HTTP proxy that forwards client requests to `https://agentrouter.org` while adding the Claude Code client fingerprint the upstream gate expects. Manages the WAF session cookie (`acw_tc`) per profile and survives restarts. TUI dashboard (nocterm) shows live model health, request usage, profile state, and proxy diagnostics. Headless mode runs the same proxy without a TUI for daemon / Docker usage.

Features

  • OpenAI + Anthropic compatible local proxy (/v1/messages, /v1/chat/completions)
  • WAF spoof: Claude Code client headers + acw_tc cookie warmup + per-profile persistence
  • SSE streaming pass-through with format-aware terminator (message_stop / data: [DONE])
  • Single-key profile: API key stored via profile add (CLI) or login (web page), one active
  • TUI dashboard: profile, usage/cost, models, proxy config, log side panel
  • Headless --server mode for daemon / Docker
  • Self-update via latest.json (CDN-served) + GitHub Release .tgz
  • Optional inbound PROXY_AUTH_TOKEN for remote bind
  • 429/QPS-aware retry with exponential backoff
  • Content-blocked mitigation: strips base64 data URIs / kix. element IDs from text before forwarding so large OpenCode/Claude Code sessions pass the upstream filter (preserves real uploaded images), including aggregate short-run base64 payloads (e.g. paged PDFs)
  • Daily claim dialog ([c]): copies/opens the daily AgentRouter login link (GitHub / LinuxDO)
  • Persistent per-day usage stats (stats.jsonl, 30-day retention) with page-scoped clear keymap on the Usage & Cost page
  • Per-model upstream endpoint guide (docs/MODEL-ENDPOINTS.md): each AgentRouter model routed to the right of /v1/messages (Anthropic) vs /v1/chat/completions (OpenAI), wit