logo
icon

CLI Proxy API (CPA)

OpenAI/Gemini/Claude/Codex compatible API proxy with OAuth support for AI coding tools

template cover
Dideploy4 kali
Penerbitkehao-chen
Dibuat2026-06-09
Tag
AIAPIProxyTool

Layanan

CLI Proxy API

For full documentation, see help.router-for.me.

This template pre-configures persistent auth-dir for OAuth credentials, with all necessary ports exposed.

Quick Start

  1. Bind domain to port 8317: Go to Networking > Domain, bind your *.zeabur.app domain to port 8317
  2. Open Management UI: https://<your-domain>/management.html?key=<MANAGEMENT_PASSWORD>
  3. Click OAuth button to authenticate your provider
  4. Connect your tool with Base URL https://<your-domain>/v1 and API Key from API_KEY variable

Variables

VariableDescription
PUBLIC_DOMAINDomain bound to this service (auto-configured by Zeabur)
MANAGEMENT_PASSWORDPassword for Management UI and API
API_KEYAPI key for connecting your AI coding tools

Persistent Storage

All data is stored under /data (persistent volume):

PathDescription
/data/config.yamlMain configuration file
/data/.cli-proxy-api/OAuth credentials directory (auth-dir)
/data/logs/Application logs

Ports

PortPurpose
8317API & Management UI (HTTP)
8085OAuth Callback (HTTP)
1455Codex OAuth (TCP)
54545Claude OAuth (TCP)
51121Antigravity OAuth (TCP)
11451iFlow OAuth (TCP)
56121xAI/Grok OAuth (TCP)