{"id":13405801,"url":"https://github.com/lencx/ChatGPT","last_synced_at":"2025-03-14T10:31:45.670Z","repository":{"id":64419635,"uuid":"575340621","full_name":"lencx/ChatGPT","owner":"lencx","description":"🔮 ChatGPT Desktop Application (Mac, Windows and Linux)","archived":false,"fork":false,"pushed_at":"2024-04-11T04:55:01.000Z","size":31627,"stargazers_count":46764,"open_issues_count":607,"forks_count":5379,"subscribers_count":392,"default_branch":"main","last_synced_at":"2024-04-14T14:55:18.053Z","etag":null,"topics":["ai","app","application","chatgpt","desktop-app","gpt","gpt-3","linux","macos","notes-app","openai","rust","tauri","webview","windows"],"latest_commit_sha":null,"homepage":"https://nofwl.com","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lencx.png","metadata":{"files":{"readme":"README-ZH_CN.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-12-07T09:43:02.000Z","updated_at":"2024-04-14T10:56:56.000Z","dependencies_parsed_at":"2023-09-23T05:13:00.351Z","dependency_job_id":"5be6f3aa-55fc-45b6-9912-99308b5e149e","html_url":"https://github.com/lencx/ChatGPT","commit_stats":{"total_commits":486,"total_committers":32,"mean_commits":15.1875,"dds":"0.13168724279835387","last_synced_commit":"fe4f231d48486937c6f7911b7f70f6f469b6ba1d"},"previous_names":[],"tags_count":47,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lencx%2FChatGPT","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lencx%2FChatGPT/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lencx%2FChatGPT/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lencx%2FChatGPT/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lencx","download_url":"https://codeload.github.com/lencx/ChatGPT/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243562071,"owners_count":20311212,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","app","application","chatgpt","desktop-app","gpt","gpt-3","linux","macos","notes-app","openai","rust","tauri","webview","windows"],"created_at":"2024-07-30T19:02:12.168Z","updated_at":"2025-03-14T10:31:45.662Z","avatar_url":"https://github.com/lencx.png","language":"Rust","funding_links":["https://www.buymeacoffee.com/lencx"],"categories":["Rust","Other Prompting Resources","GitHub-ChatGPT","Applications","Uncategorized","免责声明","语言资源库","HarmonyOS","精选开源项目合集","Learning","Apps","Official Resources","A01_文本生成_文本对话","Bots and tools","Channel Resources","Desktop Apps","💻 Desktop","Desktop Applications","Frameworks","Outros recursos de solicitação","Machine Learning","ChatGPT 开发辅助客户端","UIs","Repos","chatgpt","Generative KI","Thanks to all the contributors!","Desktop apps","人工智能","ai","App","ChatGPT 工具","使用途径","ChatGPT Apps \u0026 Clients","开源项目"],"sub_categories":["Using ChatGPT Desktop App","Standalone App","Uncategorized","使用 ChatGPT 桌面应用","rust","Windows Manager","GPT镜像平替","Access ChatGPT from other platforms","大语言对话模型及数据","GitHub Projects","Emacs","JavaScript","提示语（魔法）","Usando o aplicativo de desktop ChatGPT","Github 热门项目（10k+）","Desktop applications","ChatGPT clients","GPT 相关","客户端","💻 第三方开发者开发的 ChatGPT 客户端","Open Source"],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg width=\"180\" src=\"./public/logo.png\" alt=\"ChatGPT\"\u003e\n  \u003ch1 align=\"center\"\u003eChatGPT\u003c/h1\u003e\n  \u003cp align=\"center\"\u003eChatGPT 桌面应用（Mac, Windows and Linux）\u003c/p\u003e\n\u003c/p\u003e\n\n[![English badge](https://img.shields.io/badge/%E8%8B%B1%E6%96%87-English-blue)](./README.md)\n[![简体中文 badge](https://img.shields.io/badge/%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87-Simplified%20Chinese-blue)](./README-ZH_CN.md)\\\n[![ChatGPT downloads](https://img.shields.io/github/downloads/lencx/ChatGPT/total.svg?style=flat-square)](https://github.com/lencx/ChatGPT/releases)\n[![chat](https://img.shields.io/badge/chat-discord-blue?style=flat\u0026logo=discord)](https://discord.gg/aPhCRf4zZr)\n[![lencx](https://img.shields.io/badge/follow-lencx__-blue?style=flat\u0026logo=Twitter)](https://twitter.com/lencx_)\n\n\u003c!-- [![lencx](https://img.shields.io/twitter/follow/lencx_.svg?style=social)](https://twitter.com/lencx_) --\u003e\n\n\u003ca href=\"https://www.buymeacoffee.com/lencx\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-blue.png\" alt=\"Buy Me A Coffee\" style=\"height: 40px !important;width: 145px !important;\" \u003e\u003c/a\u003e\n\n**它是一个非官方项目，仅供个人学习研究。ChatGPT 桌面应用开源的这段时间，受到了很多关注，谢谢大家的支持。随着事情的发展，有两个问题严重影响了项目的下一步开发计划:**\n\n- **有人利用它进行二次打包销售，谋取私利**\n- **ChatGPT 因名称和图标问题可能会涉及侵权**\n\n**新仓库：https://github.com/lencx/nofwl**\n\n---\n\n## 📦 安装\n\n- [📝 更新日志](./UPDATE_LOG.md)\n- [🕒 历史版本...](https://github.com/lencx/ChatGPT/releases)\n\n\u003c!-- tr-download-start --\u003e\n\n### Windows\n\n- [ChatGPT_1.1.0_windows_x86_64.msi](https://github.com/lencx/ChatGPT/releases/download/v1.1.0/ChatGPT_1.1.0_windows_x86_64.msi)\n- 使用 [winget](https://winstall.app/apps/lencx.ChatGPT):\n\n  ```bash\n  # install the latest version\n  winget install --id=lencx.ChatGPT -e\n\n  # install the specified version\n  winget install --id=lencx.ChatGPT -e --version 0.10.0\n  ```\n\n**注意：如果安装路径和应用名称相同，会导致冲突 ([#142](https://github.com/lencx/ChatGPT/issues/142))**\n\n### Mac\n\n- [ChatGPT_1.1.0_macos_aarch64.dmg](https://github.com/lencx/ChatGPT/releases/download/v1.1.0/ChatGPT_1.1.0_macos_aarch64.dmg)\n- [ChatGPT_1.1.0_macos_x86_64.dmg](https://github.com/lencx/ChatGPT/releases/download/v1.1.0/ChatGPT_1.1.0_macos_x86_64.dmg)\n- Homebrew \\\n  _[Homebrew 快捷安装](https://brew.sh) ([Cask](https://docs.brew.sh/Cask-Cookbook)):_\n  ```sh\n  brew tap lencx/chatgpt https://github.com/lencx/ChatGPT.git\n  brew install --cask chatgpt --no-quarantine\n  ```\n  如果你坚持使用 _[Brewfile](https://github.com/Homebrew/homebrew-bundle#usage)_ ，则需要添加以下配置:\n  ```rb\n  repo = \"lencx/chatgpt\"\n  tap repo, \"https://github.com/#{repo}.git\"\n  cask \"chatgpt\", args: { \"no-quarantine\": true }\n  ```\n\n如果在 macOS 上安装软件时遇到 `“ChatGPT” is damaged and can't be opened. You should move it to the Trash.` 错误消息，可能是由于 macOS 安全设置的限制导致的。为了解决此问题，请在终端尝试以下命令：\n\n```bash\nsudo xattr -r -d com.apple.quarantine /YOUR_PATH/ChatGPT.app\n```\n\n### Linux\n\n- [ChatGPT_1.1.0_linux_x86_64.deb](https://github.com/lencx/ChatGPT/releases/download/v1.1.0/ChatGPT_1.1.0_linux_x86_64.deb)\n- [ChatGPT_1.1.0_linux_x86_64.AppImage.tar.gz](https://github.com/lencx/ChatGPT/releases/download/v1.1.0/ChatGPT_1.1.0_linux_x86_64.AppImage.tar.gz): **工作可靠，`.deb` 运行失败时可以尝试它**\n\n\u003c!-- tr-download-end --\u003e\n\n## 📢 公告\n\n这是一个令人兴奋的重大更新。像 `Telegram 机器人指令` 那样工作，帮助你快速填充自定模型，来让 ChatGPT 按照你想要的方式去工作。这个项目倾注了我大量业余时间，如果它对你有所帮助，宣传转发，或者 star 都是对我的巨大鼓励。我希望我可以持续更新下去，加入更多有趣的功能。\n\n### 如何使用指令？\n\n你可以从 [awesome-chatgpt-prompts](https://github.com/f/awesome-chatgpt-prompts) 来寻找有趣的功能来导入到应用。也可以使用 `Sync Prompts`，来一键同步所有，如果你不想让某些提示出现在你的斜杠命令，你可以禁用它们。\n\n![chatgpt cmd](./assets/chatgpt-cmd.png)\n![chatgpt sync prompts](./assets/chatgpt-sync-prompts.png)\n\n\u003c!-- 数据导入完成后，可以重新启动应用来使配置生效（`Menu -\u003e Preferences -\u003e Restart ChatGPT`）。 --\u003e\n\n在 ChatGPT 文本输入区域，键入 `/` 开头的字符，则会弹出指令提示，按下空格键，它会默认将命令关联的文本填充到输入区域（注意：如果包含多个指令提示，它只会选择第一个作为填充，你可以持续输入，直到第一个提示命令为你想要时，再按下空格键。或者使用鼠标来点击多条指令中的某一个）。填充完成后，你只需要按下回车键即可。斜杠命令下，使用 TAB 键修改 `{q}` 标签内容（仅支持单个修改 [#54](https://github.com/lencx/ChatGPT/issues/54)）。使用键盘 `⇧` 和 `⇩`（上下键）来选择斜杠指令。\n\n![chatgpt](assets/chatgpt.gif)\n![chatgpt-cmd](assets/chatgpt-cmd.gif)\n\n## ✨ 功能概览\n\n- 跨平台: `macOS` `Linux` `Windows`\n- 导出 ChatGPT 聊天记录 (支持 PNG, PDF 和生成分享链接)\n- 应用自动升级通知\n- 丰富的快捷键\n- 系统托盘悬浮窗\n- 应用菜单功能强大\n- 支持斜杠命令及其配置（可手动配置或从文件同步 [#55](https://github.com/lencx/ChatGPT/issues/55)）\n- 自定义全局快捷键 ([#108](https://github.com/lencx/ChatGPT/issues/108))\n- 划词搜索 ([#122](https://github.com/lencx/ChatGPT/issues/122) 鼠标选中文本，不超过 400 个字符)：应用使用 Tauri 构建，因其安全限制，会导致部分操作按钮无效，建议前往浏览器操作。\n\n### #️⃣ 菜单项\n\n- **Preferences (喜好)**\n  - `Theme` - `Light`, `Dark`, `System` (仅支持 macOS 和 Windows)\n  - `Stay On Top`: 窗口置顶\n  - `Titlebar`: 是否显示 `Titlebar`，仅 macOS 支持\n  - `Hide Dock Icon` ([#35](https://github.com/lencx/ChatGPT/issues/35)): 隐藏 Dock 中的应用图标 (仅 macOS 支持)\n    - 系统图盘右键单击打开菜单，然后在菜单项中点击 `Show Dock Icon` 可以重新将应用图标显示在 Dock（`SystemTrayMenu -\u003e Show Dock Icon`）\n  - `Control Center`: ChatGPT 应用的控制中心，它将为应用提供无限的可能\n    - 设置 `Theme`，`Stay On Top`，`Titlebar` 等\n    - `User Agent` ([#17](https://github.com/lencx/ChatGPT/issues/17)): 自定义 `user agent` 防止网站安全检测，默认值为空\n  - `Go to Config`: 打开 ChatGPT 配置目录 (`path: ~/.chatgpt/*`)\n  - `Clear Config`: 清除 ChatGPT 配置数据 (`path: ~/.chatgpt/*`), 这是危险操作，请提前备份数据\n  - `Restart ChatGPT`: 重启应用。如果注入脚本编辑完成，或者应用可卡死可以通过此菜单重新启动应用\n- **Edit** - `Undo`, `Redo`, `Cut`, `Copy`, `SelectAll`, ...\n- **View** - `Go Back`, `Go Forward`, `Scroll to Top of Screen`, `Scroll to Bottom of Screen`, `Refresh the Screen`, ...\n- **Help**\n  - `Update Log`: ChatGPT 应用更新日志\n  - `Report Bug`: 报告 BUG 或反馈建议\n  - `Toggle Developer Tools`: 网站调试工具，调试页面或脚本可能需要\n\n## ⚙️ 应用配置\n\n| 平台    | 路径                      |\n| ------- | ------------------------- |\n| Linux   | `/home/lencx/.chatgpt`    |\n| macOS   | `/Users/lencx/.chatgpt`   |\n| Windows | `C:\\Users\\lencx\\.chatgpt` |\n\n- `[.chatgpt]` - 应用配置根路径\n  - `chat.conf.json` - 应用喜好配置\n  \u003c!-- - `chat.awesome.json` - 自定义 URL 列表，类似于浏览器书签。可以将任意 URL 作为主窗口或托盘窗口 (**Control Conter -\u003e Awesome**) --\u003e\n  - `chat.prompt.json` - ChatGPT 输入提示，通过斜杠命令来快速完成输入，主要包含三部分:\n    - `user_custom` - 需要手动录入 (**Control Conter -\u003e Prompts -\u003e User Custom**)\n    - `sync_prompts` - 从 [f/awesome-chatgpt-prompts](https://github.com/f/awesome-chatgpt-prompts) 同步数据 (**Control Conter -\u003e Prompts -\u003e Sync Prompts**)\n    - `sync_custom` - 同步自定义的 json 或 csv 文件数据，支持本地和远程 (**Control Conter -\u003e Prompts -\u003e Sync Custom**)\n  - `chat.prompt.cmd.json` - 过滤（是否启用）和排序处理后的斜杠命令数据\n  - `[cache_prompts]` - 缓存同步或录入的数据\n    - `chatgpt_prompts.json` - 缓存 `sync_prompts` 数据\n    - `user_custom.json` - 缓存 `user_custom` 数据\n    - `ae6cf32a6f8541b499d6bfe549dbfca3.json` - 随机生成的文件名，缓存 `sync_custom` 数据\n    - `4f695d3cfbf8491e9b1f3fab6d85715c.json` - 随机生成的文件名，缓存 `sync_custom` 数据\n    - `bd1b96f15a1644f7bd647cc53073ff8f.json` - 随机生成的文件名，缓存 `sync_custom` 数据\n\n### 客户端信息同步\n\n目前同步自定文件仅支持 json 和 csv，且需要满足以下格式，否则会导致应用异常：\n\n`JSON 格式`\n\n```json\n[\n  {\n    \"cmd\": \"a\",\n    \"act\": \"aa\",\n    \"prompt\": \"aaa aaa aaa\"\n  },\n  {\n    \"cmd\": \"b\",\n    \"act\": \"bb\",\n    \"prompt\": \"bbb bbb bbb\"\n  }\n]\n```\n\n`CSV 格式`\n\n```csv\n\"cmd\",\"act\",\"prompt\"\n\"a\",\"aa\",\"aaa aaa aaa\"\n\"b\",\"bb\",\"bbb bbb bbb\"\n```\n\n## 👀 预览\n\n\u003cimg width=\"320\" src=\"./assets/install.png\" alt=\"install\"\u003e \u003cimg width=\"320\" src=\"./assets/chatgpt-control-center-general.png\" alt=\"control center\"\u003e\n\u003cimg width=\"320\" src=\"./assets/chatgpt-export.png\" alt=\"export\"\u003e \u003cimg width=\"320\" src=\"./assets/chatgpt-dalle2-tray.png\" alt=\"dalle2 tray\"\u003e\n\u003cimg width=\"320\" src=\"./assets/auto-update.png\" alt=\"auto update\"\u003e\n\n## ❓ 常见问题\n\n### 不能打开 ChatGPT\n\n如果升级应用后无法打开，请尝试清除配置，它位于此目录 `~/.chatgpt/*`。\n\n### 主窗口已经登录，但是系统托盘窗口显示未登录\n\n可通过菜单项里的 `Restart ChatGPT` 重启应用来修复这个问题（`Menu -\u003e Preferences -\u003e Restart ChatGPT`）。\n\n### 它是否安全？\n\n它是安全的，仅仅只是对 [OpenAI ChatGPT](https://chat.openai.com) 网站的包装，注入了一些额外功能（均在本地，未发起网络请求），如果存疑，可以检查源代码。\n\n### 开发者未验证?\n\nMac 上无法安装，提示开发者未验证，具体可以查看下面给出的解决方案（它是开源的，很安全）。\n\n- [Open a Mac app from an unidentified developer](https://support.apple.com/en-sg/guide/mac-help/mh40616/mac)\n\n---\n\n### 我想自己构建它？\n\n#### 预安装\n\n- [Rust (必须)](https://www.rust-lang.org/)\n- [Node.js (必须)](https://nodejs.org/)\n- [VS Code (可选)](https://code.visualstudio.com/)\n  - [rust-analyzer](https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer)\n  - [tauri](https://marketplace.visualstudio.com/items?itemName=tauri-apps.tauri-vscode)\n\n#### 开始\n\n```bash\n# step1: 克隆仓库\ngit clone https://github.com/lencx/ChatGPT.git\n\n# step2: 进入目录\ncd ChatGPT\n\n# step3: 安装依赖\nyarn\n\n# step4: 开发启动\nyarn dev\n\n# step5: 构建应用\n# 构建后的安装包位置: src-tauri/target/release/bundle\nyarn build\n```\n\n- [The distDir configuration is set to \"../dist\" but this path doesn't exist](https://github.com/lencx/ChatGPT/discussions/180)\n- [Error A public key has been found, but no private key. Make sure to set TAURI_PRIVATE_KEY environment variable.](https://github.com/lencx/ChatGPT/discussions/182)\n\n## ❤️ 感谢\n\n- 分享按钮的代码从 [@liady](https://github.com/liady) 的插件获得，并做了一些本地化修改\n- 感谢 [Awesome ChatGPT Prompts](https://github.com/f/awesome-chatgpt-prompts) 项目为这个应用自定义指令功能所带来的启发\n\n---\n\n[![Star History Chart](https://api.star-history.com/svg?repos=lencx/chatgpt\u0026type=Timeline)](https://star-history.com/#lencx/chatgpt\u0026Timeline)\n\n## 中国用户\n\n国内用户如果遇到使用问题或者想交流 ChatGPT 技巧，可以关注公众号“浮之静”，发送 “chat” 进群参与讨论。公众号会更新[《Tauri 系列》](https://mp.weixin.qq.com/mp/appmsgalbum?__biz=MzIzNjE2NTI3NQ==\u0026action=getalbum\u0026album_id=2593843659863752704)文章，技术思考等等，如果对 tauri 开发应用感兴趣可以关注公众号后回复 “tauri” 进技术开发群（想私聊的也可以关注公众号，来添加微信）。开源不易，如果这个项目对你有帮助可以分享给更多人，或者微信扫码打赏。\n\n\u003cimg width=\"180\" src=\"https://user-images.githubusercontent.com/16164244/207228300-ea5c4688-c916-4c55-a8c3-7f862888f351.png\"\u003e \u003cimg width=\"200\" src=\"https://user-images.githubusercontent.com/16164244/207228025-117b5f77-c5d2-48c2-a070-774b7a1596f2.png\"\u003e\n\n\u003ca href=\"https://t.zsxq.com/0bQikmcVw\"\u003e\u003cimg width=\"360\" src=\"./assets/zsxq.png\"\u003e\u003c/a\u003e\n\n## License\n\nAGPL-3.0 License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flencx%2FChatGPT","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flencx%2FChatGPT","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flencx%2FChatGPT/lists"}