[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"similar-Exafunction--codeium.el":3,"tool-Exafunction--codeium.el":64},[4,17,25,39,48,56],{"id":5,"name":6,"github_repo":7,"description_zh":8,"stars":9,"difficulty_score":10,"last_commit_at":11,"category_tags":12,"status":16},1381,"everything-claude-code","affaan-m\u002Feverything-claude-code","everything-claude-code 是一套专为 AI 编程助手（如 Claude Code、Codex、Cursor 等）打造的高性能优化系统。它不仅仅是一组配置文件，而是一个经过长期实战打磨的完整框架，旨在解决 AI 代理在实际开发中面临的效率低下、记忆丢失、安全隐患及缺乏持续学习能力等核心痛点。\n\n通过引入技能模块化、直觉增强、记忆持久化机制以及内置的安全扫描功能，everything-claude-code 能显著提升 AI 在复杂任务中的表现，帮助开发者构建更稳定、更智能的生产级 AI 代理。其独特的“研究优先”开发理念和针对 Token 消耗的优化策略，使得模型响应更快、成本更低，同时有效防御潜在的攻击向量。\n\n这套工具特别适合软件开发者、AI 研究人员以及希望深度定制 AI 工作流的技术团队使用。无论您是在构建大型代码库，还是需要 AI 协助进行安全审计与自动化测试，everything-claude-code 都能提供强大的底层支持。作为一个曾荣获 Anthropic 黑客大奖的开源项目，它融合了多语言支持与丰富的实战钩子（hooks），让 AI 真正成长为懂上",140436,2,"2026-04-05T23:32:43",[13,14,15],"开发框架","Agent","语言模型","ready",{"id":18,"name":19,"github_repo":20,"description_zh":21,"stars":22,"difficulty_score":10,"last_commit_at":23,"category_tags":24,"status":16},3704,"NextChat","ChatGPTNextWeb\u002FNextChat","NextChat 是一款轻量且极速的 AI 助手，旨在为用户提供流畅、跨平台的大模型交互体验。它完美解决了用户在多设备间切换时难以保持对话连续性，以及面对众多 AI 模型不知如何统一管理的痛点。无论是日常办公、学习辅助还是创意激发，NextChat 都能让用户随时随地通过网页、iOS、Android、Windows、MacOS 或 Linux 端无缝接入智能服务。\n\n这款工具非常适合普通用户、学生、职场人士以及需要私有化部署的企业团队使用。对于开发者而言，它也提供了便捷的自托管方案，支持一键部署到 Vercel 或 Zeabur 等平台。\n\nNextChat 的核心亮点在于其广泛的模型兼容性，原生支持 Claude、DeepSeek、GPT-4 及 Gemini Pro 等主流大模型，让用户在一个界面即可自由切换不同 AI 能力。此外，它还率先支持 MCP（Model Context Protocol）协议，增强了上下文处理能力。针对企业用户，NextChat 提供专业版解决方案，具备品牌定制、细粒度权限控制、内部知识库整合及安全审计等功能，满足公司对数据隐私和个性化管理的高标准要求。",87618,"2026-04-05T07:20:52",[13,15],{"id":26,"name":27,"github_repo":28,"description_zh":29,"stars":30,"difficulty_score":10,"last_commit_at":31,"category_tags":32,"status":16},2268,"ML-For-Beginners","microsoft\u002FML-For-Beginners","ML-For-Beginners 是由微软推出的一套系统化机器学习入门课程，旨在帮助零基础用户轻松掌握经典机器学习知识。这套课程将学习路径规划为 12 周，包含 26 节精炼课程和 52 道配套测验，内容涵盖从基础概念到实际应用的完整流程，有效解决了初学者面对庞大知识体系时无从下手、缺乏结构化指导的痛点。\n\n无论是希望转型的开发者、需要补充算法背景的研究人员，还是对人工智能充满好奇的普通爱好者，都能从中受益。课程不仅提供了清晰的理论讲解，还强调动手实践，让用户在循序渐进中建立扎实的技能基础。其独特的亮点在于强大的多语言支持，通过自动化机制提供了包括简体中文在内的 50 多种语言版本，极大地降低了全球不同背景用户的学习门槛。此外，项目采用开源协作模式，社区活跃且内容持续更新，确保学习者能获取前沿且准确的技术资讯。如果你正寻找一条清晰、友好且专业的机器学习入门之路，ML-For-Beginners 将是理想的起点。",84991,"2026-04-05T10:45:23",[33,34,35,36,14,37,15,13,38],"图像","数据工具","视频","插件","其他","音频",{"id":40,"name":41,"github_repo":42,"description_zh":43,"stars":44,"difficulty_score":45,"last_commit_at":46,"category_tags":47,"status":16},3128,"ragflow","infiniflow\u002Fragflow","RAGFlow 是一款领先的开源检索增强生成（RAG）引擎，旨在为大语言模型构建更精准、可靠的上下文层。它巧妙地将前沿的 RAG 技术与智能体（Agent）能力相结合，不仅支持从各类文档中高效提取知识，还能让模型基于这些知识进行逻辑推理和任务执行。\n\n在大模型应用中，幻觉问题和知识滞后是常见痛点。RAGFlow 通过深度解析复杂文档结构（如表格、图表及混合排版），显著提升了信息检索的准确度，从而有效减少模型“胡编乱造”的现象，确保回答既有据可依又具备时效性。其内置的智能体机制更进一步，使系统不仅能回答问题，还能自主规划步骤解决复杂问题。\n\n这款工具特别适合开发者、企业技术团队以及 AI 研究人员使用。无论是希望快速搭建私有知识库问答系统，还是致力于探索大模型在垂直领域落地的创新者，都能从中受益。RAGFlow 提供了可视化的工作流编排界面和灵活的 API 接口，既降低了非算法背景用户的上手门槛，也满足了专业开发者对系统深度定制的需求。作为基于 Apache 2.0 协议开源的项目，它正成为连接通用大模型与行业专有知识之间的重要桥梁。",77062,3,"2026-04-04T04:44:48",[14,33,13,15,37],{"id":49,"name":50,"github_repo":51,"description_zh":52,"stars":53,"difficulty_score":45,"last_commit_at":54,"category_tags":55,"status":16},519,"PaddleOCR","PaddlePaddle\u002FPaddleOCR","PaddleOCR 是一款基于百度飞桨框架开发的高性能开源光学字符识别工具包。它的核心能力是将图片、PDF 等文档中的文字提取出来，转换成计算机可读取的结构化数据，让机器真正“看懂”图文内容。\n\n面对海量纸质或电子文档，PaddleOCR 解决了人工录入效率低、数字化成本高的问题。尤其在人工智能领域，它扮演着连接图像与大型语言模型（LLM）的桥梁角色，能将视觉信息直接转化为文本输入，助力智能问答、文档分析等应用场景落地。\n\nPaddleOCR 适合开发者、算法研究人员以及有文档自动化需求的普通用户。其技术优势十分明显：不仅支持全球 100 多种语言的识别，还能在 Windows、Linux、macOS 等多个系统上运行，并灵活适配 CPU、GPU、NPU 等各类硬件。作为一个轻量级且社区活跃的开源项目，PaddleOCR 既能满足快速集成的需求，也能支撑前沿的视觉语言研究，是处理文字识别任务的理想选择。",74939,"2026-04-05T23:16:38",[15,33,13,37],{"id":57,"name":58,"github_repo":59,"description_zh":60,"stars":61,"difficulty_score":45,"last_commit_at":62,"category_tags":63,"status":16},2181,"OpenHands","OpenHands\u002FOpenHands","OpenHands 是一个专注于 AI 驱动开发的开源平台，旨在让智能体（Agent）像人类开发者一样理解、编写和调试代码。它解决了传统编程中重复性劳动多、环境配置复杂以及人机协作效率低等痛点，通过自动化流程显著提升开发速度。\n\n无论是希望提升编码效率的软件工程师、探索智能体技术的研究人员，还是需要快速原型验证的技术团队，都能从中受益。OpenHands 提供了灵活多样的使用方式：既可以通过命令行（CLI）或本地图形界面在个人电脑上轻松上手，体验类似 Devin 的流畅交互；也能利用其强大的 Python SDK 自定义智能体逻辑，甚至在云端大规模部署上千个智能体并行工作。\n\n其核心技术亮点在于模块化的软件智能体 SDK，这不仅构成了平台的引擎，还支持高度可组合的开发模式。此外，OpenHands 在 SWE-bench 基准测试中取得了 77.6% 的优异成绩，证明了其解决真实世界软件工程问题的能力。平台还具备完善的企业级功能，支持与 Slack、Jira 等工具集成，并提供细粒度的权限管理，适合从个人开发者到大型企业的各类用户场景。",70626,"2026-04-05T22:51:36",[15,14,13,36],{"id":65,"github_repo":66,"name":67,"description_en":68,"description_zh":69,"ai_summary_zh":69,"readme_en":70,"readme_zh":71,"quickstart_zh":72,"use_case_zh":73,"hero_image_url":74,"owner_login":75,"owner_name":75,"owner_avatar_url":76,"owner_bio":77,"owner_company":78,"owner_location":78,"owner_email":79,"owner_twitter":78,"owner_website":80,"owner_url":81,"languages":82,"stars":87,"forks":88,"last_commit_at":89,"license":90,"difficulty_score":10,"env_os":91,"env_gpu":92,"env_ram":92,"env_deps":93,"category_tags":99,"github_topics":78,"view_count":10,"oss_zip_url":78,"oss_zip_packed_at":78,"status":16,"created_at":100,"updated_at":101,"faqs":102,"releases":133},4232,"Exafunction\u002Fcodeium.el","codeium.el","Free, ultrafast Copilot alternative for Emacs","codeium.el 是一款专为 Emacs 编辑器打造的免费、超快 AI 代码补全插件，旨在为开发者提供 GitHub Copilot 的优质替代方案。它利用先进的人工智能技术，在用户编写代码时实时预测并生成后续代码片段，有效减少重复性打字工作，帮助开发者更专注于逻辑构建，从而显著提升编码效率。\n\n这款工具特别适合习惯使用 Emacs 的软件开发者和编程爱好者。无论是日常业务开发还是算法研究，只要你需要流畅的代码辅助体验，codeium.el 都能无缝融入你的工作流。其独特亮点在于采用了专有语言服务器二进制文件，确保了极低的响应延迟和极高的补全准确率。同时，它具有出色的兼容性，能够灵活对接 company-mode、corfu 等主流前端补全框架，也支持 Emacs 原生的补全功能。\n\n作为开源项目，codeium.el 由社区驱动并持续迭代，安装配置简便。只需简单几步设置，即可在 Emacs 中开启智能化的编程辅助体验，让代码编写变得更加轻松高效。","\u003Cp align=\"center\">\n\u003Cimg width=\"300\" alt=\"Codeium\" src=\"codeium.svg\"\u002F>\n\u003C\u002Fp>\n\n---\n\n[![Discord](https:\u002F\u002Fimg.shields.io\u002Fdiscord\u002F1027685395649015980?label=community&color=5865F2&logo=discord&logoColor=FFFFFF)](https:\u002F\u002Fdiscord.gg\u002F3XFf78nAx5)\n[![Twitter Follow](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fstyle--blue?style=social&logo=twitter&label=Follow%20%40codeiumdev)](https:\u002F\u002Ftwitter.com\u002Fintent\u002Ffollow?screen_name=codeiumdev)\n![License](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002FExafunction\u002Fcodeium.vim)\n[![Docs](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FCodeium%20Docs-09B6A2)](https:\u002F\u002Fdocs.codeium.com)\n[![Canny Board](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FFeature%20Requests-6b69ff)](https:\u002F\u002Fcodeium.canny.io\u002Ffeature-requests\u002F)\n[![built with Codeium](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002FExafunction_codeium.el_readme_8a781d1ff02e.png)](https:\u002F\u002Fcodeium.com?repo_name=exafunction%2Fcodeium.el)\n\n[![Visual Studio](https:\u002F\u002Fimg.shields.io\u002Fvisual-studio-marketplace\u002Fi\u002FCodeium.codeium?label=Visual%20Studio&logo=visualstudio)](https:\u002F\u002Fmarketplace.visualstudio.com\u002Fitems?itemName=Codeium.codeium)\n[![JetBrains](https:\u002F\u002Fimg.shields.io\u002Fjetbrains\u002Fplugin\u002Fd\u002F20540?label=JetBrains)](https:\u002F\u002Fplugins.jetbrains.com\u002Fplugin\u002F20540-codeium\u002F)\n[![Open VSX](https:\u002F\u002Fimg.shields.io\u002Fopen-vsx\u002Fdt\u002FCodeium\u002Fcodeium?label=Open%20VSX)](https:\u002F\u002Fopen-vsx.org\u002Fextension\u002FCodeium\u002Fcodeium)\n[![Google Chrome](https:\u002F\u002Fimg.shields.io\u002Fchrome-web-store\u002Fusers\u002Fhobjkcpmjhlegmobgonaagepfckjkceh?label=Google%20Chrome&logo=googlechrome&logoColor=FFFFFF)](https:\u002F\u002Fchrome.google.com\u002Fwebstore\u002Fdetail\u002Fcodeium\u002Fhobjkcpmjhlegmobgonaagepfckjkceh)\n\n# codeium.el\n\n_Free, ultrafast, extensible AI code completion tool for Emacs_\n\nCodeium autocompletes your code with AI in all major IDEs. We [launched](https:\u002F\u002Fwww.codeium.com\u002Fblog\u002Fcodeium-copilot-alternative-in-emacs) this implementation of the Codeium plugin for Emacs to bring this modern coding superpower to more developers. Check out our [playground](https:\u002F\u002Fwww.codeium.com\u002Fplayground) if you want to quickly try out Codeium online.\n\ncodeium.el provides a `completion-at-point-functions` backend. It is designed to be use with a front-end, such as [company-mode](https:\u002F\u002Fcompany-mode.github.io\u002F), [corfu](https:\u002F\u002Fgithub.com\u002Fminad\u002Fcorfu), or the built-in `completion-at-point`.\n\ncodeium.el is an open source client and (mostly) written by [Alan Chen](https:\u002F\u002Fgithub.com\u002FAlan-Chen99). It uses a proprietary language server binary, currently downloaded (automatically, with confirmation) from [here](https:\u002F\u002Fgithub.com\u002FExafunction\u002Fcodeium\u002Freleases\u002F). Use `M-x codeium-diagnose` to see apis\u002Ffields that would be sent to the local language server, and the command used to run the local language server. Customize `codeium-api-enabled`, `codeium-fields-regexps` and `codeium-command` to change them.\n\nContributions are welcome! Feel free to submit pull requests and issues related to the package.\n\n\u003Cbr \u002F>\n\n![Emacs Demo - Final](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002FExafunction_codeium.el_readme_9e80bfa20497.gif)\n\n\u003Cbr \u002F>\n\n## 🚀 Getting started\n\n1. Install [Emacs](https:\u002F\u002Fwww.gnu.org\u002Fsoftware\u002Femacs\u002F), ensuring the version of Emacs you are running is compiled with [libxml2](https:\u002F\u002Fwww.gnu.org\u002Fsoftware\u002Femacs\u002Fmanual\u002Fhtml_node\u002Felisp\u002FParsing-HTML_002fXML.html). You can check this by using the `(libxml-available-p)` function within Emacs Lisp. This function returns t (true) if libxml2 is available in your current Emacs session.\n\n2. Install a text-completion frontend of your choice. (We recommend [company-mode](https:\u002F\u002Fcompany-mode.github.io\u002F) or [corfu](https:\u002F\u002Fgithub.com\u002Fminad\u002Fcorfu)).\n\n3. Install `Exafunction\u002Fcodeium.el` using your emacs package manager of\nchoice, or manually. See [Installation Options](#-installation-options) below.\n\n4. Run `M-x codeium-install` to set up the package.\n\n5. Add `codeium-completion-at-point` to your `completion-at-point-functions`.\n\n6. Start seeing suggestions!\n\n## 🛠️ Configuration\n\nYou can see all customization options via `M-x customize`.\n(better documentation coming soon!)\n\nHere is an example configuration:\n```elisp\n;; we recommend using use-package to organize your init.el\n(use-package codeium\n    ;; if you use straight\n    ;; :straight '(:type git :host github :repo \"Exafunction\u002Fcodeium.el\")\n    ;; otherwise, make sure that the codeium.el file is on load-path\n\n    :init\n    ;; use globally\n    (add-to-list 'completion-at-point-functions #'codeium-completion-at-point)\n    ;; or on a hook\n    ;; (add-hook 'python-mode-hook\n    ;;     (lambda ()\n    ;;         (setq-local completion-at-point-functions '(codeium-completion-at-point))))\n\n    ;; if you want multiple completion backends, use cape (https:\u002F\u002Fgithub.com\u002Fminad\u002Fcape):\n    ;; (add-hook 'python-mode-hook\n    ;;     (lambda ()\n    ;;         (setq-local completion-at-point-functions\n    ;;             (list (cape-capf-super #'codeium-completion-at-point #'lsp-completion-at-point)))))\n    ;; an async company-backend is coming soon!\n\n    ;; codeium-completion-at-point is autoloaded, but you can\n    ;; optionally set a timer, which might speed up things as the\n    ;; codeium local language server takes ~0.2s to start up\n    ;; (add-hook 'emacs-startup-hook\n    ;;  (lambda () (run-with-timer 0.1 nil #'codeium-init)))\n\n    ;; :defer t ;; lazy loading, if you want\n    :config\n    (setq use-dialog-box nil) ;; do not use popup boxes\n\n    ;; if you don't want to use customize to save the api-key\n    ;; (setq codeium\u002Fmetadata\u002Fapi_key \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\")\n\n    ;; get codeium status in the modeline\n    (setq codeium-mode-line-enable\n        (lambda (api) (not (memq api '(CancelRequest Heartbeat AcceptCompletion)))))\n    (add-to-list 'mode-line-format '(:eval (car-safe codeium-mode-line)) t)\n    ;; alternatively for a more extensive mode-line\n    ;; (add-to-list 'mode-line-format '(-50 \"\" codeium-mode-line) t)\n\n    ;; use M-x codeium-diagnose to see apis\u002Ffields that would be sent to the local language server\n    (setq codeium-api-enabled\n        (lambda (api)\n            (memq api '(GetCompletions Heartbeat CancelRequest GetAuthToken RegisterUser auth-redirect AcceptCompletion))))\n    ;; you can also set a config for a single buffer like this:\n    ;; (add-hook 'python-mode-hook\n    ;;     (lambda ()\n    ;;         (setq-local codeium\u002Feditor_options\u002Ftab_size 4)))\n\n    ;; You can overwrite all the codeium configs!\n    ;; for example, we recommend limiting the string sent to codeium for better performance\n    (defun my-codeium\u002Fdocument\u002Ftext ()\n        (buffer-substring-no-properties (max (- (point) 3000) (point-min)) (min (+ (point) 1000) (point-max))))\n    ;; if you change the text, you should also change the cursor_offset\n    ;; warning: this is measured by UTF-8 encoded bytes\n    (defun my-codeium\u002Fdocument\u002Fcursor_offset ()\n        (codeium-utf8-byte-length\n            (buffer-substring-no-properties (max (- (point) 3000) (point-min)) (point))))\n    (setq codeium\u002Fdocument\u002Ftext 'my-codeium\u002Fdocument\u002Ftext)\n    (setq codeium\u002Fdocument\u002Fcursor_offset 'my-codeium\u002Fdocument\u002Fcursor_offset))\n```\n\n\nHere is an example configuration for company-mode.\n```elisp\n(use-package company\n    :defer 0.1\n    :config\n    (global-company-mode t)\n    (setq-default\n        company-idle-delay 0.05\n        company-require-match nil\n        company-minimum-prefix-length 0\n\n        ;; get only preview\n        company-frontends '(company-preview-frontend)\n        ;; also get a drop down\n        ;; company-frontends '(company-pseudo-tooltip-frontend company-preview-frontend)\n        ))\n```\n\nYou can also access codeium.el from elisp; here is a snippet that returns\nthe full response of a `GetCompletions` request:\n```elisp\n(cl-letf*\n    (\n        ;; making a new codeium-state (thus a new local language server process)\n        ;; takes ~0.2 seconds; avoid when possible\n        (state (codeium-state-make :name \"example\"))\n        ((codeium-config 'codeium\u002Fdocument\u002Ftext state) \"def fibi(n):\")\n        ((codeium-config 'codeium\u002Fdocument\u002Fcursor_offset state) 12)\n        ((codeium-config 'codeium-api-enabled state) (lambda (api) (eq api 'GetCompletions))))\n    (unwind-protect\n        (progn\n            (codeium-init state)\n            ;; make async requests using codeium-request\n            (cdr (codeium-request-synchronously 'GetCompletions state nil)))\n        ;; cleans up temp files, kill process. Scheduled async requests on this state will be dropped.\n        (codeium-reset state)))\n```\nNote that, among other things, you get probabilities for each token!\nWe would love to see a PR or your own package that uses those!\n\n### 🔓 Authentication\nIf you want to authenticate automatically, add your codeium api key to one of `auth-sources`. For example\n\n~\u002F.authinfo.gpg:\n``` text\nmachine codeium.com login apikey secret \u003Cinsert_api_key_here>\n```\n\n## 💾 Installation Options\n\n### ➡️ straight.el\n\n```elisp\n(straight-use-package '(codeium :type git :host github :repo \"Exafunction\u002Fcodeium.el\"))\n```\n\n### 💀 Doom Emacs\nIn `packages.el` add the following:\n```elisp\n(package! codeium :recipe (:host github :repo \"Exafunction\u002Fcodeium.el\"))\n```\nAdd the example configuration to your `config.el` file.\n\n\n### 💪 Manual\n\nRun the following.\n\n```bash\ngit clone --depth 1 https:\u002F\u002Fgithub.com\u002FExafunction\u002Fcodeium.el ~\u002F.emacs.d\u002Fcodeium.el\n```\n\nAdd the following to your `~\u002F.emacs.d\u002Finit.el` file.\n\n```elisp\n(add-to-list 'load-path \"~\u002F.emacs.d\u002Fcodeium.el\")\n```\n\n*Do you have a working installation for another Emacs environment (Spacemacs)? Submit a PR so we can share it with others!*\n\n## Self-Hosted Enterprise\n\nIf you are using the plugin with the Windsurf Self-Hosted Enterprise deployment, you'll need to set your Portal and API URLs\nin your vim config file so that Windsurf knows where to send completion requests. Add the following line to your `~\u002F.emacs.d\u002Finit.el`:\n\n```\n(setq-default codeium-enterprise t)\n(setq-default codeium-portal-url \"\u003CPORTAL URL>\")\n(setq-default codeium-api-url \"\u003CPORTAL URL>\u002F_route\u002Fapi_server\")\n```\n","\u003Cp align=\"center\">\n\u003Cimg width=\"300\" alt=\"Codeium\" src=\"codeium.svg\"\u002F>\n\u003C\u002Fp>\n\n---\n\n[![Discord](https:\u002F\u002Fimg.shields.io\u002Fdiscord\u002F1027685395649015980?label=community&color=5865F2&logo=discord&logoColor=FFFFFF)](https:\u002F\u002Fdiscord.gg\u002F3XFf78nAx5)\n[![Twitter Follow](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fstyle--blue?style=social&logo=twitter&label=Follow%20%40codeiumdev)](https:\u002F\u002Ftwitter.com\u002Fintent\u002Ffollow?screen_name=codeiumdev)\n![License](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002FExafunction\u002Fcodeium.vim)\n[![Docs](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FCodeium%20Docs-09B6A2)](https:\u002F\u002Fdocs.codeium.com)\n[![Canny Board](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FFeature%20Requests-6b69ff)](https:\u002F\u002Fcodeium.canny.io\u002Ffeature-requests\u002F)\n[![built with Codeium](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002FExafunction_codeium.el_readme_8a781d1ff02e.png)](https:\u002F\u002Fcodeium.com?repo_name=exafunction%2Fcodeium.el)\n\n[![Visual Studio](https:\u002F\u002Fimg.shields.io\u002Fvisual-studio-marketplace\u002Fi\u002FCodeium.codeium?label=Visual%20Studio&logo=visualstudio)](https:\u002F\u002Fmarketplace.visualstudio.com\u002Fitems?itemName=Codeium.codeium)\n[![JetBrains](https:\u002F\u002Fimg.shields.io\u002Fjetbrains\u002Fplugin\u002Fd\u002F20540?label=JetBrains)](https:\u002F\u002Fplugins.jetbrains.com\u002Fplugin\u002F20540-codeium\u002F)\n[![Open VSX](https:\u002F\u002Fimg.shields.io\u002Fopen-vsx\u002Fdt\u002FCodeium\u002Fcodeium?label=Open%20VSX)](https:\u002F\u002Fopen-vsx.org\u002Fextension\u002FCodeium\u002Fcodeium)\n[![Google Chrome](https:\u002F\u002Fimg.shields.io\u002Fchrome-web-store\u002Fusers\u002Fhobjkcpmjhlegmobgonaagepfckjkceh?label=Google%20Chrome&logo=googlechrome&logoColor=FFFFFF)](https:\u002F\u002Fchrome.google.com\u002Fwebstore\u002Fdetail\u002Fcodeium\u002Fhobjkcpmjhlegmobgonaagepfckjkceh)\n\n# codeium.el\n\n_免费、超快速、可扩展的 Emacs AI 代码补全工具_\n\nCodeium 可在各大主流 IDE 中利用 AI 自动补全代码。我们已推出适用于 Emacs 的 Codeium 插件实现，旨在将这一现代化的编码利器带给更多开发者。如果您想快速在线体验 Codeium，可以访问我们的 [游乐场](https:\u002F\u002Fwww.codeium.com\u002Fplayground)。\n\ncodeium.el 提供了一个 `completion-at-point-functions` 后端，专为与前端配合使用而设计，例如 [company-mode](https:\u002F\u002Fcompany-mode.github.io\u002F)、[corfu](https:\u002F\u002Fgithub.com\u002Fminad\u002Fcorfu)，或 Emacs 内置的 `completion-at-point`。\n\ncodeium.el 是一个开源客户端，主要由 [Alan Chen](https:\u002F\u002Fgithub.com\u002FAlan-Chen99) 编写。它使用专有的语言服务器二进制文件，目前会自动从 [这里](https:\u002F\u002Fgithub.com\u002FExafunction\u002Fcodeium\u002Freleases\u002F) 下载（需确认）。您可以使用 `M-x codeium-diagnose` 查看将发送到本地语言服务器的 API 和字段，以及运行本地语言服务器的命令。通过自定义 `codeium-api-enabled`、`codeium-fields-regexps` 和 `codeium-command` 来进行相应调整。\n\n欢迎贡献！请随时提交与该包相关的拉取请求和问题。\n\n\u003Cbr \u002F>\n\n![Emacs 演示 - 最终版](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002FExafunction_codeium.el_readme_9e80bfa20497.gif)\n\n\u003Cbr \u002F>\n\n## 🚀 开始使用\n\n1. 安装 [Emacs](https:\u002F\u002Fwww.gnu.org\u002Fsoftware\u002Femacs\u002F)。请确保您运行的 Emacs 版本已编译了 [libxml2](https:\u002F\u002Fwww.gnu.org\u002Fsoftware\u002Femacs\u002Fmanual\u002Fhtml_node\u002Felisp\u002FParsing-HTML_002fXML.html)。您可以在 Emacs Lisp 中使用 `(libxml-available-p)` 函数来检查：如果当前 Emacs 会话中可用 libxml2，该函数将返回 t（真）。\n\n2. 安装您选择的文本补全前端。（我们推荐 [company-mode](https:\u002F\u002Fcompany-mode.github.io\u002F) 或 [corfu](https:\u002F\u002Fgithub.com\u002Fminad\u002Fcorfu)。）\n\n3. 使用您喜欢的 Emacs 包管理器或手动方式安装 `Exafunction\u002Fcodeium.el`。详情请参阅下方的 [安装选项](#-installation-options)。\n\n4. 运行 `M-x codeium-install` 来设置该包。\n\n5. 将 `codeium-completion-at-point` 添加到您的 `completion-at-point-functions` 列表中。\n\n6. 开始查看建议吧！\n\n## 🛠️ 配置\n\n您可以通过 `M-x customize` 查看所有自定义选项。\n（更详细的文档即将发布！）\n\n以下是一个配置示例：\n```elisp\n;; 我们建议使用 use-package 来组织你的 init.el 文件\n(use-package codeium\n    ;; 如果你使用 straight\n    ;; :straight '(:type git :host github :repo \"Exafunction\u002Fcodeium.el\")\n    ;; 否则，请确保 codeium.el 文件位于 load-path 中\n\n    :init\n    ;; 全局启用\n    (add-to-list 'completion-at-point-functions #'codeium-completion-at-point)\n    ;; 或者在某个钩子中启用\n    ;; (add-hook 'python-mode-hook\n    ;;     (lambda ()\n    ;;         (setq-local completion-at-point-functions '(codeium-completion-at-point))))\n\n    ;; 如果你想使用多个补全后端，可以使用 cape (https:\u002F\u002Fgithub.com\u002Fminad\u002Fcape)：\n    ;; (add-hook 'python-mode-hook\n    ;;     (lambda ()\n    ;;         (setq-local completion-at-point-functions\n    ;;             (list (cape-capf-super #'codeium-completion-at-point #'lsp-completion-at-point)))))\n    ;; 一个异步的 company 后端即将推出！\n\n    ;; codeium-completion-at-point 是自动加载的，但你也可以\n    ;; 选择设置一个定时器，这可能会加快速度，因为\n    \u002F\u002F codeium 的本地语言服务器大约需要 0.2 秒才能启动\n    ;; (add-hook 'emacs-startup-hook\n    ;;  (lambda () (run-with-timer 0.1 nil #'codeium-init)))\n\n    ;; :defer t ;; 如果需要懒加载\n    :config\n    (setq use-dialog-box nil) ;; 不使用弹出框\n\n    ;; 如果你不想通过 customize 来保存 API 密钥\n    ;; (setq codeium\u002Fmetadata\u002Fapi_key \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\")\n\n    ;; 在模式行显示 codeium 状态\n    (setq codeium-mode-line-enable\n        (lambda (api) (not (memq api '(CancelRequest Heartbeat AcceptCompletion)))))\n    (add-to-list 'mode-line-format '(:eval (car-safe codeium-mode-line)) t)\n    ;; 或者使用更丰富的模式行\n    ;; (add-to-list 'mode-line-format '(-50 \"\" codeium-mode-line) t)\n\n    ;; 使用 M-x codeium-diagnose 可以查看将发送到本地语言服务器的 API 和字段\n    (setq codeium-api-enabled\n        (lambda (api)\n            (memq api '(GetCompletions Heartbeat CancelRequest GetAuthToken RegisterUser auth-redirect AcceptCompletion))))\n    ;; 你也可以为单个缓冲区设置配置，例如：\n    ;; (add-hook 'python-mode-hook\n    ;;     (lambda ()\n    ;;         (setq-local codeium\u002Feditor_options\u002Ftab_size 4)))\n\n    ;; 你可以覆盖所有的 codeium 配置！\n    ;; 例如，我们建议限制发送给 codeium 的字符串长度以提高性能\n    (defun my-codeium\u002Fdocument\u002Ftext ()\n        (buffer-substring-no-properties (max (- (point) 3000) (point-min)) (min (+ (point) 1000) (point-max))))\n    ;; 如果你更改了文本，你也应该相应地调整光标偏移量\n    ;; 注意：这是以 UTF-8 编码的字节数来衡量的\n    (defun my-codeium\u002Fdocument\u002Fcursor_offset ()\n        (codeium-utf8-byte-length\n            (buffer-substring-no-properties (max (- (point) 3000) (point-min)) (point))))\n    (setq codeium\u002Fdocument\u002Ftext 'my-codeium\u002Fdocument\u002Ftext)\n    (setq codeium\u002Fdocument\u002Fcursor_offset 'my-codeium\u002Fdocument\u002Fcursor_offset))\n```\n\n\n以下是 company-mode 的一个配置示例。\n```elisp\n(use-package company\n    :defer 0.1\n    :config\n    (global-company-mode t)\n    (setq-default\n        company-idle-delay 0.05\n        company-require-match nil\n        company-minimum-prefix-length 0\n\n        \u002F\u002F 只显示预览\n        company-frontends '(company-preview-frontend)\n        \u002F\u002F 也可以同时显示下拉菜单\n        \u002F\u002F company-frontends '(company-pseudo-tooltip-frontend company-preview-frontend)\n        ))\n```\n\n你也可以通过 Elisp 访问 codeium.el；以下是一个返回 `GetCompletions` 请求完整响应的代码片段：\n```elisp\n(cl-letf*\n    (\n        \u002F\u002F 创建一个新的 codeium-state（即一个新的本地语言服务器进程）\n        \u002F\u002F 大约需要 0.2 秒；尽量避免频繁创建\n        (state (codeium-state-make :name \"example\"))\n        ((codeium-config 'codeium\u002Fdocument\u002Ftext state) \"def fibi(n):\")\n        ((codeium-config 'codeium\u002Fdocument\u002Fcursor_offset state) 12)\n        ((codeium-config 'codeium-api-enabled state) (lambda (api) (eq api 'GetCompletions))))\n    (unwind-protect\n        (progn\n            (codeium-init state)\n            \u002F\u002F 使用 codeium-request 发起异步请求\n            (cdr (codeium-request-synchronously 'GetCompletions state nil)))\n        \u002F\u002F 清理临时文件并终止进程。该状态下的任何计划中的异步请求都将被取消。\n        (codeium-reset state)))\n```\n请注意，除了其他信息外，你还会得到每个标记的概率！我们非常欢迎你提交 PR 或开发自己的包来利用这些概率！\n\n### 🔓 身份验证\n如果你想自动进行身份验证，可以将你的 codeium API 密钥添加到 `auth-sources` 中。例如：\n\n~\u002F.authinfo.gpg:\n``` text\nmachine codeium.com login apikey secret \u003Cinsert_api_key_here>\n```\n\n## 💾 安装选项\n\n### ➡️ straight.el\n\n```elisp\n(straight-use-package '(codeium :type git :host github :repo \"Exafunction\u002Fcodeium.el\"))\n```\n\n### 💀 Doom Emacs\n在 `packages.el` 中添加以下内容：\n```elisp\n(package! codeium :recipe (:host github :repo \"Exafunction\u002Fcodeium.el\"))\n```\n然后将示例配置添加到你的 `config.el` 文件中。\n\n### 💪 手动安装\n\n运行以下命令：\n\n```bash\ngit clone --depth 1 https:\u002F\u002Fgithub.com\u002FExafunction\u002Fcodeium.el ~\u002F.emacs.d\u002Fcodeium.el\n```\n\n然后在你的 `~\u002F.emacs.d\u002Finit.el` 文件中添加以下内容：\n\n```elisp\n(add-to-list 'load-path \"~\u002F.emacs.d\u002Fcodeium.el\")\n```\n\n*你是否为其他 Emacs 环境（如 Spacemacs）提供了可用的安装方法？请提交 PR，以便我们与大家分享！*\n\n## 自托管企业版\n\n如果你正在使用 Windsurf 自托管企业版部署插件，你需要在你的 vim 配置文件中设置 Portal 和 API 的 URL，以便 Windsurf 知道将补全请求发送到哪里。在你的 `~\u002F.emacs.d\u002Finit.el` 文件中添加以下行：\n\n```\n(setq-default codeium-enterprise t)\n(setq-default codeium-portal-url \"\u003CPORTAL URL>\")\n(setq-default codeium-api-url \"\u003CPORTAL URL>\u002F_route\u002Fapi_server\")\n```","# Codeium.el 快速上手指南\n\nCodeium.el 是一款免费、超快且可扩展的 Emacs AI 代码补全工具。它通过本地语言服务器提供智能代码建议，支持与公司模式（company-mode）、Corfu 等前端配合使用。\n\n## 环境准备\n\n在开始之前，请确保您的开发环境满足以下要求：\n\n1.  **Emacs 版本**：安装最新版 Emacs。\n    *   **关键依赖**：Emacs 必须编译时包含 `libxml2` 支持。\n    *   **验证方法**：在 Emacs 中运行 `(libxml-available-p)`，若返回 `t` 则表示支持。\n2.  **补全前端**：安装并配置任意一种文本补全前端，推荐使用：\n    *   [company-mode](https:\u002F\u002Fcompany-mode.github.io\u002F)\n    *   [corfu](https:\u002F\u002Fgithub.com\u002Fminad\u002Fcorfu)\n\n## 安装步骤\n\n您可以选择以下任一方式进行安装：\n\n### 方式一：使用 straight.el (推荐)\n\n```elisp\n(straight-use-package '(codeium :type git :host github :repo \"Exafunction\u002Fcodeium.el\"))\n```\n\n### 方式二：Doom Emacs\n\n在 `packages.el` 中添加：\n```elisp\n(package! codeium :recipe (:host github :repo \"Exafunction\u002Fcodeium.el\"))\n```\n并在 `config.el` 中加入后续的配置代码。\n\n### 方式三：手动安装\n\n1.  克隆仓库：\n    ```bash\n    git clone --depth 1 https:\u002F\u002Fgithub.com\u002FExafunction\u002Fcodeium.el ~\u002F.emacs.d\u002Fcodeium.el\n    ```\n2.  在 `~\u002F.emacs.d\u002Finit.el` 中添加加载路径：\n    ```elisp\n    (add-to-list 'load-path \"~\u002F.emacs.d\u002Fcodeium.el\")\n    ```\n\n## 基本使用\n\n安装完成后，请在您的配置文件（如 `init.el`）中进行如下基础配置以启用功能：\n\n### 1. 基础配置示例\n\n建议使用 `use-package` 管理配置：\n\n```elisp\n(use-package codeium\n    :init\n    ;; 全局启用 Codeium 补全后端\n    (add-to-list 'completion-at-point-functions #'codeium-completion-at-point)\n    \n    :config\n    ;; 禁用弹窗对话框\n    (setq use-dialog-box nil)\n    \n    ;; 可选：在模型栏显示状态\n    (setq codeium-mode-line-enable\n        (lambda (api) (not (memq api '(CancelRequest Heartbeat AcceptCompletion)))))\n    (add-to-list 'mode-line-format '(:eval (car-safe codeium-mode-line)) t))\n```\n\n### 2. 初始化插件\n\n重启 Emacs 或重新加载配置后，运行以下命令完成首次设置（会自动下载本地语言服务器二进制文件）：\n\n```text\nM-x codeium-install\n```\n\n### 3. 身份验证\n\n首次使用时需绑定 API Key。您可以通过以下方式之一进行认证：\n\n*   **交互式认证**：运行 `M-x codeium-auth` 按提示操作。\n*   **自动认证**：将 API Key 添加到 `auth-sources` (例如 `~\u002F.authinfo.gpg`)：\n    ```text\n    machine codeium.com login apikey secret \u003C您的_API_Key>\n    ```\n    或者直接在配置文件中设置（不推荐硬编码密钥）：\n    ```elisp\n    (setq codeium\u002Fmetadata\u002Fapi_key \"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx\")\n    ```\n\n### 4. 开始使用\n\n配置完成后，在编写代码时即可看到 AI 提供的补全建议。\n*   如果使用 **company-mode**，建议配合以下配置以获得最佳体验（仅显示预览或下拉列表）：\n    ```elisp\n    (setq-default\n        company-idle-delay 0.05\n        company-require-match nil\n        company-minimum-prefix-length 0\n        company-frontends '(company-preview-frontend))\n    ```\n\n> **提示**：如需查看诊断信息或当前发送的语言服务器命令，可运行 `M-x codeium-diagnose`。","一位资深后端工程师正在 Emacs 环境中重构一个遗留的 Python 数据处理模块，需要快速编写大量重复的样板代码和复杂的正则表达式。\n\n### 没有 codeium.el 时\n- **频繁切换上下文**：为了确认标准库函数的参数顺序或查找正则写法，不得不频繁切出编辑器去浏览器搜索文档，打断心流。\n- **手写样板代码耗时**：面对重复的 JSON 解析、日志记录或数据清洗逻辑，只能机械地逐行敲击键盘，效率低下且容易出错。\n- **记忆负担重**：在处理不熟悉的第三方库时，需要依靠记忆或手动翻阅源码来猜测 API 名称，导致编码节奏断断续续。\n- **调试成本增加**：由于缺乏实时的语法和逻辑建议，简单的拼写错误或类型不匹配往往要等到运行时报错才能发现。\n\n### 使用 codeium.el 后\n- **智能补全无缝衔接**：codeium.el 直接在 Emacs 缓冲区提供行级甚至函数级的代码建议，无需离开编辑器即可获取准确的 API 用法和正则模板。\n- **自动生成重复逻辑**：只需写下函数名或首行注释，codeium.el 就能自动补全整个数据清洗流程或样板结构，将几分钟的工作缩短至几秒。\n- **实时感知上下文**：基于当前文件内容，codeium.el 能精准预测变量名和库函数，让开发者像拥有“读心术”般流畅编码，彻底释放记忆压力。\n- **错误防患于未然**：在输入过程中即提供符合语法的正确建议，大幅减少了因手误导致的运行时异常，提升了代码的一次性通过率。\n\ncodeium.el 将 Emacs 从纯粹的文本编辑器升级为具备现代 AI 辅助能力的智能开发环境，让老牌用户也能享受极速编码的乐趣。","https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002FExafunction_codeium.el_23a9a507.png","Exafunction","https:\u002F\u002Foss.gittoolsai.com\u002Favatars\u002FExafunction_7eadac2d.png","",null,"hello@exafunction.com","https:\u002F\u002Fexafunction.com","https:\u002F\u002Fgithub.com\u002FExafunction",[83],{"name":84,"color":85,"percentage":86},"Emacs Lisp","#c065db",100,633,32,"2026-03-31T21:34:40","MIT","Linux, macOS, Windows","未说明",{"notes":94,"python":92,"dependencies":95},"该工具是 Emacs 的 AI 代码补全插件。核心要求是 Emacs 必须编译时包含 libxml2 支持（可通过 `(libxml-available-p)` 验证）。它依赖一个专有的语言服务器二进制文件，首次运行时会自动确认并下载。计算任务主要在远程服务器或本地二进制文件中处理，README 未提及本地 GPU、特定内存大小或 Python 环境需求。支持通过 auth-sources 配置 API 密钥以实现自动认证。",[96,97,98],"Emacs (需编译支持 libxml2)","company-mode 或 corfu (推荐的前端插件)","Codeium 专有语言服务器二进制文件 (自动下载)",[15,36],"2026-03-27T02:49:30.150509","2026-04-06T14:10:42.641963",[103,108,113,118,123,128],{"id":104,"question_zh":105,"answer_zh":106,"source_url":107},19271,"Windows 上提示\"Language server port file not found after 60 seconds\"错误如何解决？","该错误通常可以通过以下几种方式解决：\n1. 尝试降级 Windsurf (Codeium) 版本。\n2. 清理扩展使用的本地文件夹后重新更新到最新版本。对于 Windows 用户，可以尝试删除用户目录下的 `.codeium` 文件夹，或者清理 JetBrains 插件目录中相关的 Codeium 文件夹（例如 `AppData\\Roaming\\JetBrains\\IntelliJIdea...\\plugins\\codeium\\...`）。\n3. 如果上述方法无效，手动替换 `language_server_windows_x64.exe` 文件也可能有帮助。","https:\u002F\u002Fgithub.com\u002FExafunction\u002Fcodeium.el\u002Fissues\u002F80",{"id":109,"question_zh":110,"answer_zh":111,"source_url":112},19272,"为什么在某些模式下（如 python-ts-mode）无法看到代码补全建议？","这可能是因为 Codeium 无法识别特定的语言模式（日志中显示 \"Unspecified language received\" 或 \"Unable to resolve enry language\"）。此外，如果用户的配置启用了各种模式行、边距等视觉元素，导致 `(redisplay)` 执行时间超过默认的 1 毫秒等待时间 (`codeium-delay`)，Emacs 可能无法及时读取网络响应。\n解决方案：\n1. 切换到标准模式（如从 `python-ts-mode` 换回 `python-mode`）测试是否恢复正常。\n2. 增加 `codeium-delay` 的值，以允许更长的等待时间来接收响应。","https:\u002F\u002Fgithub.com\u002FExafunction\u002Fcodeium.el\u002Fissues\u002F13",{"id":114,"question_zh":115,"answer_zh":116,"source_url":117},19273,"如何在 Spacemacs 中与 Corfu 和 Cape 集成使用 Codeium？","目前 Codeium 官方主要提供了与 `company` 后端配合使用的简要说明，对于 `Corfu` 和 `Cape` 的直接集成支持文档较少。虽然可以通过 `completion-at-point-functions` 进行基本配置，但如果在使用 Corfu\u002FCape 时遇到问题（例如仅在注释行显示建议），可能需要进一步调试配置或等待官方更新 README 以提供更详细的集成指南。建议检查是否已正确添加 `codeium-completion-at-point` 到完成函数列表中，并考虑使用 `cape-super-capf` 来组合多个完成后端。","https:\u002F\u002Fgithub.com\u002FExafunction\u002Fcodeium.el\u002Fissues\u002F82",{"id":119,"question_zh":120,"answer_zh":121,"source_url":122},19274,"在 Guix 或 Nix 等非标准 Linux 发行版上，如何运行因缺少库文件而无法执行的 codeium_language_server 二进制文件？","可以通过自定义 `codeium-command` 变量来解决。你需要编写一个函数来设置管理器目录并返回正确的启动命令。示例代码如下：\n\n```elisp\n(setq my-codeium-directory (file-truename \"~\u002F.emacs.d\u002Fcodeium\u002Fmanager_directory\"))\n\n(defun my-codeium-command (_api state)\n    ;; 让 codeium.el 知道目录位置\n    (setf (codeium-state-manager-directory state) my-codeium-directory)\n    ;; 重建目录以确保干净\n    (delete-directory my-codeium-directory 'recursive)\n    (make-directory my-codeium-directory t)\n    ;; 返回包含自定义 shell 命令的列表（例如使用 guix shell）\n    `(,\"guix\" \"shell\" \"-CNF\" \"nss-certs\" \"--\" ,codeium-command-executable\n         \"--api_server_host\" \"server.codeium.com\"\n         \"--api_server_port\" \"443\" \n         \"--manager_dir\" ,my-codeium-directory))\n\n(setq codeium-command #'my-codeium-command)\n```\n这样可以在包含必要库的环境中启动语言服务器。","https:\u002F\u002Fgithub.com\u002FExafunction\u002Fcodeium.el\u002Fissues\u002F16",{"id":124,"question_zh":125,"answer_zh":126,"source_url":127},19275,"Codeium 在 Emacs 中反应非常慢怎么办？","补全速度慢可能与硬件性能或默认配置有关。有用户反馈通过“暴力”调整配置（bruteforced config，具体指调整超时、延迟或启动参数等未详细记录的尝试）可以改善情况，尽管速度可能仍不如 IDE 插件快。建议检查网络连接，尝试调整 `codeium-delay` 等超时设置，或者确保本地语言服务器进程正常启动且未被系统资源限制阻塞。","https:\u002F\u002Fgithub.com\u002FExafunction\u002Fcodeium.el\u002Fissues\u002F31",{"id":129,"question_zh":130,"answer_zh":131,"source_url":132},19276,"Doom Emacs 用户如何正确安装和配置 Codeium？","在 Doom Emacs 中，需要在 `packages.el` 中添加 recipe：`(package! codeium :recipe (:host github :repo \"Exafunction\u002Fcodeium.el\"))`。然后在 `config.el` 中使用 `use-package` 进行配置。注意确保 `codeium.el` 文件在加载路径上，或者正确使用 straight.el 拉取。配置时需设置 API Key（如果不使用 customize 保存），并根据需要启用模型线状态显示。如果遇到无法看到建议的问题，请检查日志缓冲區 `*codeium-log*` 以排查语言识别或连接问题。","https:\u002F\u002Fgithub.com\u002FExafunction\u002Fcodeium.el\u002Fissues\u002F34",[]]