Cli-Proxy-API-Management-Center
AGENTS.md4.8k starsChanged 25 days agoMITView on GitHub
This is a React 19 + TypeScript + Vite management frontend for CLI Proxy API, not the proxy itself. It exclusively uses the backend v8 Management API under /v8/management and the v8 configuration layout; do not add v0 fallbacks or legacy config adapters. Plugin resources and custom HTTP extensions are exceptions: preserve their backend-declared paths. The one sanctioned v0 touchpoint is src/services/api/legacyBackendProbe.ts: after a v8 login 404 it only detects an outdated backend to show a clearer error, and must…
Trending
More talk lately.about the whole repository
Who's talking about router-for-me/Cli-Proxy-API-Management-Center
- router-for-me/CLIProxyAPI“feat: add GitHub Copilot provider with device login and quota”GitHub · Sep 9, 2026 · 2 reactions
- router-for-me/CLIProxyAPI“feat: add weighted round-robin credential selection”GitHub · Jun 20, 2026 · 2 reactions
- router-for-me/CLIProxyAPI“Add thinking intensity to usage request details”GitHub · Apr 24, 2026 · 2 reactions
- seakee/CPA-Manager-Plus“[Feature]: 每个账号增加独立的「清除冷却」按钮”GitHub · Oct 26, 2026 · 1 reactions
- pingdotgg/t3code“fix(server): read Grok usage limits through CLIProxyAPI”GitHub · Oct 19, 2026 · 1 reactions
The biggest 5 of 50 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 50
Talked about on GitHub (50 times).
On GitHub · 50
- Sep 9, 2026feat: add GitHub Copilot provider with device login and quota — router-for-me/CLIProxyAPI2 reactions · 5 comments
- Jun 20, 2026feat: add weighted round-robin credential selection — router-for-me/CLIProxyAPI2 reactions · 1 comment
- Apr 24, 2026Add thinking intensity to usage request details — router-for-me/CLIProxyAPI2 reactions · 7 comments
- Oct 26, 2026[Feature]: 每个账号增加独立的「清除冷却」按钮 — seakee/CPA-Manager-Plus1 reaction
- Oct 19, 2026fix(server): read Grok usage limits through CLIProxyAPI — pingdotgg/t3code1 reaction · 5 comments
45 more on GitHub
- Sep 14, 2026feat(plugin-quota): add typed summary metrics — router-for-me/CLIProxyAPI1 reaction · 1 comment
- Aug 25, 2026feat(kimi): add native kimi-api-key config and executor routing — router-for-me/CLIProxyAPI1 reaction · 1 comment
- Aug 23, 2026authenticate GitHub API requests for release checks and management panel updates — router-for-me/CLIProxyAPI1 reaction
- Aug 23, 2026Support GITHUB_TOKEN for management release checks to avoid API rate limits on cloud hosts — router-for-me/CLIProxyAPI1 reaction
- May 17, 2026fix: Claude OAuth token refresh + Anthropic header injection in /api-call — router-for-me/CLIProxyAPI1 reaction · 1 comment
- Nov 11, 2026feat(container): update cliproxyapi group — shelken/home-ops0 reactions · 2 comments
- Nov 5, 2026feat(management): add Ollama Cloud usage and balance quota APIs — router-for-me/CLIProxyAPI0 reactions · 3 comments
- Nov 2, 2026fix(container): update cliproxyapi group — shelken/home-ops0 reactions · 2 comments
- Oct 31, 2026chore(upstream): merge v1.27.0 updates — orswn/Cli-Proxy-API-Management-Center0 reactions
- Oct 29, 2026chore(renovate): onboard renovate configuration — TurboCoder13/Cli-Proxy-API-Management-Center0 reactions · 1 comment
- Oct 21, 2026feat(container): update cliproxyapi group — shelken/home-ops0 reactions · 2 comments
- Oct 20, 2026[Feature]: Display Claude Code reset grants (cedar_ember) and expiry in account quota details — seakee/CPA-Manager-Plus0 reactions · 1 comment
- Oct 16, 2026Explore opt-in CPA hub federation with inference-only peering — Codeseys-Labs/hermes-cpa0 reactions
- Oct 12, 2026fix(container): update cliproxyapi group — shelken/home-ops0 reactions · 2 comments
- Oct 9, 2026feat(management): add read-only Claude OAuth extra usage and dollar balances — router-for-me/CLIProxyAPI0 reactions · 1 comment
- Oct 5, 2026What does Theo's panel show that the stock panel and plugins don't? — bandoyer/CLIProxyAPI0 reactions · 1 comment
- Oct 5, 2026feat(container): update cliproxyapi group — shelken/home-ops0 reactions · 2 comments
- Oct 2, 2026[Feature] 增加Claude重置按钮 — Willxup/cpa-usage-keeper0 reactions
- Sep 30, 2026fix(container): update cliproxyapi group — shelken/home-ops0 reactions · 2 comments
- Sep 27, 2026Kontenübergreifende Quota-Abfrage über CLIProxyAPI im Lilith-Backend — pendelyn/Lilith0 reactions · 1 comment
- Sep 14, 2026fix(quota): show Kimi weekly allowance and preserve window cadence — memeloop-online/memeloop-token-center0 reactions
- Sep 12, 2026Feature request: proxy Codex account rate-limit usage for local Codex clients — router-for-me/CLIProxyAPI0 reactions · 1 comment
- Sep 8, 2026cli-proxy-api: SSO-gated remote OAuth-login recovery — agentydragon/ducktape0 reactions
- Sep 1, 2026[Feature] Add a CLIProxyAPI-compatible gateway quota adapter layer (Antigravity / Codex / WorkBuddy) — Han-1413141/dsh-cost-meter0 reactions · 7 comments
- Aug 15, 2026Example API key detected — router-for-me/CLIProxyAPI0 reactions · 1 comment
- Jul 31, 2026feat(plugin-store): add custom proxy and accelerator support for plugin store — router-for-me/CLIProxyAPI0 reactions · 4 comments
- Jul 25, 2026Update repo table — arran4/arran40 reactions
- Jul 24, 2026Update repo table — arran4/arran40 reactions
- Jul 17, 2026Update repo table — arran4/arran40 reactions
- Jul 8, 2026feat: 支持 Payload 规则编辑 — router-for-me/Home-Management-Center0 reactions · 1 comment
- Jun 30, 2026[Bug]: codex额度没有显示重置卡到期时间 — seakee/CPA-Manager-Plus0 reactions · 1 comment
- Jun 17, 2026Management API: Antigravity quota summary via retrieveUserQuotaSummary (weekly + 5h buckets) — router-for-me/CLIProxyAPI0 reactions · 2 comments
- May 18, 2026GITSTORE_GIT_TOKEN (GitHub PAT) inadvertently sent to management panel release URL, not scoped to git store origin — router-for-me/CLIProxyAPI0 reactions
- May 18, 2026/management.html served unauthenticated; panel is third-party JS downloaded at runtime without SRI — router-for-me/CLIProxyAPI0 reactions
- May 18, 2026Update repo table — arran4/arran40 reactions
- May 17, 2026Update repo table — arran4/arran40 reactions
- May 10, 2026Update repo table — arran4/arran40 reactions
- May 4, 2026Update repo table — arran4/arran40 reactions
- Apr 29, 2026Update repo table — arran4/arran40 reactions
- Apr 15, 2026[Bug]: termux custom private 403 — NousResearch/hermes-agent0 reactions · 1 comment
- Mar 13, 2026Kiro Missing Status Tracking — cheaper-inference/OmniRoute0 reactions · 6 comments
- Mar 5, 2026Feat/api key model whitelist — router-for-me/CLIProxyAPI0 reactions · 2 comments
- Feb 27, 2026Seeking for help, setting up kimi-k2.5 — router-for-me/CLIProxyAPI0 reactions · 1 comment
- Feb 17, 2026[BUG] claude code 接入 cliproxyapi 使用时,模型的输出没有呈现流式,而是一下子蹦出来回答结果 — router-for-me/CLIProxyAPI0 reactions
- Feb 12, 2026Claude Code 调用 nvidia 发现 无法正常使用bash grep类似的工具 — router-for-me/CLIProxyAPI0 reactions
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,439 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
The file
We split this AGENTS.md into the rules it gives an agent
4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Use Bun; package.json pins bun@1.4.3, and CI uses Node.js 24.
- Very specific: line 39
Treat backend contracts as the source of truth.
- Very specific: line 49
Use 2-space indentation, semicolons, single quotes, ES5 trailing commas, and 100-character line width.
- Very specific: line 67
Use Conventional Commits, such as feat(providers): add a provider or fix(auth-files): preserve disabled actions.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Repository Guidelines
Project Scope & Structure
This is a React 19 + TypeScript + Vite management frontend for CLI Proxy API, not the proxy itself. It exclusively uses the backend v8 Management API under /v8/management and the v8 configuration layout; do not add v0 fallbacks or legacy config adapters. Plugin resources and custom HTTP extensions are exceptions: preserve their backend-declared paths. The one sanctioned v0 touchpoint is src/services/api/legacyBackendProbe.ts: after a v8 login 404 it only detects an outdated backend to show a clearer error, and must never supply application data or act as a login fallback.
src/features/: feature-owned pages, components, hooks, types, and logic. Current features aredashboard,providers,authFiles,oauth,quota,config,logs, andplugins. Prefer this layout for new feature work.src/pages/: remaining route pages outside the feature layout (login, system, and the auth-file OAuth excluded-model/model-alias editors);LogsPage.tsxthere is only a re-export of the logs feature. Follow nearby conventions when modifying these; do not migrate unrelated code.src/components/,src/hooks/,src/utils/: shared UI, hooks, and utilities. Keep feature-specific code within its feature rather than promoting it prematurely.src/services/api/: API client, domain endpoints, and backend data normalization.src/services/storage/: browser persistence.src/stores/: Zustand state.src/types/: shared types.src/styles/: global styles and theme tokens.src/App.tsx: hash-router setup.src/router/MainRoutes.tsx: authenticated route table.ProtectedRouteandMainLayoutguard and wrap the authenticated app.src/assets/: bundled assets, including provider icons inicons/.src/i18n/locales/:en.json,zh-CN.json,zh-TW.json,ru.json,vi.json,ko.json, andtr.json, registered insrc/i18n/index.ts; fallback language iszh-CN. Update all seven files when adding or changing translation keys, including accessible labels.
Build, Test, and Development Commands
Use Bun; package.json pins bun@1.4.3, and CI uses Node.js 24. Keep dependency changes consistent with bun.lock; do not introduce another package manager's lockfile.
bun install --frozen-lockfile: install locked dependencies.bun run dev: start Vite athttp://localhost:5173by default.bun run build: TypeScript compilation followed by the production Vite build.bun run preview: serve the built output locally.bun run test: run all Bun tests.bun test tests/apiError.test.ts: example focused test run.bun run lint: run ESLint over TypeScript/TSX files. Some rules emit warnings; the current command does not enforce zero warnings.bun run type-check: runtsc --noEmit; the main TypeScript config includessrc, nottests.bun run verify: run tests, lint, and build (which includes TypeScript compilation).bun run format: format allsrc/**/*.{ts,tsx,css,scss}. Prefer targeted formatting of changed files during routine work to avoid unrelated diffs.
Deployment Constraints
The production artifact is a single dist/index.html with JS/CSS and bundled assets inlined by vite-plugin-singlefile. The release workflow renames it to management.html for backend hosting; vX.Y.Z tags trigger releases.
Preserve hash routing and single-file deployment. Changes to assets, imports, code splitting, or build configuration must not introduce required external build artifacts. Do not edit generated dist/ files. App version is injected as __APP_VERSION__ from VERSION, then git tags, then the package version, falling back to dev.
API Contracts & State
- Treat backend contracts as the source of truth. Inspect
../CLIProxyAPIbefore changing endpoint names, payloads, provider keys, OAuth callback parameters, auth-file semantics, or plugin/config contracts. If that checkout is unavailable, report the missing evidence rather than guessing; do not modify the backend unless requested. - Reuse
apiClientfromsrc/services/api/client.tsfor Management API requests through domain modules. It centralizes the API prefix, bearer authentication, error normalization, and response-header handling. Avoid bypassing it with ad hoc requests in components. - Preserve the client's event integration:
unauthorizedhandles 401s,server-version-updatecarries version/build metadata, andserver-plugin-support-updatecarries plugin capability information. Keep plugin routes gated by backend support. - Normalize backend fields on read and serialize on write in the API layer; consult
transformers.tsand the relevant domain module. Keep raw backend field-name handling out of ordinary UI components. useConfigStore.fetchConfig(forceRefresh?: boolean)uses a full-config TTL cache and in-flight request deduplication, not section-based fetching. Reuse it where appropriate and invalidate/update caches after mutations using existing store actions.- Preserve stale-request guards and cache cleanup when switching connections or logging out. Old asynchronous responses must not overwrite the new session's state.
- Provider UI capabilities live in
src/features/providers/descriptors.ts;adapters.tsmaps provider configs to the shared resource model. Extend these existing abstractions rather than scattering provider-specific conditionals across components.
Coding Style & UI Conventions
Use 2-space indentation, semicolons, single quotes, ES5 trailing commas, and 100-character line width. Prefer typed React components and unknown with narrowing for untrusted data; avoid introducing any unless an unavoidable boundary requires it. Use the @/ alias for src imports.
Component files use PascalCase, hooks use useName, and API modules use domain names such as oauth.ts. SCSS Modules sit beside their page or component as Name.module.scss. Vite automatically injects src/styles/variables.scss into SCSS; new modules do not need to import it again. Reuse shared components from src/components/ui/ and existing theme tokens before adding new primitives or hard-coded colors.
Keep user-facing text in i18n. Preserve keyboard interaction, accessible names, focus behavior, and reduced-motion handling when modifying interactive UI. For motion, reuse the timing tokens in src/styles/themes.scss (--ease-out-strong, --dur-press, --dur-hover) and the helpers in src/hooks/motion.ts (prefersReducedMotion, useRevealOnScroll, useRevealGroup, useCountUp) instead of ad hoc durations and easings.
Testing & Verification
Tests are centralized under tests/ as *.test.ts and use bun:test; shared fixtures live in tests/fixtures/ and helpers in tests/helpers/. Existing suites cover pure logic, React server-side static rendering via renderToStaticMarkup, and source/contract checks. There is no configured browser DOM test harness; static markup tests do not verify browser interactions. Prefer extracting testable logic and following nearby test patterns rather than introducing a new framework by default.
For code changes, add or update relevant regression tests, run focused tests while iterating, and run bun run verify before handoff. For UI changes, also verify the affected route in a browser and include screenshots or notes. Report commands actually run, failures, and anything not verified; if a backend or browser is unavailable, state the limitation explicitly. Documentation-only changes can be checked with diff/content validation instead of a full build.
Security
Never commit real management keys, provider credentials, auth files, or other secrets; redact them from logs, screenshots, and test fixtures. Management keys are entered at runtime and persisted according to the remember-password setting. src/services/storage/secureStorage.ts provides reversible obfuscation, not encryption or a security boundary. Do not weaken authentication, plugin trust checks, or session isolation for convenience.
Commits & Guidance Maintenance
Use Conventional Commits, such as feat(providers): add a provider or fix(auth-files): preserve disabled actions. Keep changes focused. Pull requests should include a summary, linked issue when applicable, backend version/reproduction details for integration work, UI screenshots or notes when relevant, and verification results.
Maintain shared repository guidance in AGENTS.md. When updating it, synchronize the local CLAUDE.md to identical content if present; CLAUDE.md is currently ignored and untracked, so shared guidance must not depend on it. Keep guidance aligned with source and configuration rather than duplicating long implementation details.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

