← Về thư mục
📄 / / proc / 45 / cwd / root / .hermes / skills / autonomous-ai-agents / claude-code-9router / SKILL.md

name: claude-code-9router description: "Configure and run Claude Code CLI routed through 9Router Proxy (local or remote)" version: 1.0.1 author: CEO AI OS license: MIT platforms: [linux] metadata: hermes: tags: [Coding-Agent, Claude, 9Router, Proxy, Configuration, Troubleshooting] related_skills: [claude-code, codex]


Claude Code 9Router Integration Guide

This skill covers configuring and troubleshooting the Anthropic Claude Code CLI when routed through a 9Router proxy (either local or remote) instead of the standard Anthropic API endpoint.

Configuration Steps (on VPS Host)

  1. Install Claude Code globally on the host VPS: bash sudo npm install -g @anthropic-ai/claude-code

  2. Configure settings: Create or update ~/.claude/settings.json on the host: json { "hasCompletedOnboarding": true, "env": { "ANTHROPIC_BASE_URL": "http://127.0.0.1:20131", "ANTHROPIC_AUTH_TOKEN": "<bridge-or-9router-key>" }, "model": "sonnet" } Use a bridge root, not /v1, when the bridge appends /v1/messages itself.

  3. Secure the Configuration File: Set the file permissions to 600 to prevent credentials leakage: bash chmod 600 ~/.claude/settings.json

  4. Verify connection status: bash claude auth status --text It should display the bridge URL and token source.

Proxy / bridge patterns

Use the simplest method that does not require changing 9Router internals:

Pitfalls & Troubleshooting

Support files