Origin 代码托管
2026年8月17日 · 更新日志
Cursor 现在可以托管你的代码了。
Origin 今天开始在所有付费套餐中以早期测试版形式推出。我们从基础功能入手,专为智能体规模而设计:代码仓库、拉取请求、代码浏览和 GitHub 同步。智能体原生功能即将上线。
Origin 代码仓库
新的 Codebase 标签页是 Origin 代码仓库的所在地。
点击 +New 创建新仓库并为其命名。完成后,页面会显示如何安装 CLI,并提供克隆仓库或推送本地项目的命令。推送后,你的代码就托管在 Origin 上了。
创建第一个仓库时,为你的代码库命名。该名称会成为每个仓库 URL 的一部分:cursor.com/codebase/acme-corp。
导入你的 GitHub 仓库
你的 GitHub 仓库可以与 Cursor 托管的仓库并存。将 GitHub 连接到 Cursor,选择你的组织,就能看到可以同步的仓库。选择一个,Cursor 就会将其拉取进来。你可以自行选择同步内容,也可以随时断开仓库连接。任何对已同步仓库拥有读写权限的人都可以在 Cursor 中查看它。
同步的仓库会实时更新。可以从 Origin 中的副本进行浏览、搜索和拉取。推送仍会发送到 GitHub,对于任何在 GitHub 上启动的内容,GitHub 仍然是唯一事实来源。每个仓库名称旁的图标会标明哪些由 Cursor 托管,哪些来自 GitHub。
拉取请求
每个仓库都有拉取请求。打开一个即可查看时间线、提交、检查和文件变更。审阅差异、发表评论并合并。
同步仓库上的拉取请求双向同步:在 Cursor 中评论会发布到 GitHub,在 GitHub 上回复或回应会在几秒内显示在 Cursor 中。在 GitHub 上有分配给你的审阅任务?直接在 Cursor 中审阅并合并。
每个仓库中的智能体
你的代码、PR 和智能体现在都在同一个地方。向 Cursor 询问你正在浏览的代码相关问题。它可以回答、做出修改、更新 PR 或推送分支。
Cursor 仓库的应用扩展
我们正在构建一个应用生态系统,让你的整个技术栈与 Origin 无缝协作。与 Vercel、Depot 和 Buildkite 的集成已经可用,更多集成即将推出。
从仓库的 Apps 标签页连接 Vercel 后,每个 PR 都会获得一个预览部署环境,你可以在其中进行测试和发表评论。合并后,它就会发布到生产环境。对于 CI,可以连接 Depot 或 Buildkite。两者都能运行你现有的 GitHub Actions 工作流,而 Buildkite 还能运行其原生流水线。

设置
每个仓库都有设置。可以查看 GitHub 仓库的同步状态、管理谁有访问权限,以及查看已连接了哪些应用。

Origin 从今天开始向所有付费计划用户推出早期测试版,但管理员选择退出的企业组织除外。为你的代码库命名,并创建你的第一个仓库。
更多信息请参阅我们的文档,或今天就行动起来。
Origin Code Hosting
Aug 17, 2026 · Changelog
Cursor can now host your code.
Origin begins rolling out today in early beta on all paid plans. We're starting with the essentials, designed for agent scale: repos, pull requests, code browsing, and GitHub sync. Agent-native features ship soon.
Origin Repos
The new Codebase tab is home for Origin repos.
Click +New to create a new repo and name it. Once you do, a page shows you how to install the CLI, with commands for how to clone a repo or push a local project. Push, and your code is hosted on Origin.
Name your codebase when you create your first repo. That name becomes part of every repo's URL: cursor.com/codebase/acme-corp.
Bring your GitHub repos
Your GitHub repos can sit alongside the ones Cursor hosts. Connect GitHub to Cursor, pick your org, and you'll see the repos you can sync. Select one and Cursor pulls it in. You choose what gets synced and can disconnect a repo at any time. Anyone with read or write access to a synced repo can view it in Cursor too.
Synced repos update in real time. Browse, search, and pull from the copy in Origin. Pushes keep going to GitHub, which stays the source of truth for anything started there. Icons next to each repo name tell you which ones Cursor hosts and which came from GitHub.
Pull requests
Every repo has pull requests. Open one to see the timeline, commits, checks, and files changed. Review the diff, leave comments, and merge.
Pull requests on synced repos sync both ways: comment in Cursor and it posts to GitHub, react or reply on GitHub and it shows up in Cursor within seconds. Got a review assigned to you on GitHub? Review and merge it from Cursor.
Agents in every repo
Your code, PRs, and agents are now in the same place. Ask Cursor questions about code you're browsing. It can answer, make changes, update PRs, or push a branch.
App extensions for Cursor repos
We're building an app ecosystem so your whole stack works seamlessly with Origin. Integrations with Vercel, Depot, and Buildkite are already available, with more coming soon.
Connect Vercel from a repo's Apps tab and every PR gets a preview deployment where you can test and make comments. Merge, and it ships to production. For CI, connect Depot or Buildkite. Both run your existing GitHub Actions workflows and Buildkite also runs its native pipelines.

Settings
Every repo has settings. Check sync status for GitHub repos, manage who has access, and see which apps are connected.

Origin is rolling out in early beta to all paid plan users starting today, except enterprise orgs whose admins opt out. Name your codebase and create your first repo.
Learn more in our docs or today.