-
-
-
-# HRouter Desktop
+
+
+
+
-### Less configuration. More coding.
+**Claude Code, Codex, Gemini CLI, Grok Build, OpenCode, and six more agents in one local app: providers, API keys, model mappings, backup routes, and usage.**
-**A local desktop workbench for Claude Code, Codex, and your other AI coding agents.**
-Built on [CC Switch](https://github.com/farion1231/cc-switch).
+[HRouter](https://hrouter.net/home) · [Docs](docs/access-workbench.md) · [Contact](mailto:honesttibo@mail.grokbot.com)
-[](https://github.com/honestTai/HRouter-Desktop/releases/latest)
-[](https://github.com/honestTai/HRouter-Desktop/releases/download/v0.4.2/HRouter_0.4.2_aarch64.dmg)
-[](https://github.com/honestTai/HRouter-Desktop/releases/download/v0.4.2/HRouter_0.4.2_x64-setup.exe)
-[](#download)
-[](LICENSE)
-
-**English** | [简体中文](README_ZH.md)
-
-[Download v0.4.2](#download) · [Quick start](#quick-start) · [Need model API access?](#need-model-api-access) · [Why HRouter Desktop](#why-hrouter-desktop) · [Screenshots](#screenshots) · [Compared with CC Switch](#compared-with-cc-switch)
+**English** · [简体中文](README_ZH.md)
-
-
-Claude Code, Codex, Gemini CLI, Grok Build, OpenCode, and six more agents in one local app: providers, API keys, model mappings, backup routes, and usage. [More screenshots](#screenshots).
-
-## Download
+## Quick start
**Current release: [v0.4.2](https://github.com/honestTai/HRouter-Desktop/releases/tag/v0.4.2)** (2026-10-09).
-| Platform | Package | Architecture |
-| ----------- | -------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------ |
-| **macOS** | [HRouter_0.4.2_aarch64.dmg](https://github.com/honestTai/HRouter-Desktop/releases/download/v0.4.2/HRouter_0.4.2_aarch64.dmg) | Apple Silicon (M-series) · macOS 12+ |
-| **Windows** | [HRouter_0.4.2_x64-setup.exe](https://github.com/honestTai/HRouter-Desktop/releases/download/v0.4.2/HRouter_0.4.2_x64-setup.exe) | x64 |
-
-Intel Macs are not a supported install target. The published updater covers signed, notarized macOS Apple Silicon and Windows x64. After you install, the app can check for a newer release. [Release notes](https://github.com/honestTai/HRouter-Desktop/releases/tag/v0.4.2) · [all versions](https://github.com/honestTai/HRouter-Desktop/releases).
+| Platform | Package | Architecture |
+| :--- | :--- | :--- |
+| **macOS** | [HRouter_0.4.2_aarch64.dmg](https://github.com/honestTai/HRouter-Desktop/releases/download/v0.4.2/HRouter_0.4.2_aarch64.dmg) | Apple Silicon (M-series) · macOS 12+ |
+| **Windows** | [HRouter_0.4.2_x64-setup.exe](https://github.com/honestTai/HRouter-Desktop/releases/download/v0.4.2/HRouter_0.4.2_x64-setup.exe) | x64 |
-[Changelog](CHANGELOG.md) · [Code-signing policy](CODE_SIGNING_POLICY.md)
-
-## Quick start
+Intel Macs are not a supported install target. The published updater covers signed, notarized macOS Apple Silicon and Windows x64.
-1. **Install [v0.4.2](#download).** Open the workbench and select an agent. Claude Code and Codex are the usual starting points.
+1. **Install [v0.4.2](https://github.com/honestTai/HRouter-Desktop/releases/tag/v0.4.2).** Open the workbench and select an agent. Claude Code and Codex are the usual starting points.
2. **Add a provider.** Choose an official preset, or add a custom endpoint and API key. The app can inspect the provider's model catalog so you can review the models it can actually call. Keys are stored only in the local configuration.
3. **Review, save, and enable.** Check the model mapping, then enable the provider. Refresh or restart the client if it was already open.
-Official providers, a self-hosted endpoint, or another OpenAI-compatible LLM gateway all use the same workbench.
-
-## Need model API access?
-
-HRouter Desktop stays on your machine. It configures the providers you choose: official APIs, a self-hosted endpoint, or an OpenAI-compatible gateway, including [HRouter](https://hrouter.net).
-
-[HRouter](https://hrouter.net/home) is the companion relay for prepaid model access. One API key covers Claude, GPT, Gemini, and Grok for your coding agents. Add balance and create a key on the site, then add that provider in Desktop the same way as any other endpoint.
-
-HRouter account, billing, and consultation: [honesttibo@mail.grokbot.com](mailto:honesttibo@mail.grokbot.com).
-
-## Why HRouter Desktop?
-
-Different agents. Different config files. Different providers. Switching your coding setup should not mean piecing all of them together again.
-
-**HRouter Desktop puts the connection workflow in one place:** providers, API keys, model mappings, configuration protection, backup routes, and usage. Built on CC Switch, it is a desktop CC Switch alternative: an agent-first interface for the services you choose, including official providers and OpenAI-compatible LLM gateways.
-
-- **11 agents, one workbench.** Move between Claude Code, Codex, Gemini CLI, and more without learning a different configuration UI for each.
-- **Switch with a preview, not a guess.** Opt into Claude / Codex configuration protection to preserve custom fields, preview changes, and keep local switch snapshots.
-- **Give your models a backup plan.** Choose primary and backup providers, define exact-model routes, and use automatic failover through supported local routing.
-- **Keep repeatable setups.** Save provider, MCP, and Skill selections as access profiles; review them before applying.
-- **See how your tools are being used.** Inspect requests, tokens, cache usage, and estimated costs, with an agent-scoped floating usage window.
-- **Use the service you want.** Official providers, self-hosted endpoints, and compatible gateways are welcome.
-
-## Features
-
-### Connect and check
-
-- **Provider library:** official presets and custom endpoints, multiple saved providers per agent, editable keys and model mappings.
-- **Quick provider setup:** key-based model discovery and agent-specific configuration, without a platform login.
-- **Connection checks:** inspect the model catalog, then optionally test text responses, streaming, tool calls, and tool-result continuation. Real-request checks support Claude / Codex API-key providers and require acknowledgement of possible charges.
-
-### Protect and reuse
-
-- **Configuration protection:** opt-in field-preserving Claude / Codex switching, change previews, local snapshots, and conflict-checked restore.
-- **Lite mode:** focus on connection settings without application-managed MCP, Skills, or prompt writes. Includes prompt protection and provider-only sync scope.
-- **Access profiles:** save and reapply provider, MCP, and Skill selections. Profiles reference your providers; they are not full configuration backups.
-- **Environment targets:** preview and deploy supported Claude / Codex API-key configurations to existing Windows / WSL-accessible directories.
-
-### Route and observe
-
-- **Primary and backup routes:** ordered failover queues and exact-model route chains through the local proxy. You choose the providers; nothing is added automatically.
-- **Usage analytics:** request logs, token and cache breakdowns, trends, provider/model summaries, and local cost estimates.
-- **Provider usage:** query configured provider usage interfaces; inspect multi-key quotas with explicit rules for combining independent balances.
-- **Desktop visibility:** a floating agent usage window and macOS widget integration.
-
-### Manage your agent workspace
-
-- **Sessions:** browse supported local agent conversations and resume work in the relevant client.
-- **MCP and Skills:** manage shared resources with per-agent enablement, Skills discovery, and supported import/export and backup workflows.
-- **Agent-specific tools:** OpenClaw workspace files, environment variables, tool permissions, and defaults; Hermes memory and user-profile editing.
-- **Everyday utilities:** CLI installation/update entry points, language and theme preferences, and in-app help.
-
-### Supported agents
-
-**Claude Code · Claude Desktop · Codex · Gemini CLI · Grok Build · OpenCode · OpenClaw · Hermes · Pi Agent · DeepSeek Harness · WorkBuddy**
-
-Each agent has its own adapter. Routing, configuration protection, authentication, MCP, Skills, and usage support vary by agent; the CLI installer does not install every agent's desktop application. See the [integration guide](docs/access-workbench.md) for scope and behavior.
-
-## Screenshots
-
-Real macOS application captures with private configuration labels redacted. Some controls still display Chinese when the interface is set to English. [Capture details and full image index](assets/screenshots/README.md).
-
-| **Providers in one place** | **Provider quick setup** |
-| :----------------------------------------------------------------: | :------------------------------------------------------------------: |
-|  |  |
-| Keep saved services and the active provider visible. | Discover models and review mappings before saving. |
-
-| **Reusable access profiles** | **Explicit backup routes** |
-| :----------------------------------------------------: | :---------------------------------------------------------: |
-|  |  |
-| Save a setup you can return to. | Choose the order in which providers are tried. |
-
-
-Configuration protection, MCP, Skills, and desktop usage
-
-| **Protect local configuration** | **Manage MCP resources** |
-| :---------------------------------------------------------------: | :----------------------------------------------: |
-|  |  |
-
-
-
-
-
-
-
-## Compared with CC Switch
-
-**CC Switch provides the foundation. HRouter Desktop changes how you work with it.** We retain the upstream provider, proxy, MCP, Skills, session, and usage foundations rather than presenting them as new inventions.
-
-| Focus | What this fork changes |
-| ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------- |
-| **Agent-first interface** | A redesigned workbench and top navigation, with dedicated Configuration, Profiles, Route policies, and Usage pages. |
-| **Deliberate configuration changes** | A protection workflow with previews, fingerprint checks, snapshots, guarded restores, Lite mode, and prompt protection. |
-| **Repeatable access setups** | Dedicated profiles for provider, MCP, and Skill selections, with a preview before application. |
-| **Model-aware routing** | Extensions to inherited routing: exact-model primary/backup chains, temporary manual preferences, and controlled multi-key quota aggregation. |
-| **Compatibility and continuity** | Protocol-aware connection checks, targeted proxy transport fixes, and Codex legacy-provider compatibility without rewriting conversation history. |
-| **Usage correctness** | Targeted fixes for Codex fork usage, Claude cache-TTL estimates, and OpenCode rollup/deduplication. |
-| **Desktop integration** | DeepSeek Harness / WorkBuddy integration work, and agent-scoped desktop usage tools. |
-| **A focused desktop** | v0.4.0 removes the account, payment, order, and cloud-billing modules from earlier **HRouter** versions—not from CC Switch. |
-
-This is a summary of changes maintained in this fork, not a claim that current upstream lacks every listed capability. The projects evolve independently. For implementation details and validation limits, see the [workbench guide](docs/access-workbench.md), [fix checklist](docs/issue-remediation.md), and [upstream contribution records](docs/upstream-contributions.md).
-
-## Get started
-
-1. **Install and choose an agent.** Open the workbench and select the coding tool you want to configure.
-2. **Connect a service.** Add a provider preset or a custom endpoint and key, and review the discovered models.
-3. **Review, save, and enable.** Check the model mapping and configuration, then enable the provider. Refresh or restart the target client if required.
-
-Still need a key? [HRouter](https://hrouter.net/home) is the recommended prepaid relay: one key for Claude, GPT, Gemini, and Grok. [Add it in Desktop](#need-model-api-access).
-
-That's the basic setup. Add protection, profiles, or backup routes when you need them; opt into a billable connection test only after checking the catalog.
-
-### Moving from CC Switch?
+Official providers, a self-hosted endpoint, or another OpenAI-compatible LLM gateway all use the same workbench. [HRouter](https://hrouter.net/home) is the companion relay for prepaid model access. One API key covers Claude, GPT, Gemini, and Grok for your coding agents.
Use **Agents → Connect → Import from CC Switch** to preview your actual `cc-switch.db` file read-only and select providers to import. The importer does not change the source database, overwrite existing entries, or activate imported providers.
-This imports providers—not a whole account. Managed OAuth sessions, prompts, Skills, usage scripts, and OMO configuration are excluded. Existing HRouter users do not need to delete their keys or configuration directories to upgrade.
-
-## Good to know
-
-- **Local-first, not offline-only.** Provider calls, model discovery, usage queries, Skills discovery, pricing, and updates contact the relevant services. Treat local keys, configuration files, and snapshots as sensitive.
-- **Estimates, not invoices.** Usage depends on available local records and configured prices. A passing connection check is not a guarantee of model identity, quality, or long-task reliability.
-- **Protection has a scope.** It is opt-in for Claude / Codex. Restore checks preserve later edits rather than forcing an overwrite; provider-only sync and profiles are not full backups.
-- **Signing types differ.** Tauri updater signatures are not Windows Authenticode signatures. macOS publication requires Developer ID signing and notarization.
-
-[Privacy](PRIVACY.md) · [Security](SECURITY.md) · [Support](SUPPORT.md) · [Signing](CODE_SIGNING_POLICY.md)
-
-## Build and contribute
-
-Built with **Tauri 2 · Rust · React · TypeScript**. Use the project lockfile, `pnpm@10.12.3`, and your platform's Tauri build prerequisites.
+Built with **Tauri 2 · Rust · React · TypeScript**. Use the project lockfile and `pnpm@10.12.3`.
```bash
git clone https://github.com/honestTai/HRouter-Desktop.git
@@ -192,11 +41,30 @@ pnpm install --frozen-lockfile
pnpm dev
```
-`pnpm build` builds for the host platform. See [Contributing](CONTRIBUTING.md) for checks and contribution guidelines, and [macOS signing](docs/macos-signing.md) for release setup.
+`pnpm build` builds for the host platform.
+
+## Core features
-Found a bug or have a workflow to improve? [Open an issue](https://github.com/honestTai/HRouter-Desktop/issues). If HRouter Desktop is useful to you, give the repository a star.
+| Area | What it does |
+| :--- | :--- |
+| Providers | Official presets and custom endpoints, multiple saved providers per agent, editable keys and model mappings |
+| Configuration protection | Opt-in field-preserving Claude / Codex switching, change previews, local snapshots, and conflict-checked restore |
+| Routes | Primary and backup providers, exact-model route chains, and automatic failover through supported local routing. You choose the providers; nothing is added automatically |
+| Usage | Request logs, token and cache breakdowns, trends, provider/model summaries, and local cost estimates |
+| Profiles and workspace | Save and reapply provider, MCP, and Skill selections. Browse supported local sessions and manage MCP and Skills |
-## Credits and license
+**Claude Code · Claude Desktop · Codex · Gemini CLI · Grok Build · OpenCode · OpenClaw · Hermes · Pi Agent · DeepSeek Harness · WorkBuddy**
+
+Each agent has its own adapter. Routing, configuration protection, authentication, MCP, Skills, and usage support vary by agent. See the [integration guide](docs/access-workbench.md).
+
+## Docs
+
+- **[User manual](docs/user-manual/en/README.md)** · **[Access workbench](docs/access-workbench.md)** · **[Usage widgets](docs/usage-widgets.md)** · **[Claude Desktop sessions](docs/claude-desktop-sessions.md)**
+- **[Changelog](CHANGELOG.md)** · **[Contributing](CONTRIBUTING.md)** · **[macOS signing](docs/macos-signing.md)** · **[Screenshots](assets/screenshots/README.md)**
+- **[Privacy](PRIVACY.md)** · **[Security](SECURITY.md)** · **[Support](SUPPORT.md)** · **[Code-signing policy](CODE_SIGNING_POLICY.md)**
+- **[Upstream contributions](docs/upstream-contributions.md)** · **[Issue remediation](docs/issue-remediation.md)**
+
+## License
Based on **[CC Switch](https://github.com/farion1231/cc-switch)** by **Jason Young** and its contributors. HRouter Desktop is independently maintained by [honestTai](https://github.com/honestTai) and HRouter Contributors; it is not an official CC Switch release or endorsed by its maintainers.
@@ -204,16 +72,16 @@ The original copyright and MIT license are preserved. Some internal `cc-switch`
[MIT License](LICENSE) · [Attribution](NOTICE.md)
----
+We retain the upstream provider, proxy, MCP, Skills, session, and usage foundations rather than presenting them as new inventions. Records: [upstream contributions](docs/upstream-contributions.md).
-
+## Star history
-## Project activity
+
-Star / Fork totals and retained-event history, scheduled to refresh daily.
+---
-[](https://github.com/honestTai/honestTai/blob/main/data/README.md)
+
-[Observed daily totals](https://raw.githubusercontent.com/honestTai/honestTai/main/assets/metrics/HRouter-Desktop-daily.svg) · [Methodology](https://github.com/honestTai/honestTai/blob/main/data/METHODOLOGY.md) · [All public projects](https://github.com/honestTai)
+Made by **[honestTai](https://github.com/honestTai)** · [HRouter](https://hrouter.net/home) · [More projects](https://github.com/honestTai)
-Historical curves reconstruct currently retained stars and visible forks, not historical net totals. Separate daily observations start on 2026-10-06; no fabricated backfill.
+
-[每日实测趋势](https://raw.githubusercontent.com/honestTai/honestTai/main/assets/metrics/HRouter-Desktop-daily.svg) · [数据口径](https://github.com/honestTai/honestTai/blob/main/data/METHODOLOGY.zh-CN.md) · [全部公开项目](https://github.com/honestTai)
+Made by **[honestTai](https://github.com/honestTai)** · [HRouter](https://hrouter.net/home) · [More projects](https://github.com/honestTai)
-历史曲线仅重建当前仍保留的 Star 与可见 Fork,并非过去每日净总量。每日实测总量自 2026-10-06 开始,不伪造回填。
+
diff --git a/docs/assets/hero-light.svg b/docs/assets/hero-light.svg
new file mode 100644
index 00000000..a49219cb
--- /dev/null
+++ b/docs/assets/hero-light.svg
@@ -0,0 +1,16 @@
+
\ No newline at end of file
diff --git a/docs/assets/hero.svg b/docs/assets/hero.svg
new file mode 100644
index 00000000..7ae601b9
--- /dev/null
+++ b/docs/assets/hero.svg
@@ -0,0 +1,16 @@
+
\ No newline at end of file
diff --git a/docs/assets/hero.zh-CN-light.svg b/docs/assets/hero.zh-CN-light.svg
new file mode 100644
index 00000000..2be21b73
--- /dev/null
+++ b/docs/assets/hero.zh-CN-light.svg
@@ -0,0 +1,16 @@
+
\ No newline at end of file
diff --git a/docs/assets/hero.zh-CN.svg b/docs/assets/hero.zh-CN.svg
new file mode 100644
index 00000000..bb0c19e3
--- /dev/null
+++ b/docs/assets/hero.zh-CN.svg
@@ -0,0 +1,16 @@
+
\ No newline at end of file