Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md
CLI Proxy API

CLI Proxy API Management Center

Your proxy, at a glance. Your configuration, in control.

A lightweight Web UI for CLI Proxy API.
Manage providers, credentials, quotas, and logs — from a single HTML file.

Backend: v8 Single-file build License: MIT

English · 简体中文

Get started · Features · Development · Releases


One place to manage your instance

From everyday configuration to troubleshooting, keep the essentials close at hand.

ConfigureConnectObserve
Edit settings visually or in YAML, with a diff before saving.Manage provider keys, auth files, and OAuth flows.Check instance status, provider quotas, and request logs.

Single-file deployment · Responsive layout · Four UI languages

[!IMPORTANT] Requires CLI Proxy API ≥ 8.0.0; the latest v8 release is recommended. This repository is the management UI, not the proxy — it does not forward traffic. It uses the v8 Management API (/v8/management) and v8 configuration layout, with no v0 fallback. Plugin resources and custom extensions retain their backend-declared paths.

Quick start

The UI is bundled with CLI Proxy API. No separate frontend deployment is needed for the standard setup.

  1. Start your CLI Proxy API service.
  2. Open http://<host>:<api_port>/management.html.
  3. Enter your management key and connect.

The API address is detected from the page URL and can be changed manually.

[!NOTE] The management key signs you into this UI. Client keys in access.api-keys authorize requests to the proxy — they are not interchangeable.

Connection settings & remote access

The UI accepts addresses such as localhost:8317, https://example.com:8317, or http://example.com:8317/v8/management; the management suffix is removed automatically.

Management requests use Authorization: Bearer <MANAGEMENT_KEY>. Remote access may require management.allow-remote: true on the server. See the backend documentation for authentication rules and server-side limits.

Upgrading from v7

Upgrade the backend first and back up config.yaml. The backend returns the v8 configuration layout on reads; a successful v8 configuration write migrates the stored file. The editor only writes v8 fields:

  • access.api-keys: client keys for accessing the proxy.
  • Top-level api-keys: upstream provider groups.

Features

AreaWhat you can do
DashboardSee connection status, server version, build date, and model availability at a glance.
ConfigurationEdit common settings and client keys visually, or use the YAML editor with search, highlighting, and a save diff preview.
AI providersConfigure Gemini, Codex, Claude, Vertex, and OpenAI-compatible providers; manage keys, headers, proxies, and model mappings.
Auth files & OAuthUpload, download, and organize credentials; connect supported providers with OAuth or device flows; manage model aliases and exclusions.
QuotasInspect quota and usage information for supported providers, including Claude, Antigravity, Codex, Kimi, and xAI/Grok.
LogsFollow logs with auto-refresh, search, hide management traffic, and download request error logs.
PluginsAccess plugin management when the connected backend advertises support.
SystemCheck for updates, inspect available models, and clear local login data.

Supports English, 简体中文, 繁體中文, and Русский, with browser-language detection and a manual language switch. Responsive layouts support desktop, tablet, and mobile use in modern Chrome, Firefox, Safari, and Edge.

Deployment

To build your own single-file UI, use Bun 1.4.3:

bun install --frozen-lockfile
bun run build

The output is dist/index.html, with JavaScript, CSS, and bundled assets inlined. The release workflow renames it to management.html for backend hosting.

Use bun run preview to preview locally. Prefer an HTTP server over opening the file via file://, which can encounter browser CORS restrictions.

Release details
  • Tags matching vX.Y.Z trigger the release workflow.
  • The UI version is injected at build time from VERSION, then git tags, then the package version, with dev as the final fallback.
  • Hash routing and an ES2020 build target keep deployment simple.

Development

bun install --frozen-lockfile
bun run dev

Open http://localhost:5173 and connect to your backend instance.

Built with React 19 · TypeScript 6 · Vite 8 · Zustand · Axios · React Router 7 · Motion · CodeMirror 6 · SCSS Modules · i18next.

CommandPurpose
bun run devStart the Vite dev server
bun run buildTypeScript compilation + production build
bun run previewServe the build locally
bun run testRun Bun tests
bun run lintRun ESLint; warnings are not treated as failures
bun run type-checkRun tsc --noEmit
bun run verifyRun tests, lint, and build
bun run formatFormat source files with Prettier

Issues and PRs are welcome. Include reproduction steps, backend and UI versions, screenshots for UI changes, and verification results. See AGENTS.md for repository conventions.

Security

Treat the management key as a secret. When remember password is enabled, it is persisted in browser storage using reversible obfuscation — not encryption.

Use a trusted device or dedicated browser profile. Enable remote management only after evaluating the exposure of your server.

Troubleshooting

Connection or authentication problems
  • Cannot connect / 401: check the API address and management key. Remote connections may require remote management to be enabled.
  • Repeated authentication failures: the server may temporarily block remote IPs.
Missing pages, unsupported features, or failed tests
  • Logs page missing: enable “Logging to file” in Basic Settings.
  • Feature unsupported: check the backend version and whether the relevant endpoint is enabled. Some capabilities depend on backend support.
  • Model list unavailable: querying /v1/models requires at least one proxy API key.
  • OpenAI provider test fails: this test runs in the browser and depends on the provider's network reachability and CORS policy. Failure does not necessarily mean the backend cannot reach it.

关于 About

This is a WebUI interface based on CLI-Proxy-API, designed to simplify configuration modifications and runtime status monitoring.

语言 Languages

TypeScript88.4%
SCSS11.5%
HTML0.1%
JavaScript0.0%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
1291
Total Commits
峰值: 65次/周
Less
More

核心贡献者 Contributors