TabbyML/tabby

GitHub: TabbyML/tabby

开源的自托管 AI 编程助手,提供代码补全、聊天辅助和仓库级上下文理解功能,是 GitHub Copilot 的本地化替代方案。

Stars: 33211 | Forks: 1703

# 🐾 Tabby [📚 文档](https://tabby.tabbyml.com/docs/welcome/) • [💬 Slack](https://links.tabbyml.com/join-slack) • [🗺️ 路线图](https://tabby.tabbyml.com/docs/roadmap/) [![最新版本](https://shields.io/github/v/release/TabbyML/tabby)](https://github.com/TabbyML/tabby/releases/latest) [![欢迎 PR](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://makeapullrequest.com) [![Docker 拉取次数](https://img.shields.io/docker/pulls/tabbyml/tabby)](https://hub.docker.com/r/tabbyml/tabby) [![codecov](https://codecov.io/gh/TabbyML/tabby/graph/badge.svg?token=WYVVH8MKK3)](https://codecov.io/gh/TabbyML/tabby) [English](/README.md) | [简体中文](/README-zh.md) | [日本語](/README-ja.md)
Tabby 是一个自托管的 AI 编程助手,是 GitHub Copilot 的开源、本地部署替代方案。它拥有以下主要特性: * 独立自包含,无需 DBMS 或云服务。 * OpenAPI 接口,易于与现有基础设施(如 Cloud IDE)集成。 * 支持消费级 GPU。

Open Live Demo

Demo

## 🔥 最新动态 * **12/12/2025** 通过将 GitHub Issues 连接到 [Pochi](https://github.com/TabbyML/pochi) 任务来实现功能,并可直接从侧边栏创建包含 CI/Lint/测试结果细分的 PR [vscode@0.20.0](https://github.com/TabbyML/pochi/releases/tag/vscode%400.20.0)。 * **07/02/2025** [v0.30](https://github.com/TabbyML/tabby/releases/tag/v0.30.0) 支持索引 GitLab Merge Request 作为上下文! * **05/25/2025** 💡有意加入 [Agent](https://links.tabbyml.com/pochi-github-readme) 私有预览版?在 [X](https://x.com/getpochi) 上私信我们以获得优先候补资格!🎫 * **05/20/2025** 在 [v0.29](https://github.com/TabbyML/tabby/releases/tag/v0.29.0) 中通过 REST API 使用您自己的文档📃来增强 Tabby! 🎉 * **05/01/2025** [v0.28](https://github.com/TabbyML/tabby/releases/tag/v0.28.0) 将 Answer Engine 消息转化为持久化、可共享的 Pages * **03/31/2025** [v0.27](https://github.com/TabbyML/tabby/releases/tag/v0.27.0) 发布,带来了更丰富的聊天侧边栏 `@` 菜单。
已归档 * **02/05/2025** Tabby [v0.24.0](https://github.com/TabbyML/tabby/releases/tag/v0.24.0) 新增 LDAP 认证和更完善的后台任务通知功能!✨ * **02/04/2025** [VSCode 1.20.0](https://marketplace.visualstudio.com/items/TabbyML.vscode-tabby/changelog) 升级!支持 @-mention 文件将其添加为聊天上下文,以及通过新的右键选项进行内联编辑! * **01/10/2025** Tabby [v0.23.0](https://github.com/TabbyML/tabby/releases/tag/v0.23.0) 带来了增强的代码浏览器体验和聊天侧边栏改进! * **12/24/2024** Tabby [v0.22.0](https://github.com/TabbyML/tabby/releases/tag/v0.22.0) 引入 **通知框**! * **12/06/2024** Tabby [v0.21.0](https://github.com/TabbyML/tabby/releases/tag/v0.21.0) 新增 Llamafile 部署集成并增强了 Answer Engine 用户体验!🚀 * **11/10/2024** Tabby [v0.20.0](https://github.com/TabbyML/tabby/releases/tag/v0.20.0) 支持 Answer Engine 在不同的后端聊天模型之间切换! * **10/30/2024** Tabby [v0.19.0](https://github.com/TabbyML/tabby/releases/tag/v0.19.0) 在主页显示最近共享的线程,以提高其可发现性。 * **07/09/2024** 🎉宣布 [Tabby 集成 Codestral](https://tabby.tabbyml.com/blog/2024/07/09/tabby-codestral/)! * **07/05/2024** Tabby [v0.13.0](https://github.com/TabbyML/tabby/releases/tag/v0.13.0) 推出 ***Answer Engine***,这是一个面向内部工程团队的核心知识引擎。它与开发团队的内部数据无缝集成,提供可靠且精准的回答,从而赋能开发者。 * **06/13/2024** [VSCode 1.7](https://marketplace.visualstudio.com/items/TabbyML.vscode-tabby/changelog) 标志着一个重要的里程碑,带来了贯穿编程体验的全方位 Chat 体验。快来体验最新的 **侧边栏聊天** 和 **通过聊天命令进行编辑** 功能! * **06/10/2024** 最新 📃博文发布了关于 Tabby [增强代码上下文理解](https://tabby.tabbyml.com/blog/2024/06/11/rank-fusion-in-tabby-code-completion/) 的内容! * **06/06/2024** Tabby [v0.12.0](https://github.com/TabbyML/tabby/releases/tag/v0.12.0) 版本带来了 🔗**无缝集成**(Gitlab SSO,自托管 GitHub/GitLab 等),⚙️**灵活配置**(HTTP API 集成)以及 🌐**扩展功能**(Code Browser 中的 repo-context)! * **05/22/2024** Tabby [VSCode 1.6](https://marketplace.visualstudio.com/items?itemName=TabbyML.vscode-tabby) 为内联补全带来了 **多种选择**,以及 **自动生成的提交信息**🐱💻! * **05/11/2024** [v0.11.0](https://github.com/TabbyML/tabby/releases/tag/v0.11.0) 带来了重大的企业级升级,包括 📊**存储使用量**统计,🔗**GitHub & GitLab** 集成,📋**活动**页面,以及期待已久的 🤖**Ask Tabby** 功能! * **04/22/2024** [v0.10.0](https://github.com/TabbyML/tabby/releases/tag/v0.10.0) 发布,推出了最新的 **报告** 标签页,提供团队维度的 Tabby 使用分析。 * **04/19/2024** 📣 Tabby 现在结合了[本地相关代码片段](https://github.com/TabbyML/tabby/pull/1844)(来自本地 LSP 的声明,以及最近修改的代码) 用于代码补全! * **04/17/2024** CodeGemma 和 CodeQwen 模型系列现已被添加到 [官方注册表](https://tabby.tabbyml.com/docs/models/)! * **03/20/2024** [v0.9](https://github.com/TabbyML/tabby/releases/tag/v0.9.1) 发布,主打功能完备的管理界面 UI。 * **12/23/2023** 结合 [SkyPilot](https://skypilot.readthedocs.io/en/latest/serving/sky-serve.html) 的 [SkyServe](https://tabby.tabbyml.com/docs/installation/skypilot/),可以在任何云端无缝部署 Tabby 🛫。 * **12/15/2023** [v0.7.0](https://github.com/TabbyML/tabby/releases/tag/v0.7.0) 发布,新增团队管理和安全访问功能! * **10/15/2023** 基于 RAG 的代码补全已在 [v0.3.0](https://github.com/TabbyML/tabby/releases/tag/v0.3.0) 中详细启用🎉!请查看 [博文](https://tabby.tabbyml.com/blog/2023/10/16/repository-context-for-code-completion/),了解 Tabby 如何利用仓库级上下文变得更智能! * **11/27/2023** [v0.6.0](https://github.com/TabbyML/tabby/releases/tag/v0.6.0) 发布! * **11/09/2023** [v0.5.5](https://github.com/TabbyML/tabby/releases/tag/v0.5.5) 发布!重新设计了 UI 并提升了性能。 * **10/24/2023** ⛳️ Tabby IDE 插件在 [VSCode/Vim/IntelliJ](https://tabby.tabbyml.com/docs/extensions) 上迎来重大更新! * **10/04/2023** 查看 [模型目录](https://tabby.tabbyml.com/docs/models/) 了解 Tabby 支持的最新模型。 * **09/18/2023** Apple M1/M2 Metal 推理支持已在 [v0.1.1](https://github.com/TabbyML/tabby/releases/tag/v0.1.1) 中上线! * **08/31/2023** Tabby 的首个稳定版本 [v0.0.1](https://github.com/TabbyML/tabby/releases/tag/v0.0.1) 🥳。 * **08/28/2023** 实验性支持 [CodeLlama 7B](https://github.com/TabbyML/tabby/issues/370)。 * **08/24/2023** Tabby 现已上线 [JetBrains Marketplace](https://plugins.jetbrains.com/plugin/22379-tabby)!
## 👋 快速开始 您可以在 [这里](https://tabby.tabbyml.com/docs/getting-started) 找到我们的文档。 - 📚 [安装](https://tabby.tabbyml.com/docs/installation/) - 💻 [IDE/编辑器扩展](https://tabby.tabbyml.com/docs/extensions/) - ⚙️ [配置](https://tabby.tabbyml.com/docs/configuration) ### 1 分钟运行 Tabby 启动 Tabby 服务器的最简单方法是使用以下 Docker 命令: ``` docker run -it \ --gpus all -p 8080:8080 -v $HOME/.tabby:/data \ tabbyml/tabby \ serve --model StarCoder-1B --device cuda --chat-model Qwen2-1.5B-Instruct ``` 有关更多选项(例如推理类型、并行度),请参阅 [文档页面](https://tabbyml.github.io/tabby)。 ### 获取代码 ``` git clone --recurse-submodules https://github.com/TabbyML/tabby cd tabby ``` 如果您已经克隆了仓库,可以运行 `git submodule update --recursive --init` 命令来获取所有子模块。 ### 构建 1. 按照此 [教程](https://www.rust-lang.org/learn/get-started) 设置 Rust 环境。 2. 安装所需的依赖项: ``` # For MacOS brew install protobuf # For Ubuntu / Debian apt install protobuf-compiler libopenblas-dev ``` 3. 安装实用工具: ``` # For Ubuntu apt install make sqlite3 graphviz ``` 4. 现在,您可以通过运行命令 `cargo build` 来构建 Tabby。 ### 开始 Hacking! ... 别忘了提交一个 [Pull Request](https://github.com/TabbyML/tabby/compare) ### 🔆 活跃度 ![Git Repository Activity](https://repobeats.axiom.co/api/embed/e4ef0fbd12e586ef9ea7d72d1fb4f5c5b88d78d5.svg "Repobeats analytics image") ### 🌟 Star 历史 [![Star History Chart](https://api.star-history.com/svg?repos=tabbyml/tabby&type=Date)](https://star-history.com/#tabbyml/tabby&Date)
标签:AI编程助手, C2, Cloud IDE, DLL 劫持, Docker, GitHub Copilot替代品, GitLab集成, IDE插件, LLM, OpenAPI, SSH爆破, Unmanaged PE, 代码生成, 代码索引, 代码补全, 企业级安全, 可视化界面, 大语言模型, 威胁情报, 安全防御评估, 开发者工具, 开源, 服务枚举, 本地模型, 消费级GPU, 渗透测试工具, 私有化部署, 自动化编程, 自托管, 请求拦截, 通知系统, 防御规避