You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Monitor, manage, and configure your CLI proxy channels β all from a modern web UI.
β¨ Overview
Code Proxy is the official web-based admin panel for CliRelay β a proxy server that wraps Claude Code, Gemini CLI, OpenAI Codex, Qwen, iFlow, Kimi, Antigravity, xAI/Grok, OpenCode Go, ClinePass, Ollama Cloud, Bedrock, Vertex, Amp, and OpenAI-compatible upstreams behind one managed API layer.
This dashboard provides a complete management interface for your AI proxy infrastructure:
π Dashboard β KPI cards, health score, live system stats, throughput, storage, and latency ranking
π Monitor Center β model distribution, daily trends, token/request charts, and API Key filters
# Clone the repository
git clone https://github.com/kittors/codeProxy.git
cd codeProxy
# Install dependencies
bun install
# Start dev server
bun run dev
# Type-check & build
bun run build
# Preview production build
bun run preview
Quality Checks
Pull requests to dev and main run lint, low-concurrency Vitest, build, and bundle diff in GitHub Actions. The frontend package manager is Bun (packageManager: bun@1.2.2); use bun run ... commands for local spot checks and leave full CI validation to GitHub Actions when local hardware is constrained.
π Project Structure
apps/admin-panel/ # Vite application shell, router, guards, layout, bootstrap, global styles
pages/ # Route-level screens and page-private components/hooks
features/ # Cross-page UI workflows such as log viewer, OAuth, routing editor
packages/
βββ api-client/ # Management API client, endpoint DTOs, request helpers
βββ assets/ # Vendor icons and shared static assets
βββ domain/ # Pure business logic, normalizers, formatters, pricing/quota helpers
βββ i18n/ # i18next setup and locale resources
βββ test-utils/ # Shared test utilities
βββ ui/ # Shared UI primitives, overlays, DataTable, charts, theme
tooling/ # Vite plugins and build-time helpers
scripts/ # Repository checks, including import boundary validation
π API Integration
This dashboard communicates with the CliRelay backend via the Management API:
Endpoint
Method
Description
/v0/management/config
GET
Verify login & fetch configuration
/v0/management/config.yaml
GET/PUT
Read or save YAML runtime config
/v0/management/update/*
GET/POST
Version checks and online update
/v0/management/usage
GET
Usage statistics summary
/v0/management/usage/export
GET
Export usage statistics
/v0/management/usage/import
POST
Import usage statistics
/v0/management/usage/logs
GET/DELETE
Request log history and cleanup
/v0/management/usage/logs/:id/content
GET
Full request/response message body
/v0/management/usage/chart-data
GET
Monitor and lookup chart data
/v0/management/api-keys
GET/PUT/PATCH/DELETE
Client API Key CRUD
/v0/management/api-key-permission-profiles
GET/PUT
API Key permission profiles
/v0/management/*-api-key
GET/PUT/PATCH/DELETE
Provider key CRUD for Gemini, Claude, Codex, Vertex, Bedrock, OpenCode Go, ClinePass, and Ollama Cloud
/v0/management/openai-compatibility
GET/PUT/PATCH/DELETE
OpenAI-compatible provider CRUD
/v0/management/auth-files
GET/POST/DELETE
OAuth/auth file inventory
/v0/management/auth-files/status
PATCH
Enable/disable auth files
/v0/management/auth-files/fields
PATCH
Patch auth file metadata
/v0/management/*-auth-url
GET/POST
Provider OAuth launchers
/v0/management/model-configs
GET/POST/PUT/DELETE
Custom model catalog
/v0/management/model-openrouter-sync
GET/PUT
OpenRouter model sync settings
/v0/management/model-openrouter-sync/run
POST
Run OpenRouter model sync
/v0/management/routing-config
GET/PUT
Channel groups and custom paths
/v0/management/identity-fingerprint
GET/PUT
Provider identity fingerprints
/v0/management/identity-fingerprint/learned
DELETE
Clear learned identity fingerprints
/v0/management/ccswitch-import-configs
GET/PUT
CC Switch import settings
/v0/management/proxy-pool
GET/PUT/PATCH
Reusable outbound proxy entries
/v0/management/proxy-pool/check
POST
Probe outbound proxy health
/v0/management/image-generation/*
GET/PUT/POST
Image generation channels and tests
/v0/management/logs
GET/DELETE
Runtime log viewer
/v0/management/public/*
GET/POST
API Key lookup and public import data
/v0/management/system-stats
GET
System monitoring snapshot
/v0/management/system-stats/ws
WebSocket
Real-time system monitoring
Note: The API base is automatically normalized to {apiBase}/v0/management