cc-haha
本地优先的编程 Agent 桌面工作台,整合多助手协作、Git Worktree、代码差异与技能管理,支持远程访问。
中文简介经编辑校订 · agent / ai / ai-agent / anthropic / claude / claude-code
README / 项目原文
cc-haha
简体中文 · English
cc-haha 是一个桌面端 Claude Code 工作台:多会话与全局搜索、分支 / Worktree 启动、Diff 审阅、内置浏览器预览、图形化权限审批、模型自选(Claude / ChatGPT / Grok / 预设 / 本地端点)、图片生成、MCP 与 SubAgent 可视化管理、Agent Teams 协作工作台、动态 Workflow 编排、模型请求追踪、Computer Use、技能市场、多主题、桌面宠物、H5 远程访问、IM 接入和定时任务,集中在一个 macOS / Windows / Linux APP 里。在 macOS 上,Computer Use 能操作其他应用,同时不占用你的真实鼠标和键盘。
白金赞助商 · Modelflare
感谢 Modelflare 赞助本项目!Modelflare:满血稳定不掺水,低成本享受全球 SOTA 模型。站点由美国 LLC 主体 Havenbyte LLC 运营,支持 GPT、Claude、Gemini、Grok 等主流模型和常用兼容协议,还支持 40 多种图片和视频模型。
缓存补偿是一大亮点:部分 OpenAI 价格优先、稳定和高级分组提供每日 65%、75%、85% 的缓存命中率保障,符合条件的请求没达到目标的,平台补偿差额,结算后可在用量看板查看。
特惠活动:单笔充值 US$20 即可解锁 0.015 倍价格倍率的 GPT 特惠分组,单笔充值 US$50 即可解锁 0.03 倍价格倍率的 Claude 特惠分组。通过 专属链接注册即可参与。
桌面端预览 · 安装桌面端 · 桌面端亮点 · 更多文档 · 赞助与合作 · 用户交流群
桌面端预览
由 Claude 制作的 62 秒宣传片,无旁白,点击在浏览器中播放。
从 0 开始:下载安装 → 连接模型 → 跑通第一条会话 → 设置指南 → 实战案例。想体验不抢鼠标的跨应用操作,接着看 Computer Use 指南。
赞助与合作
本项目由个人利用业余时间维护,欢迎企业或个人赞助支持持续开发,也可洽谈定制、集成或商务合作。
| 赞助商 | 介绍 |
|---|---|
|
感谢 AruHub 对本项目的赞助!AruHub 专注为开发者提供长期稳定的主力 API 上游服务。面向 Codex / Claude Code 等高频 AI Coding 场景,提供 GPT 企业分组官方接口、Claude 稳定企业分组,适合长时间持续调用;同时覆盖 GPT、Claude 等主流模型。Image 2 / 2.5 全天稳定供应,低至 0.04 元/张。按量付费,支持企业大用量、开发票及退款。通过 专属链接注册即送 1 美元全模型通用额度,不限制模型使用。 |
|
最全 API 中转站导航 |
朋友做的一个 AI API 中转站导航——最全 API 中转站导航,汇总各家站点,方便按模型和价格查找、对比。如果你还不知道怎么选中转站,可以先来这里看看。 |
📧 联系邮箱:relakkes@gmail.com
安装桌面端
- 前往 Releases 下载 macOS / Windows / Linux 桌面端安装包。
- 首次启动后,在桌面端设置里配置模型提供商、API Key 和默认模型。
- 正式 macOS Release 需要经过签名和公证;如果安装的是 draft/unsigned 临时包,首次打开可能仍需手动放行。Windows 未签名安装包可能出现 SmartScreen 提示,点「更多信息」→「仍要运行」即可。详见 桌面端安装指南。
发布可信度与隐私:Code signing policy · 隐私与联网说明
从源码启动 CLI
适合想调试底层 CLI、服务端或自行开发的用户:
bun install
cp .env.example .env
./bin/claude-haha
用户交流群
使用过程中有问题、想反馈 Bug,或者想看看别人怎么用,欢迎扫码加入 cc-haha 企业微信用户群。也可以直接来 Issues 提问。企业定制 / 私有化部署 / Agent 定制需求,请联系作者 NanmiCoder。
☕ 请作者喝杯咖啡
如果这个项目对您有帮助,欢迎打赏支持,您的每一份支持都是我持续更新的动力 ❤️
![]() 微信赞赏 |
![]() 支付宝 |
Buy Me a Coffee |
桌面端亮点
- 多会话工作台:标签页、项目切换、终端入口和会话历史集中管理,侧边栏宽度可拖拽。
- 全局搜索:按 Cmd+K 跨所有会话全文搜索,一键跳到命中位置。
- 分支 / Worktree 启动:新会话可以选择仓库分支,并决定用当前工作树还是隔离 Worktree。
- 改动逐个文件审阅:右侧工作区列出本轮改动,点开就是带语法高亮的 Diff,整轮可撤销。
- 内置浏览器预览:Agent 刚改完的页面直接在应用内渲染,登录态和 Cookie 真实可用。
- 五档权限模式:从「询问权限」到「跳过权限」,危险命令、工具调用和 AI 反问都在桌面端审批。
- 模型自选:Claude / ChatGPT / Grok 官方账号可直接登录;DeepSeek、Kimi、智谱 GLM 等第三方 API 有现成预设;LM Studio、Ollama 的本地模型也接得上。
- 图片生成:聊天中直接生成和编辑图片——ChatGPT / Grok 授权登录即可使用,也支持接入任意 OpenAI 兼容的 Images API。
- MCP 图形化管理:界面化增删改 MCP Server,支持 STDIO / Streamable HTTP / SSE 三种传输方式与项目私有、共享、全局三种作用域。
- 六套配色主题:纯白、纸墨、经典暖色、青瓷、墨夜、墨夜蓝,可跟随系统深浅色自动切换。
- 技能市场:发现、预览、安装 ClawHub / SkillHub 的第三方技能,来源和安全状态摆在明处。
- 会话活动面板:集中查看任务进度、后台任务、SubAgent 与来源。
- 可视化 SubAgent 管理:图形界面创建和调校子代理,选择模型、工具与权限模式。
- Agent Teams 协作工作台:桌面端可视化多 Agent 协作团队——成员、任务、通信流和依赖泳道一目了然。
- 动态 Workflow 编排:模型当场编写并运行编排脚本,并发或流水线调度多个子代理,支持阶段视图、中断与断点续跑。
- 模型请求追踪:本地记录每轮模型请求的状态与耗时,可搜索筛选,快速定位卡死或失败调用。
- Computer Use:让 Agent 在授权后截图、点击、输入并控制桌面应用;macOS 原生运行时不占用你的真实鼠标和键盘。
- 桌面宠物:搭搭、弧弧、补补、回回随任务状态换动作,也能自己做一只(默认关闭)。
- H5 远程访问:扫码用手机浏览器接入当前会话,锁屏切后台都不打断正在跑的任务。
- IM 接入:通过 Telegram / 飞书 / 微信 / 钉钉 / WhatsApp / 企业微信 / QQ / Slack 远程对话、切换项目和审批权限。
- 定时任务与用量统计:创建计划任务在独立会话执行,并查看本机 Token 使用趋势。
更多文档
完整文档站:https://cchaha.ai
| 分区 | 文档 |
|---|---|
| 开始使用 | 这是什么 · 下载与安装 · 连接模型服务 · 跑通第一条会话 · 故障排查 |
| 桌面端功能 | 功能总览 · Computer Use · 桌面宠物 · 手机 H5 与 IM 接力 |
| IM 接入 | 总览与配对流程 · 飞书 · Telegram · 微信 · 钉钉 · WhatsApp · 企业微信 · QQ · Slack |
| 命令行 | 安装与启动 · 命令参考 · 环境变量 |
| 深入原理 | 桌面端架构 · 多 Agent 系统 · Skills 系统 · 记忆系统 · Computer Use 架构 · 本地 Server 与 API · Channel 系统 · 项目结构 · 参与贡献与质量门禁 |
技术栈
| 类别 | 技术 |
|---|---|
| 语言 | TypeScript |
| 桌面 APP | Electron |
| 桌面 UI | React + Vite |
| 本地运行时 | Bun |
| 终端 UI | React + Ink |
| CLI 解析 | Commander.js |
| API | Anthropic SDK |
| 协议 | MCP, LSP |
致谢
感谢以下开源项目和社区实践为本项目提供参考与启发:
- React:前端工程与组件化 UI 生态。
- Electron:跨端桌面应用能力与工程实践。
- cc-switch:模型供应商配置能力参考。
- LINUX DO:新的理想型开发者社区。
- AtomGit:为本项目提供国内代码托管。
⭐ Star History
如果这个项目对你有帮助,欢迎点一个 ⭐ Star,让更多人发现 cc-haha。
许可说明
当前采用 cc-haha Community Source License 1.0。允许个人非商业使用及企业内部自用;接单、对外商业盈利、收费修改或二次开发、商业分发及付费服务须事先取得书面商业授权;二次分发须显著保留来源署名。历史 MIT 授权与第三方许可继续有效。详见许可说明。当前许可属于源码可用许可,不是 OSI 认可的开源许可证。
cc-haha
简体中文 · English
cc-haha is a desktop Claude Code workspace for macOS, Windows, and Linux: multi-session workspaces, global search, branch / Worktree launch, diff review, built-in browser preview, GUI permission approval, any model — Claude, ChatGPT, Grok, presets, or local endpoints — image generation, visual MCP & SubAgent managers, an Agent Teams workbench, dynamic Workflow orchestration, model trace, Computer Use, skill marketplace, colour themes, desktop pets, H5 remote access, IM integration, and scheduled tasks, all in one app. On macOS, Computer Use can operate other apps without taking over your physical mouse or keyboard.
Platinum Sponsor · Modelflare
Thanks to Modelflare for sponsoring this project! Modelflare: Full strength, stable, nothing watered down. Global SOTA models at a lower cost. Operated by US-based Havenbyte LLC, Modelflare supports GPT, Claude, Gemini, Grok, and other leading models through common compatible protocols, plus 40+ image and video models.
Cache compensation is a highlight: selected OpenAI groups (price-first, stable, and premium) guarantee daily cache hit rates of 65%, 75%, or 85%, and if eligible requests fall short, Modelflare refunds the difference, visible on the usage dashboard after settlement.
Special offers: a single top-up of US$20 unlocks the GPT discount group at a 0.015x price multiplier, and a single top-up of US$50 unlocks the Claude discount group at a 0.03x multiplier. Register via this exclusive link to get started.
Desktop Preview · Install · Highlights · More Docs · Sponsorship · User Group
Desktop Preview
A 62-second film made with Claude, with no narration. Opens the video in your browser.
Start here: install the app → connect a model → run your first session → explore settings → try real workflows. For hands-free cross-app work on macOS, follow the Computer Use guide.
Sponsorship & Partnership
This project is maintained in the author's spare time. Corporate or individual sponsorships are welcome to support ongoing development. Custom features, integrations, and business partnerships are also open for discussion.
| Sponsor | Description |
|---|---|
|
Thanks to AruHub for sponsoring this project! AruHub focuses on providing developers with a stable, long-term primary API upstream service. Built for high-frequency AI coding workflows such as Codex and Claude Code, it offers official GPT API access through enterprise groups and stable Claude enterprise groups for sustained use, with support for leading models including GPT and Claude. Image 2 / 2.5 is available around the clock, starting at CNY 0.04 per image. Pay-as-you-go billing supports high-volume enterprise usage, invoicing, and refunds. Register through the exclusive link to receive US$1 in credit usable across all models, with no model restrictions. |
|
最全 API Zuiquan API Directory |
Built by a friend, Zuiquan API Directory brings together AI API relay providers so you can find and compare options by model and price. If you're unsure which provider to choose, it's a useful place to start. |
📧 Contact: relakkes@gmail.com
Install the Desktop App
- Download the macOS / Windows / Linux desktop installer from Releases.
- On first launch, configure your model provider, API key, and default model in Settings.
- Public macOS releases require signing and notarization. Draft or unsigned temporary builds may still need one-time manual approval. Unsigned Windows installers may show SmartScreen; click "More info" -> "Run anyway". See the desktop installation guide.
Release trust and privacy: Code signing policy · Privacy and network access
Run the CLI from Source
For users who want to debug the underlying CLI, server, or local development flow:
bun install
cp .env.example .env
./bin/claude-haha
See environment variables and CLI setup for more configuration options.
User Group
Scan the QR code below to join the cc-haha user group on WeCom (WeChat Work) — the conversation there is mostly in Chinese. For questions and bug reports in English, Issues is the better place. For enterprise deployment, customization, or Agent development needs, contact the author NanmiCoder.
☕ Buy Me a Coffee
If this project helps you, consider buying me a coffee — every bit of support keeps this project going ❤️
![]() WeChat Pay |
![]() Alipay |
Buy Me a Coffee |
Desktop Highlights
- Multi-session workspace: tabs, project switching, terminal entry, and session history in one place, with a resizable sidebar.
- Global search: press Cmd+K to search across every session and jump to the match.
- Branch / Worktree launch: choose a repository branch and decide whether to use the current working tree or an isolated Worktree.
- Review edits file by file: the workspace lists this turn's changes; open any file for a syntax-highlighted diff, or undo the whole turn.
- Built-in browser preview: the page your agent just edited renders right inside the app, cookies and login state included.
- Five permission modes: from "ask every time" to "skip permissions" — risky commands, tool calls, and follow-up questions are all approved in the GUI.
- Bring your own model: sign in to Claude, ChatGPT, or Grok; use presets for DeepSeek, Kimi, Zhipu GLM and others; or point it at LM Studio and Ollama running locally.
- Image generation: generate and edit images right in the chat — sign in with ChatGPT or Grok for instant use, or plug in any OpenAI-compatible Images API.
- Visual MCP manager: add and edit MCP servers in a GUI — STDIO / Streamable HTTP / SSE, with project, shared, or global scope.
- Six colour themes: white, paper, warm classic, celadon, ink night, and ink blue — optionally following your system's light/dark setting.
- Skill marketplace: discover, preview, and install third-party skills from ClawHub / SkillHub, with source and safety status shown up front.
- Session activity panel: track task progress, background tasks, SubAgents, and sources in one side panel.
- Visual SubAgent manager: create and tune SubAgents in a GUI — model, tools, and permission mode.
- Agent Teams workbench: visualize multi-agent collaboration in the GUI — members, tasks, a communication feed, and a dependency-lane canvas.
- Dynamic Workflow orchestration: the model writes and runs orchestration scripts on the fly, driving subagents concurrently or in pipelines, with phase views, interrupts, and resume.
- Model trace: every model request is logged locally with status and timing — search and filter to diagnose stuck or failed calls.
- Computer Use: let the agent take screenshots, click, type, and control desktop apps after authorization; the native macOS runtime does not take over your physical mouse or keyboard.
- Desktop pets: Dada, Huhu, Bubu, and Huihui change what they do with the task at hand — or raise one of your own (off by default).
- H5 remote access: scan a QR code to continue the session in your phone browser; locking the screen won't kill a running task.
- IM integration: chat, switch projects, and approve actions through Telegram / Feishu / WeChat / DingTalk / WhatsApp / WeCom / QQ / Slack.
- Scheduled tasks and usage stats: run planned tasks in their own sessions and track local token usage trends.
More Documentation
Full documentation site: https://cchaha.ai
| Section | Documents |
|---|---|
| Getting started | What this is · Download and install · Connect a model provider · Your first session · Troubleshooting |
| Desktop features | Feature overview · Computer Use · Desktop pets · Phone H5 and IM relay |
| IM integrations | Overview and pairing · Feishu · Telegram · WeChat · DingTalk · WhatsApp · WeCom · QQ · Slack |
| CLI | Install and run · Command reference · Environment variables |
| Internals | Desktop architecture · Multi-agent system · Skills system · Memory system · Computer Use architecture · Local server and API · Channel system · Project structure · Contributing and quality gates |
Tech Stack
| Category | Technology |
|---|---|
| Language | TypeScript |
| Desktop app | Electron |
| Desktop UI | React + Vite |
| Local runtime | Bun |
| Terminal UI | React + Ink |
| CLI parsing | Commander.js |
| API | Anthropic SDK |
| Protocols | MCP, LSP |
Acknowledgements
Thanks to the following open-source projects and community practices for reference and inspiration:
- React: frontend engineering and component-based UI ecosystem.
- Electron: cross-platform desktop app capabilities and engineering practices.
- cc-switch: reference for model provider configuration.
- LINUX DO: a new ideal developer community.
- AtomGit: code hosting for this project in China.
⭐ Star History
If this project helps you, please support it with a ⭐ Star so more people can discover cc-haha.
License
Current terms are the cc-haha Community Source License 1.0. Noncommercial personal use and internal business operations are allowed; paid client work, commercial deliverables, paid customization or secondary development, commercial distribution, and paid services require prior written commercial permission; redistributions require visible source attribution. Existing MIT grants and third-party licenses remain valid. See the licensing guide. This is source-available, not an OSI-approved open-source license.

