cliproxy
Check and restart the CLIProxy sidecar (port 8317). CLIProxy bridges ChatGPT subscription OAuth tokens to an Anthropic-compatible /v1/messages endpoint so…
от eltmon★ 36 звёзд на GitHub
Установить cliproxy в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
CLIProxy — Check and Restart
CLIProxy is a background sidecar that proxies Anthropic-compatible API calls to GPT
models via ChatGPT subscription OAuth tokens. Overdeck agents talk to it via
ANTHROPIC_BASE_URL=http://127.0.0.1:8317.
Quick Status Check
# Is it running?
ss -tlnp | grep 8317
# Check PID file
cat ~/.overdeck/cliproxy/cliproxy.pid 2>/dev/null
# Verify process is alive
kill -0 $(cat ~/.overdeck/cliproxy/cliproxy.pid 2>/dev/null) 2>/dev/null && echo "alive" || echo "dead"
Restart CLIProxy
# Kill any existing instance
lsof -ti:8317 2>/dev/null | xargs -r kill 2>/dev/null || true
rm -f ~/.overdeck/cliproxy/cliproxy.pid
# Start fresh
nohup ~/.overdeck/bin/cliproxy -config ~/.overdeck/cliproxy/config.yaml \
>> ~/.overdeck/cliproxy/cliproxy.log 2>&1 &
echo $! > ~/.overdeck/cliproxy/cliproxy.pid
# Confirm it's up (give it 2 seconds)
sleep 2 && ss -tlnp | grep 8317
Check Recent Logs
# Last 30 lines of cliproxy log
tail -30 ~/.overdeck/cliproxy/cliproxy.log
# Watch live
tail -f ~/.overdeck/cliproxy/cliproxy.log
Config and Auth
| Path | Purpose |
|---|---|
~/.overdeck/bin/cliproxy |
Binary (v8.0.71, pinned by Overdeck) |
~/.overdeck/cliproxy/config.yaml |
Server config in the v8 layout, generated by Overdeck on every start (mode 0600; do not edit) |
~/.overdeck/cliproxy/config.extra.yaml |
Operator additions (aliases, routing, …), parsed as YAML and deep-merged over the generated config; legacy v7 keys are converted |
~/.overdeck/cliproxy/management-key |
Plaintext management API key (mode 0600); CLIProxy stores only its bcrypt hash in config.yaml |
~/.overdeck/cliproxy/auth/codex-primary.json |
Codex OAuth credentials (bridged from ~/.codex/auth.json) |
~/.overdeck/cliproxy/cliproxy.pid |
PID file written on manual start |
~/.overdeck/cliproxy/cliproxy.log |
Append-only log |
Generated config (before config.extra.yaml is merged; a bridged Gemini key adds api-keys.gemini, and Codex aliases add oauth.excluded-models.claude):
config-version: 8
server:
host: 127.0.0.1
port: 8317
access:
api-keys:
- overdeck-local-cliproxy-key
management:
allow-remote: false
secret-key: <from management-key>
routing:
strategy: round-robin
session-affinity: true
session-affinity-ttl: 1h
observability:
logs:
debug: false
oauth:
auth-dir: ~/.overdeck/cliproxy/auth
Lifecycle in Overdeck
Overdeck's startCliproxy() in src/lib/cliproxy.ts handles:
- Ensuring binary is installed
- Writing
~/.overdeck/cliproxy/config.yamlin the v8 layout, only after the binary is the pinned version (a running older proxy is upgraded first: download, stop, write, spawn) - Bridging
~/.codex/auth.json→auth/codex-primary.json - Spawning the process detached with a PID file
CLIProxy is normally started automatically by pan up. If it crashed or was never
started, use the restart snippet above.
Auth Token Refresh
If 502 errors are appearing in the log, the Codex OAuth token may be expired. CLIProxy has an auto-refresh loop, but if it fails:
# Check if auth file exists and has tokens
cat ~/.codex/auth.json | python3 -c "import sys,json; d=json.load(sys.stdin); print('access_token:', bool(d.get('tokens',{}).get('access_token')))"
# Re-bridge auth (re-runs the mapping from ~/.codex/auth.json)
# This is done automatically by pan up — or run pan install to re-authenticate
Dashboard Re-Auth Flow (PAN-913)
The Overdeck dashboard can trigger interactive Codex re-authentication when
ChatGPT subscription tokens expire. This avoids requiring the user to run
codex login manually in a terminal.
Flow
- Detection — Dashboard polls
GET /api/settings/codex-authevery 2 min. Status can bevalid,expired,burned,missing, orunknown. - Initiation — User clicks Re-authenticate in Settings or the top banner.
Dashboard calls
POST /api/settings/codex-reauth(idempotent — returns an existing live session if one is already running). - Terminal login — Backend spawns a tmux session named
reauth-<uuid>runningcodex login(orcodex login --device-authwhen headless), sets an HttpOnlypan_codex_reauthcookie for/ws/terminal, and the frontend opens/terminal/<sessionName>so the user can complete OAuth in a live terminal panel. - Polling — Frontend polls
POST /api/settings/codex-reauth/statuswith the session name and status token every 3 s. The session is considered complete when the tmux pane exits. - Bridge — On completion, the backend calls
bridgeCodexAuthToCliproxyAsync()to rewrite~/.overdeck/cliproxy/auth/codex-primary.jsonfrom the fresh~/.codex/auth.json, then returns the updated auth status. - Auto-retry — If an agent spawn was blocked by expired auth, the frontend
automatically retries
POST /api/agentsonce auth becomes valid.
Security
- Re-auth terminal tokens are sh
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash - 02
Read
FAQ
Что делает скилл cliproxy?
Check and restart the CLIProxy sidecar (port 8317). CLIProxy bridges ChatGPT subscription OAuth tokens to an Anthropic-compatible /v1/messages endpoint so Overdeck agents can use GPT models without an OpenAI API key. Use when GPT-model agents are returning API errors or when cliproxy is down.
Как установить скилл cliproxy?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cliproxy запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…