The official frontend management panel for CliRelay (CLI Proxy API)
Monitor, manage, and configure your CLI proxy channels β all from a modern web UI.
Code Proxy is the official web-based admin panel for CliRelay β a proxy server that wraps Gemini CLI, Antigravity, ChatGPT Codex, Claude Code, Qwen Code, Kiro, and iFlow as OpenAI/Gemini/Claude compatible API services.
This dashboard provides a complete management interface for your AI proxy infrastructure:
- π Real-time Dashboard β KPI cards, health score, system monitoring, channel latency
- π Advanced Monitoring Center β Model usage distribution, daily trends, hourly heatmaps with API Key filtering
- π Request Logs β Full request history with token counts, latency, status, and clickable error details
- π¬ Message Viewer β Beautiful Markdown-rendered input/output content with XML tag collapsible sections
- π AI Provider Management β Multi-tab provider config (Gemini, Claude, Codex, Vertex, OpenAI, Ampcode) with enable/disable toggles
- ποΈ Auth File Workspace β Saved OAuth/auth files with model inspection, prefix/proxy controls, and download actions
- π§ͺ OAuth Workbench β Provider-specific authorization launcher with remote callback submission
- π API Key Management β Create, edit, delete keys with quota & rate limit controls
- π OAuth Login Management β Manage OAuth authentication credentials
- π¦ Config Panel β Visual YAML configuration editor with import/export
- π― Model Management β Model alias mapping and routing rules
- π Quota Management β Per-key usage quota tracking and limits
- π API Key Lookup β Public self-service page for users to check their own usage statistics and request logs
- π² Model Pricing β Built-in pricing table for quota cost accounting and per-model cost controls
- βΉοΈ System Info β Connection info grid, version/build metadata, model listing with colorful vendor icons and click-to-copy
- πͺ΅ Live Logs β Streaming log viewer with search, download, clear, and runtime filter controls
- π Dark Mode β Full dark theme with smooth transitions
- π i18n Ready β Internationalization support (Chinese, English)
The gallery below uses the latest 13 management-panel screenshots and maps each screen to its operational role.
| Screen | What it shows |
|---|---|
| Dashboard Overview | KPI cards, health score, live system monitor, throughput, resource usage, latency ranking |
| Monitor Center | Request KPIs, model distribution, daily token trends, API Key usage share |
| Request Logs | Multi-filter log table, time range selector, status/channel/model filtering |
| Request Details | Input/output viewer with Markdown rendering and instruction block inspection |
| AI Providers | Multi-provider tabs, per-channel success rate, model tags, enable/edit/delete controls |
| Auth Files | Saved auth file inventory with model inspection, proxy prefix controls, and download |
| OAuth Login | Authorization launcher plus remote callback submission workflow |
| API Keys | Keys, quotas, RPM/TPM, model permissions, channel bindings, quick actions |
| Models | Pricing table for input/output/cache cost accounting |
| Quota | Remaining refresh time and current usage bars for provider-specific quotas |
| Config | YAML source editor with search and runtime mode switching |
| System | API base, management endpoint, version metadata, API Key lookup link, model tags |
| Logs | Live log console with search, download, clear, and toggleable filters |
Dashboard β KPI cards, health score, live system monitor, throughput, storage, and channel latency ranking.
Monitor Center (Chinese locale) β request summary, model distribution, daily token/request trends, and API Key usage share.
Request Logs β time-range switcher, multi-filter toolbar, high-density table, and success metrics at a glance.
Request Details β input/output tabs, Markdown rendering, collapsible sections, and copy/export helpers.
AI Providers β provider tabs, per-channel success/failure stats, model badges, latency bars, and CRUD actions.
Auth Files β card-based inventory for saved credentials with model inspection, rename, proxy-prefix, download, and delete actions.
OAuth Login β provider-specific authorization launcher plus remote callback URL submission workflow.
API Keys β quotas, RPM/TPM limits, model permissions, channel bindings, and quick analytics/edit actions.
Models β built-in pricing catalog for input/output/cache cost calculation and quota accounting.
Quota β remaining refresh time and progress bars for Codex, Gemini CLI, Kiro, and other provider-specific quotas.
Config β source editor mode with YAML search, keyboard-friendly navigation, and runtime config switching.
System β API base, management endpoint, version/build metadata, API Key lookup entry, and vendor-colored model tags.
Logs β live stream viewer with keyword search, hide-management toggle, download, clear, and jump-to-latest controls.
| Module | Description |
|---|---|
| KPI Cards | Total requests, success rate, token consumption, failed request count (7-day / 30-day) |
| Health Score | Real-time circular gauge (0β100) evaluating overall system health |
| System Monitor | WebSocket-powered live stats: uptime, goroutines, CPU, memory, network I/O, DB size |
| Channel Latency | Top 5 channel average latency with visual bar indicators |
| Resource Bars | System CPU, memory, service CPU, memory, database size β color-coded status |
| Module | Description |
|---|---|
| KPI Summary | Total requests, success rate, total/output tokens with time range selection |
| Model Distribution | Interactive donut chart showing Top 10 model usage by request count or token |
| Daily Trends | Dual-axis chart with input/output tokens (bar) and request count (line) over time |
| Hourly Heatmap | Stacked bar chart showing per-model hourly request distribution (6h / 12h / 24h) |
| API Key Filter | Filter all metrics by specific API Key prefix |
| Module | Description |
|---|---|
| Virtual Table | High-performance virtual scrolling for 10,000+ log entries |
| Multi-Filter | Filter by Key, model, status (success/fail), with time range selection |
| Token Details | Click on input/output tokens to view full message content |
| Error Modal | Click on "ε€±θ΄₯" (Failed) status to view error details in a red-themed modal |
| Message Viewer | Markdown rendering with syntax highlighting, XML tag detection, and role-based collapsible blocks |
| Module | Description |
|---|---|
| Multi-Tab | Gemini, Claude, Codex, Vertex, OpenAI Compatible, Ampcode tabs |
| Channel Cards | Name, masked API key, base URL, model count, success/fail stats, latency bar |
| CRUD | Add, edit, delete channels with full configuration (proxyUrl, headers, model aliases, excluded models) |
| Toggle | Enable/disable individual channels with instant visual feedback |
| Module | Description |
|---|---|
| Self-Service | Public page (no login required) for end users to check their API Key usage |
| Usage Stats | Per-key KPI cards, model distribution chart, daily trend chart |
| Request Logs | Per-key request history with detailed virtual table and source channel info |
| Category | Technology |
|---|---|
| Framework | React 19.2 + TypeScript 5.9 |
| Build Tool | Vite 7.3 |
| Package Manager | Bun 1.2 |
| Styling | Tailwind CSS v4 |
| State Management | Zustand |
| Charts | Apache ECharts |
| Routing | React Router v7 |
| HTTP | Axios + WebSocket (real-time monitoring) |
| Icons | Lucide React + Custom vendor SVGs (14 vendors) |
| Linting | oxlint + oxfmt |
# Clone the repository
git clone https://github.com/kittors/codeProxy.git
cd codeProxy
# Install dependencies
bun install
# Start dev server
bun run devThe dashboard will be available at http://localhost:5173/
# Type-check & build
bun run build
# Preview production build
bun run previewsrc/
βββ app/ # Routing & auth guards
βββ assets/icons/ # Vendor SVG icons (Claude, OpenAI, Gemini, etc.)
βββ components/ui/ # Inline SVG icon components
βββ i18n/ # i18next locales (en, zh-CN)
βββ lib/
β βββ constants/ # App-wide constants
β βββ http/ # Axios client, API layer, WebSocket
βββ modules/
β βββ auth/ # Authentication provider & session
β βββ apikey-lookup/ # Public API Key usage lookup
β βββ config/ # Visual config editor (YAML)
β βββ dashboard/ # Dashboard overview + system monitor
β βββ login/ # Login page
β βββ monitor/ # Monitoring center (charts, logs, modals)
β βββ oauth/ # OAuth management
β βββ providers/ # AI provider channel management
β βββ system/ # System info + model listing
β βββ ui/ # Shared UI (AppShell, Button, Table, Tabs, etc.)
β βββ usage/ # Usage statistics & snapshot import/export
βββ styles/ # Global styles & theme tokens
This dashboard communicates with the CliRelay backend via the Management API:
| Endpoint | Method | Description |
|---|---|---|
/v0/management/config |
GET |
Verify login & fetch configuration |
/v0/management/usage |
GET |
Retrieve usage statistics |
/v0/management/usage/logs |
GET |
Paginated request log history |
/v0/management/usage/log-content |
GET |
Full message content (input/output) |
/v0/management/usage/dashboard-summary |
GET |
Dashboard KPI data |
/v0/management/usage/model-distribution |
GET |
Model usage distribution |
/v0/management/usage/daily-trends |
GET |
Daily token/request trends |
/v0/management/usage/hourly-model |
GET |
Hourly per-model request data |
/v0/management/openai-compatibility |
GET/POST/DELETE |
OpenAI channel CRUD |
/v0/management/gemini-api-key |
GET/POST/DELETE |
Gemini channel CRUD |
/v0/management/claude-api-key |
GET/POST/DELETE |
Claude channel CRUD |
/v0/management/codex-api-key |
GET/POST/DELETE |
Codex channel CRUD |
/v0/management/vertex-api-key |
GET/POST/DELETE |
Vertex channel CRUD |
/v0/management/system-stats |
WebSocket |
Real-time system monitoring |
Note: The API base is automatically normalized to
{apiBase}/v0/management
For full backend API documentation, see the CliRelay Management API.
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- CliRelay β The backend proxy server (Go)
- CliRelay Guides β Official documentation
This project is open source. See the LICENSE file for details.
Made with β€οΈ for the CliRelay community












