[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-73831":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":15,"forks30d":15,"starsTrendScore":19,"compositeScore":20,"rankGlobal":9,"rankLanguage":9,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":9,"pushedAt":9,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":15,"starSnapshotCount":15,"syncStatus":29,"lastSyncTime":30,"discoverSource":31},73831,"Cli-Proxy-API-Management-Center","router-for-me\u002FCli-Proxy-API-Management-Center","router-for-me","This is a WebUI interface based on CLI-Proxy-API, designed to simplify configuration modifications and runtime status monitoring.",null,"TypeScript",3112,1037,5,1,0,100,164,517,300,111.05,"MIT License",false,"main",true,[],"2026-06-12 04:01:12","# CLI Proxy API Management Center\n\nA single-file Web UI (React + TypeScript) for operating and troubleshooting the **CLI Proxy API** via its **Management API** (config, credentials, and logs).\n\n[中文文档](README_CN.md)\n\n**Main Project**: https:\u002F\u002Fgithub.com\u002Frouter-for-me\u002FCLIProxyAPI  \n**Example URL**: https:\u002F\u002Fremote.router-for.me\u002F  \n**Minimum Required Version**: ≥ 7.1.0 (recommended lastest)\n\nSince version 6.0.19, the Web UI ships with the main program; access it via `\u002Fmanagement.html` on the API port once the service is running.\n\n## What this is (and isn’t)\n\n- This repository is the Web UI only. It talks to the CLI Proxy API **Management API** (`\u002Fv0\u002Fmanagement`) to read\u002Fupdate config, upload credentials, and view logs.\n- It is **not** a proxy and does not forward traffic.\n\n## Quick start\n\n### Option A: Use the Web UI bundled in CLI Proxy API (recommended)\n\n1. Start your CLI Proxy API service.\n2. Open: `http:\u002F\u002F\u003Chost>:\u003Capi_port>\u002Fmanagement.html`\n3. Enter your **management key** and connect.\n\nThe address is auto-detected from the current page URL; manual override is supported.\n\n### Option B: Run the dev server\n\n```bash\nnpm ci\nnpm run dev\n```\n\nOpen `http:\u002F\u002Flocalhost:5173`, then connect to your CLI Proxy API backend instance.\n\n### Option C: Build a single HTML file\n\n```bash\nnpm ci\nnpm run build\n```\n\n- Output: `dist\u002Findex.html` (all assets are inlined).\n- For CLI Proxy API bundling, the release workflow renames it to `management.html`.\n- To preview locally: `npm run preview`\n\nTip: opening `dist\u002Findex.html` via `file:\u002F\u002F` may be blocked by browser CORS; serving it (preview\u002Fstatic server) is more reliable.\n\n## Connecting to the server\n\n### API address\n\nYou can enter any of the following; the UI will normalize it:\n\n- `localhost:8317`\n- `http:\u002F\u002F192.168.1.10:8317`\n- `https:\u002F\u002Fexample.com:8317`\n- `http:\u002F\u002Fexample.com:8317\u002Fv0\u002Fmanagement` (also accepted; the suffix is removed internally)\n\n### Management key (not the same as API keys)\n\nThe management key is sent with every request as:\n\n- `Authorization: Bearer \u003CMANAGEMENT_KEY>` (default)\n\nThis is different from the proxy `api-keys` you manage inside the UI (those are for client requests to the proxy endpoints).\n\n### Remote management\n\nIf you connect from a non-localhost browser, the server must allow remote management (e.g. `allow-remote-management: true`).  \nCheck the CLI Proxy API server documentation\u002Fconfig comments for the full authentication rules, server-side limits, and edge cases.\n\n## What you can manage (mapped to the UI pages)\n\n- **Dashboard**: connection status, server version\u002Fbuild date, quick counts, model availability snapshot.\n- **Config Panel**: visual editor for common `config.yaml` fields, basic settings, proxy `api-keys`, and source editing with YAML highlighting\u002Fsearch plus a save diff preview.\n- **AI Providers**:\n  - Gemini\u002FCodex\u002FClaude\u002FVertex key entries (base URL, headers, proxy, model aliases, excluded models, prefix).\n  - OpenAI-compatible providers (multiple API keys, custom headers, model alias import via `\u002Fv1\u002Fmodels`, optional browser-side \"chat\u002Fcompletions\" test).\n  - Ampcode integration (upstream URL\u002Fkey, force mappings, model mapping table).\n- **Auth Files**: upload\u002Fdownload\u002Fdelete JSON credentials, filter\u002Fsearch\u002Fpagination, runtime-only indicators, view supported models per credential (when the server supports it), manage OAuth excluded models (supports `*` wildcards), configure OAuth model alias mappings.\n- **OAuth**: start OAuth\u002Fdevice flows for Codex, Anthropic\u002FClaude, Antigravity, Gemini CLI, Kimi, and xAI\u002FGrok; poll status; submit callback URLs or xAI\u002FGrok displayed codes; import Vertex JSON credentials and iFlow cookies.\n- **Quota Management**: manage quota limits and usage for Claude, Antigravity, Codex, Gemini CLI, and other providers.\n- **Logs**: tail logs with incremental polling, auto-refresh, search, hide management traffic, clear logs; download request error log files.\n- **System**: quick links, update check, request logging toggle, local login data cleanup, and fetch `\u002Fv1\u002Fmodels` (grouped view). Requires at least one proxy API key to query models.\n\n## Tech Stack\n\n- React 19 + TypeScript 5.9\n- Vite 8 (single-file build)\n- Zustand (state management)\n- Axios (HTTP client)\n- react-router-dom v7 (HashRouter)\n- Motion (animations)\n- CodeMirror 6 (YAML editor)\n- SCSS Modules (styling)\n- i18next (internationalization)\n\n## Internationalization\n\nCurrently supports four languages:\n\n- English (en)\n- Simplified Chinese (zh-CN)\n- Traditional Chinese (zh-TW)\n- Russian (ru)\n\nThe UI language is automatically detected from browser settings and can be manually switched from the login page or header language menu.\n\n## Browser Compatibility\n\n- Build target: `ES2020`\n- Supports modern browsers (Chrome, Firefox, Safari, Edge)\n- Responsive layout for mobile and tablet access\n\n## Build & release notes\n\n- Vite produces a **single HTML** output (`dist\u002Findex.html`) with all assets inlined (via `vite-plugin-singlefile`).\n- Tagging `vX.Y.Z` triggers `.github\u002Fworkflows\u002Frelease.yml` to publish `dist\u002Fmanagement.html`.\n- The UI version shown on the System page is injected at build time (env `VERSION`, git tag, or `package.json` fallback).\n\n## Security notes\n\n- The management key is stored in browser `localStorage` using a lightweight obfuscation format (`enc::v1::...`) to avoid plaintext storage; treat it as sensitive.\n- Use a dedicated browser profile\u002Fdevice for management. Be cautious when enabling remote management and evaluate its exposure surface.\n\n## Troubleshooting\n\n- **Can’t connect \u002F 401**: confirm the API address and management key; remote access may require enabling remote management in the server config.\n- **Repeated auth failures**: the server may temporarily block remote IPs.\n- **Logs page missing**: enable “Logging to file” in Basic Settings; the navigation item is shown only when file logging is enabled.\n- **Some features show “unsupported”**: the backend may be too old or the endpoint is disabled\u002Fabsent (common for model lists per auth file, excluded models, logs).\n- **OpenAI provider test fails**: the test runs in the browser and depends on network\u002FCORS of the provider endpoint; a failure here does not always mean the server cannot reach it.\n\n## Development\n\n```bash\nnpm run dev        # Vite dev server\nnpm run build      # tsc + Vite build\nnpm run preview    # serve dist locally\nnpm run lint       # ESLint (fails on warnings)\nnpm run format     # Prettier\nnpm run type-check # tsc --noEmit\n```\n\n## Contributing\n\nIssues and PRs are welcome. Please include:\n\n- Reproduction steps (server version + UI version)\n- Screenshots for UI changes\n- Verification notes (`npm run lint`, `npm run type-check`, `npm run build`)\n\n## License\n\nMIT\n","CLI Proxy API Management Center 是一个基于Web的用户界面，旨在简化CLI Proxy API的配置修改和运行时状态监控。该项目使用React和TypeScript构建，提供了一个单文件Web UI来操作和故障排除CLI Proxy API，并通过其管理API（\u002Fv0\u002Fmanagement）读取\u002F更新配置、上传凭据以及查看日志。适合需要远程或本地管理CLI Proxy API服务的场景，如调整代理设置、管理API密钥或检查系统日志等。项目自版本6.0.19起与主程序捆绑发布，可通过API端口访问`\u002Fmanagement.html`页面进行管理。",2,"2026-06-11 03:47:33","high_star"]