Files
WeHub Mirror abf0e694a2
Hetzner Agent E2E / Provision + deploy + healthcheck (push) Has been cancelled
Hetzner Agent E2E / Teardown (push) Has been cancelled
Scenario PR E2E / Classify changed paths (push) Has been cancelled
Scenario PR E2E / Zero-Key unit + UI coverage (push) Has been cancelled
Scenario PR E2E / Zero-Key app browser core (push) Has been cancelled
Scenario PR E2E / Zero-Key app browser view lifecycle (push) Has been cancelled
Scenario PR E2E / Zero-Key app browser all-pages (push) Has been cancelled
Scenario PR E2E / Zero-Key app browser feature interactions (push) Has been cancelled
Scenario PR E2E / Zero-Key app browser cloud keyless (push) Has been cancelled
Scenario PR E2E / Zero-Key app browser ratcheted (push) Has been cancelled
Scenario PR E2E / Zero-Key app browser auto-discovered specs (push) Has been cancelled
Scenario PR E2E / Zero-Key app browser dashboard device matrix (push) Has been cancelled
Scenario PR E2E / Zero-Key app browser Pixel-7 real-touch lane (push) Has been cancelled
Scenario PR E2E / Zero-Key app browser WebKit lane (push) Has been cancelled
Scenario PR E2E / Zero-Key accounts UI e2e (real API + pool + disk) (push) Has been cancelled
Scenario PR E2E / Zero-Key full-walkthrough (mock lane) (push) Has been cancelled
Scenario PR E2E / Zero-Key app diagnostics (push) Has been cancelled
Scenario PR E2E / Zero-Key scenario runner E2E (push) Has been cancelled
Scenario PR E2E / Zero-Key Deterministic E2E (push) Has been cancelled
Docker CI Smoke / Classify changed paths (push) Has been cancelled
Docker CI Smoke / Build production Docker image (+ smoke boot) (push) Has been cancelled
Build libelizainference (Android, FFI) / prepare-matrix (push) Has been cancelled
Chat shell gestures / Chat shell gesture + parity e2e (push) Has been cancelled
Cloud Gateway Discord / Test (push) Has been cancelled
Cloud Gateway Webhook / Test (push) Has been cancelled
Cloud Tests / lint-and-types (push) Has been cancelled
Cloud Tests / unit-tests (push) Has been cancelled
Build Agent Image / build-and-push (push) Has been cancelled
Electrobun Submodule Guard / electrobun gitlink is fetchable (push) Has been cancelled
gitleaks / gitleaks (push) Has been cancelled
Markdown Links / Relative Markdown Links (push) Has been cancelled
Orchestrator multi-account / multi-account selection e2e (push) Has been cancelled
Publish @elizaos/plugin-elizacloud / verify_version (push) Has been cancelled
Quality (Extended) / Homepage Build (PR smoke) (push) Has been cancelled
Quality (Extended) / Comment-only diff guard (push) Has been cancelled
Quality (Extended) / Format (push) Has been cancelled
Quality (Extended) / Develop Gate (secret scan + UI determinism) (push) Has been cancelled
Quality (Extended) / Develop Gate (lint) (push) Has been cancelled
Sandbox Live Smoke / Sandbox live smoke (push) Has been cancelled
Snap Build & Test / Build Snap (amd64) (push) Has been cancelled
Snap Build & Test / Build Snap (arm64) (push) Has been cancelled
Tests / Classify changed paths (push) Has been cancelled
UI Extended Fixture E2E / fixture-e2e (push) Has been cancelled
Cloud Tests / integration-tests (push) Has been cancelled
CUDA Coverage Continuity / Fail-closed manifest contracts (push) Has been cancelled
CUDA Coverage Continuity / Exact-head CUDA fixtures + runtime graph (push) Has been cancelled
Deploy Apps Worker (Product 2) / Determine environment (push) Has been cancelled
Deploy Eliza Provisioning Worker / Determine environment (push) Has been cancelled
Deploy Homepage / build-and-deploy (push) Has been cancelled
Dev Smoke / Classify changed paths (push) Has been cancelled
Tests / Remote Capability Provider Live E2E (push) Has been cancelled
Training Stack / CPU smoke (lint + import) (push) Has been cancelled
Training Stack / GPU build (QJL nvcc + Triton JIT) (push) Has been cancelled
UI Core Fixture E2E / ui-core-fixture-e2e (push) Has been cancelled
vault-ci / app-core wiring tests (push) Has been cancelled
verify-patches / verify patches/CHECKSUMS.sha256 (push) Has been cancelled
UI Story Gate / story-gate (push) Has been cancelled
vault-ci / test (macos-latest) (push) Has been cancelled
vault-ci / test (ubuntu-latest) (push) Has been cancelled
vault-ci / test (windows-latest) (push) Has been cancelled
Windows CI / windows ([bun run --cwd packages/app-core test bun run --cwd packages/elizaos test bun run --cwd packages/cloud/shared test], app-and-cli) (push) Has been cancelled
Windows CI / windows ([bun run --cwd packages/core typecheck bun run --cwd packages/shared typecheck bun run --cwd packages/cloud/shared typecheck bun run --cwd packages/core test bun run --cwd packages/shared test], core-runtime, 75) (push) Has been cancelled
Windows CI / windows ([bun run --cwd packages/scenario-runner test bun run --cwd packages/vault test bun run --cwd plugins/plugin-coding-tools test], framework-packages) (push) Has been cancelled
Windows CI / windows ([bun run --cwd plugins/plugin-coding-tools build node packages/scripts/run-turbo.mjs run build --filter=@elizaos/core --filter=@elizaos/shared --filter=@elizaos/agent --concurrency=1 node packages/scripts/run-python.mjs --version node packages… (push) Has been cancelled
Windows CI / windows ([bun run --cwd plugins/plugin-elizacloud test bun run --cwd plugins/plugin-discord test bun run --cwd plugins/plugin-anthropic test bun run --cwd plugins/plugin-openai test bun run --cwd plugins/plugin-app-control test bun run --cwd plugins/pl… (push) Has been cancelled
Cloud Tests / e2e-tests (push) Has been cancelled
Deploy Apps Worker (Product 2) / Deploy apps worker to apps-control host (${{ needs.determine-env.outputs.environment }}) (push) Has been cancelled
Deploy Eliza Provisioning Worker / Deploy worker to Hetzner host (${{ needs.determine-env.outputs.environment }} @ ${{ needs.determine-env.outputs.deployment_sha }}) (push) Has been cancelled
Dev Smoke / bun run dev onboarding chat (push) Has been cancelled
Dev Smoke / Vite HMR dependency-level smoke (push) Has been cancelled
Publish @elizaos/plugin-elizacloud / publish_npm (push) Has been cancelled
Tests / Test-runner vacuous-green guard (push) Has been cancelled
Tests / Server Tests (push) Has been cancelled
Tests / Client Tests (push) Has been cancelled
Tests / Plugin Tests (1/4) (push) Has been cancelled
Tests / Plugin Tests (2/4) (push) Has been cancelled
Tests / Plugin Tests (3/4) (push) Has been cancelled
Tests / Plugin Tests (4/4) (push) Has been cancelled
Tests / Plugin Tests (push) Has been cancelled
Tests / Integration Lane (personal-assistant) (push) Has been cancelled
Tests / Electrobun Desktop Contract (push) Has been cancelled
Tests / Zero-Key unit + UI coverage (push) Has been cancelled
Tests / Zero-Key app browser (push) Has been cancelled
Tests / Zero-Key diagnostics (push) Has been cancelled
Tests / Zero-Key scenario runner (push) Has been cancelled
Tests / Zero-Key harness E2E (push) Has been cancelled
Tests / Zero-Key Deterministic E2E (push) Has been cancelled
Build libelizainference (Android, FFI) / ${{ matrix.abi }} (push) Has been cancelled
Tests / Cloud Live E2E (Eliza Cloud) (push) Has been cancelled
Tests / Remote Capability GitHub Live Artifact Validator (push) Has been cancelled
Tests / Script Tests (Linux) (push) Has been cancelled
Tests / Merge Queue Quality Gate (push) Has been cancelled
Tests / ci-ok (push) Has been cancelled
WeHub snapshot of 9298cb46af86e1bd3a40a60e135ea855d70f229a
2026-08-07 16:49:07 +08:00
..

@elizaos/plugin-anthropic-proxy

Routes Anthropic API traffic from your eliza agent through a Claude Max / Pro subscription instead of paying per-token Extra Usage rates.

The plugin applies a 7-layer bidirectional transformation pipeline so requests look like they originate from the official Claude Code CLI:

  1. Billing header injection (x-anthropic-billing-header text block carrying the CC version plus a 3-character SHA256 fingerprint computed per request)
  2. String trigger sanitization
  3. Tool name fingerprint bypass (PascalCase CC convention rename)
  4. System prompt template bypass (strip + paraphrase)
  5. Tool description stripping (reduce schema fingerprint)
  6. Schema property name renaming
  7. Full bidirectional reverse mapping on SSE + JSON responses

Plus assistant-prefill stripping and thinking-block stripping for replay/session bugs.

The default fingerprint dictionaries target the elizaOS tool surface (@elizaos/native-reasoning). For non-eliza agents, supply your own dictionaries via config.json (see config.json.example).

Custom fingerprint dictionaries

The defaults make this plugin a one-line drop-in for any eliza agent. If you're running a non-eliza agent (LangChain, LlamaIndex, your own runtime, etc.) the eliza tool-name dictionary won't match your tool surface and you'll want to supply your own.

Drop a config.json next to your eliza root with the shape shown in config.json.example. The plugin merges it over the defaults at startup. Any of the four dictionaries (replacements, toolRenames, propRenames, reverseMap) can be overridden independently — the rest fall back to the eliza defaults.

You own the subscription

This plugin does not route your traffic through any service operated by anyone but you. It needs your Claude Code OAuth token (from your own subscription on your own machine). You are responsible for whether your usage complies with Anthropic's terms.

Setup

# 1. Install Claude Code CLI and log in once on this machine.
claude auth login

# 2. Add the plugin to your agent's plugin list (your character file or
#    plugin loader). It will:
#    - Start an in-process proxy on http://127.0.0.1:18801
#    - Set ANTHROPIC_BASE_URL to that proxy URL (unless you've set it
#      explicitly to something else)

Modes

Pick via CLAUDE_MAX_PROXY_MODE:

Mode What it does
inline (default) Plugin starts an http proxy in this agent's process
shared Plugin connects to an existing upstream proxy URL (one host, many agents)
off Plugin loads but doesn't start anything (passthrough; you set ANTHROPIC_BASE_URL yourself)

In inline mode each agent gets its own proxy server. In shared mode you run the proxy once on the host (or via this same plugin in a different agent) and point all your agents at the same CLAUDE_MAX_PROXY_UPSTREAM. Useful when you have many agents on one box and only one Claude subscription.

Environment variables

Variable Default Notes
CLAUDE_MAX_PROXY_MODE inline inline / shared / off
CLAUDE_MAX_PROXY_PORT 18801 inline mode listen port
CLAUDE_MAX_PROXY_UPSTREAM (none) shared mode upstream base URL, e.g. http://172.18.0.1:18801
CLAUDE_MAX_PROXY_BIND_HOST 127.0.0.1 inline mode bind address
CLAUDE_MAX_PROXY_AUTH_TOKEN (none) required when CLAUDE_MAX_PROXY_BIND_HOST is not a loopback address; checked via Authorization: Bearer <token> or x-claude-max-proxy-token header
CLAUDE_MAX_PROXY_VERBOSE false extra request logging
CLAUDE_MAX_PROXY_CONFIG_PATH (none) explicit path to a config.json fingerprint override file; takes precedence over a config.json found next to the agent root
CLAUDE_MAX_CREDENTIALS_PATH (auto) path to .credentials.json; defaults to ~/.claude/.credentials.json
CLAUDE_CODE_OAUTH_TOKEN (none) direct OAuth bearer token; takes precedence over the file
ANTHROPIC_BASE_URL (auto-set by plugin) leave unset and the plugin picks. Set to auto to opt back in if you ever set it. Set to anything else and the plugin will leave it alone.

Diagnostics

  • HTTP route: GET /api/anthropic-proxy/status returns the current mode, URL, listening state, request count, token expiry, and (in shared mode) upstream reachability.
  • Action: PROXY_STATUS returns the same info to a chat surface.
  • Local proxy health: GET http://127.0.0.1:18801/health (replace port to match config).

Token refresh

If you hit a 401 (token expired) run:

claude auth login

The plugin re-reads the credentials file on every request, so a fresh login is picked up immediately — no need to restart the agent.

Failure modes (intentional)

  • Missing credentials. Plugin logs a warning, degrades to off mode, agent keeps running. It does not crash.
  • Inline port collision. Plugin logs the bind error, degrades to off mode.
  • Shared upstream unreachable at startup. Plugin still boots in shared mode; the unreachable upstream is reported via /api/anthropic-proxy/status.

Plugin shape

  • services: [AnthropicProxyService] — Service that owns the http server lifecycle (start/stop)
  • actions: [proxyStatusAction]PROXY_STATUS action for in-chat diagnostics
  • routes: anthropicProxyRoutesGET /api/anthropic-proxy/status for external tools
  • init() — sets ANTHROPIC_BASE_URL if you haven't already

Files

plugins/plugin-anthropic-proxy/
├── index.ts                           # Plugin export + init
├── index.node.ts                      # Node entry
├── index.browser.ts                   # Browser-unavailable entry
├── auto-enable.ts                      # shouldEnable() opt-in check
├── config.json.example                # Custom fingerprint dictionary shape
├── build.ts                           # Bun build script
├── package.json
├── tsconfig.json / tsconfig.build.json
├── vitest.config.ts
├── bunfig.toml
├── src/
│   ├── proxy/
│   │   ├── constants.ts               # Algorithm constants + DEFAULT_* dict re-exports
│   │   ├── eliza-fingerprint.ts       # ELIZA_* default fingerprint dictionaries
│   │   ├── billing-fingerprint.ts     # Layer 1: SHA256 fingerprint
│   │   ├── sanitize.ts                # Layer 2: string sanitize
│   │   ├── tool-rename.ts             # Layer 3/6: quoted name renames
│   │   ├── system-prompt.ts           # Layer 4: system strip + paraphrase
│   │   ├── cc-tool-injection.ts       # Layer 5: description strip + synthetic CC tools
│   │   ├── sse-rewrite.ts             # Tail-buffer SSE reverse map
│   │   ├── stainless-headers.ts       # CC-emulating SDK headers
│   │   ├── process-body.ts            # Forward request pipeline
│   │   ├── reverse-map.ts             # Response/SSE reverse pipeline
│   │   └── server.ts                  # http.createServer lifecycle
│   ├── services/
│   │   └── proxy-service.ts           # AnthropicProxyService extends Service
│   ├── actions/
│   │   └── proxy-status.action.ts     # PROXY_STATUS action
│   ├── routes/
│   │   └── status-route.ts            # /api/anthropic-proxy/status
│   └── utils/
│       └── credentials-loader.ts      # ~/.claude/.credentials.json + JWT exp
└── __tests__/
    ├── proxy.test.ts
    ├── auto-enable.test.ts
    ├── eliza-fingerprint.test.ts
    ├── manifest-engine.integration.test.ts
    ├── process-body.edge.test.ts
    ├── proxy-server.routing.test.ts
    └── sse-rewrite.test.ts