[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-1546":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":16,"starSnapshotCount":16,"syncStatus":30,"lastSyncTime":31,"discoverSource":32},1546,"cc-desktop-switch","lonr-6\u002Fcc-desktop-switch","lonr-6","Lightweight desktop tool for configuring DeepSeek, Kimi, Zhipu GLM and Bailian providers in Claude Desktop.","https:\u002F\u002Fgithub.com\u002Flonr-6\u002Fcc-desktop-switch\u002Freleases\u002Flatest",null,"Python",739,58,4,5,0,14,28,264,42,93.31,"MIT License",false,"main",true,[],"2026-06-12 04:00:10","# CC Desktop Switch\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"README.md\">English\u003C\u002Fa> |\n  \u003Ca href=\"README.zh-CN.md\">简体中文\u003C\u002Fa> |\n  \u003Ca href=\"README.ja.md\">日本語\u003C\u002Fa> |\n  \u003Ca href=\"docs\u002FCHANGELOG.md\">Changelog\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Flonr-6\u002Fcc-desktop-switch\u002Fstargazers\">\u003Cimg alt=\"GitHub stars\" src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002Flonr-6\u002Fcc-desktop-switch?style=social\">\u003C\u002Fa>\n  \u003Ca href=\"LICENSE.txt\">\u003Cimg alt=\"License\" src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002Flonr-6\u002Fcc-desktop-switch\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fwww.python.org\u002F\">\u003Cimg alt=\"Python\" src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPython-3.11%2B-blue?logo=python\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Flonr-6\u002Fcc-desktop-switch\u002Freleases\">\u003Cimg alt=\"Downloads\" src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fdownloads\u002Flonr-6\u002Fcc-desktop-switch\u002Ftotal?label=downloads\">\u003C\u002Fa>\n\u003C\u002Fp>\n\nCC Desktop Switch is a lightweight desktop app for the official Claude Desktop client. It lets you manage third-party Anthropic-compatible API providers such as DeepSeek, Kimi, Zhipu GLM, Alibaba Cloud Bailian, and Xiaomi MiMo, then apply the right Claude Desktop 3P configuration with one click.\n\nThis project is focused on Claude Desktop on Windows and macOS. It is different from CLI-oriented tools such as `farion1231\u002Fcc-switch`: the goal here is to give regular desktop users a simple UI for provider setup, model mapping, health checks, and local gateway compatibility.\n\nSince v1.0.18, Claude Desktop is configured to call the local CC Desktop Switch gateway at `127.0.0.1`. Keep CC Desktop Switch running in the background when using third-party providers. Closing the window keeps the app available in the tray on Windows or hidden in the Dock app lifecycle on macOS.\n\n## Preview\n\n\u003Ctable>\n  \u003Ctr>\n    \u003Ctd width=\"50%\">\n      \u003Cimg src=\"docs\u002Fpromo\u002Fscreenshots\u002Freadme-provider-list.png\" alt=\"Provider management page\">\n    \u003C\u002Ftd>\n    \u003Ctd width=\"50%\">\n      \u003Cimg src=\"docs\u002Fpromo\u002Fscreenshots\u002Freadme-deepseek-config.png\" alt=\"Add DeepSeek provider\">\n    \u003C\u002Ftd>\n  \u003C\u002Ftr>\n  \u003Ctr>\n    \u003Ctd align=\"center\">Provider management and quick switching\u003C\u002Ftd>\n    \u003Ctd align=\"center\">Preset-based setup with recommended API URLs and models\u003C\u002Ftd>\n  \u003C\u002Ftr>\n  \u003Ctr>\n    \u003Ctd width=\"50%\">\n      \u003Cimg src=\"docs\u002Fpromo\u002Fscreenshots\u002Freadme-deepseek-options.png\" alt=\"DeepSeek options\">\n    \u003C\u002Ftd>\n    \u003Ctd width=\"50%\">\n      \u003Cimg src=\"docs\u002Fpromo\u002Fscreenshots\u002Freadme-qwen-1m-menu.png\" alt=\"Qwen 1M model menu\">\n    \u003C\u002Ftd>\n  \u003C\u002Ftr>\n  \u003Ctr>\n    \u003Ctd align=\"center\">DeepSeek 1M context and Max reasoning options\u003C\u002Ftd>\n    \u003Ctd align=\"center\">Qwen 1M context exposed in Claude Desktop\u003C\u002Ftd>\n  \u003C\u002Ftr>\n\u003C\u002Ftable>\n\n## What It Does\n\n- Manages DeepSeek, Kimi, Zhipu GLM, Alibaba Cloud Bailian, Xiaomi MiMo, and custom third-party providers.\n- Applies Claude Desktop third-party inference settings on Windows and macOS.\n- Uses a local gateway to keep model mapping, protocol compatibility, extra headers, and upstream keys under local control.\n- Shows only explicitly mapped Claude-safe model routes in Claude Desktop.\n- Rejects unmapped Claude model routes instead of silently falling back to an internal default.\n- Imports Anthropic-compatible CC-Switch configurations while leaving OpenAI-format entries opt-in.\n- Provides provider connectivity checks, model availability checks, SSE streaming, and custom upstream HTTP proxy support.\n- Prevents duplicate Windows app instances: launching the shortcut again brings the existing window forward.\n\n## Download\n\nGet the latest release from:\n\n```text\nhttps:\u002F\u002Fgithub.com\u002Flonr-6\u002Fcc-desktop-switch\u002Freleases\u002Flatest\n```\n\nRecommended downloads:\n\n- `CC-Desktop-Switch-v\u003Cversion>-Windows-Setup.exe` for the Windows installer.\n- `CC-Desktop-Switch-v\u003Cversion>-Windows-Portable.zip` for the Windows portable package.\n- `CC-Desktop-Switch-v\u003Cversion>-macOS-arm64.pkg` for the macOS installer.\n- `CC-Desktop-Switch-v\u003Cversion>-macOS-arm64.dmg` for the macOS drag-and-drop package.\n\nWindows builds are not Authenticode-signed yet, so Windows may show an unknown publisher warning. Release assets include `.sha256`, `.sig`, and the public key for integrity checks.\n\n## Quick Start\n\n1. Download and open CC Desktop Switch.\n2. Pick a provider preset or add a custom provider.\n3. Enter your own API key.\n4. Adjust model mappings if needed.\n5. Click `Apply to Claude Desktop`.\n6. Fully restart Claude Desktop.\n\nIf the desktop window cannot open, use the fallback local UI:\n\n```text\nhttp:\u002F\u002F127.0.0.1:18081\n```\n\nDefault ports:\n\n- Admin UI: `18081`\n- Local gateway: `18080`\n\n## Model Mapping\n\nClaude Desktop expects Claude-family model names. Many third-party providers use model IDs such as `deepseek-v4-pro`, `kimi-k2.6`, `glm-5.1`, or `qwen3.6-plus`.\n\nCC Desktop Switch keeps those real upstream model IDs inside the local gateway and exposes Claude-safe route names to Claude Desktop. Since v1.0.19, only explicitly mapped Claude slots appear in the Claude Desktop model menu. `Default` remains an internal fallback and is not shown as a menu item.\n\n## Development\n\n```powershell\ngit clone https:\u002F\u002Fgithub.com\u002Flonr-6\u002Fcc-desktop-switch.git\ncd cc-desktop-switch\npip install -r requirements.txt\npython main.py\n```\n\nBrowser fallback for development:\n\n```powershell\npython main.py --browser\n```\n\nVerification:\n\n```powershell\npython -m compileall -q backend main.py tests\npython -m unittest discover -s tests -v\nnode --check frontend\u002Fjs\u002Fapi.js\nnode --check frontend\u002Fjs\u002Fapp.js\nnode --check frontend\u002Fjs\u002Fi18n.js\n```\n\n## Troubleshooting\n\n### Claude Desktop still uses the old provider\n\nClaude Desktop reads third-party inference configuration during startup. After applying a provider, fully quit Claude Desktop and open it again. Closing only the chat window is often not enough.\n\n### Claude Desktop cannot connect\n\nThird-party providers use the local gateway by default. Make sure CC Desktop Switch is still running in the background, and check whether the local ports are occupied:\n\n```powershell\nnetstat -ano | findstr :18081\nnetstat -ano | findstr :18080\n```\n\n### Claude Code attribution header\n\n`CLAUDE_CODE_ATTRIBUTION_HEADER=0` is only a Claude Code prompt-cache compatibility option. It is not a Claude Desktop 3P setting and does not replace the local gateway.\n\n## Star History\n\n\u003Ca href=\"https:\u002F\u002Fwww.star-history.com\u002F#lonr-6\u002Fcc-desktop-switch&Date\">\n  \u003Cimg alt=\"Star History Chart\" src=\"https:\u002F\u002Fapi.star-history.com\u002Fsvg?repos=lonr-6\u002Fcc-desktop-switch&type=Date\">\n\u003C\u002Fa>\n\n## Tech Stack\n\n- Backend: Python, FastAPI, httpx, uvicorn\n- Frontend: HTML, CSS, vanilla JavaScript, Bootstrap 5.3 CDN\n- Storage: `~\u002F.cc-desktop-switch\u002Fconfig.json`\n- Packaging: PyInstaller, NSIS, macOS pkg\u002Fdmg scripts\n\n## Disclaimer\n\nThis project is not affiliated with Anthropic, Claude, CC-Switch, or any third-party model provider. Your upstream API keys are stored locally on your machine.\n","CC Desktop Switch 是一个轻量级的桌面工具，用于在Claude Desktop中配置DeepSeek、Kimi、Zhipu GLM和Bailian等第三方API提供者。其核心功能包括管理多个第三方API服务提供商、一键应用合适的Claude Desktop第三方配置、通过本地网关保持模型映射及协议兼容性等。该工具专为Windows和macOS平台设计，旨在为普通用户提供一个简洁易用的界面来完成提供商设置、模型映射、健康检查等功能，而无需依赖命令行操作。适用于需要在Claude Desktop上轻松切换不同AI模型或服务的用户。",2,"2026-06-11 02:44:36","CREATED_QUERY"]