Connect Bitbucket Cloud workspaces to Cake Agents so agents can clone repositories and push commits as each user, with their own Bitbucket access.
Administrators connect one or more Bitbucket Cloud workspaces to Cake Agents. After that, each user connects their own Bitbucket account, and agents in their sessions clone and push to bitbucket.org as that user.
The Bitbucket integration is in beta.
What this enables
Once a workspace and a user’s account are connected, agents in that user’s sessions can:
clone repositories in the connected workspace over HTTPS
push commits to those repositories
Bitbucket enforces the connecting user’s own repository permissions. Agents use the Bitbucket account of the last user who sent a message to the session.Pull requests and pipelines go through Atlassian’s MCP server, not through this integration. Connecting Bitbucket adds Atlassian’s MCP server to Settings → Organization → MCP Connectors under the name atlassian if it isn’t there yet. See Set up Jira for how the Atlassian MCP server works and the domain authorization it needs.
Requirements
You need the admin role in Cake Agents.
Your Cake Agents instance must be registered with Cake Console. Instances set up through Getting Started with the Console are registered when you finish setup. If the instance isn’t registered, the Bitbucket card shows “Bitbucket needs this instance to be registered with Cake Console, which happens when setup is finalized through Cake Console.”
You must be an admin of the Bitbucket Cloud workspace you connect.
Connect a workspace
In Cake Agents, go to Settings → Organization → Integrations.
Next to Bitbucket, select Connect Bitbucket. Cake Console opens in a new tab.
On the Connect a Bitbucket workspace page, check that the instance URL is yours, then continue.
Sign in to Bitbucket as a workspace admin.
Install the Cake Agents app in the workspace you want to connect.
If you already installed the Cake Agents app on one or more workspaces, Cake Console shows Choose a Bitbucket workspace instead. Select Connect followed by the workspace slug, or select Install on another workspace.Return to the Cake Agents tab. The Bitbucket card checks for the new workspace while its dialog is open and lists it once the install finishes. Each connected workspace shows its slug and a link to it on Bitbucket.Each connect links one workspace. Repeat the steps to connect more.
Only continue on the Cake Console page if you started the connection yourself. If someone sent you the link, cancel.
Connect your Bitbucket account
Each user connects their own account after an admin connects at least one workspace.
In the top right of Cake Agents, click your name → User settings.
Open the Git tab. Under Bitbucket, select Connect Bitbucket account.
In the new tab, confirm the instance URL on the Connect your Bitbucket account page, then sign in to Bitbucket.
After you connect, Cake Agents may send you on to sign in to Atlassian’s MCP server, so agents can open pull requests as you.Your Bitbucket connection lasts 90 days and renews each time an agent uses it, for up to one year from when you signed in. After that, connect your account again.To disconnect, select Disconnect under Bitbucket in the Git tab.
Remove a workspace
Select Disconnect next to a workspace on the Bitbucket card to unlink it from this instance. The Cake Agents app stays installed in the workspace. To end the app’s access entirely, uninstall it from the workspace in Bitbucket.
Troubleshooting
”An admin must connect a Bitbucket workspace first”
No workspace is connected to this instance yet. Ask an admin to connect a workspace.
The Cake Console page says the link is invalid or expired
Each connect link works once and expires after about ten minutes. Start again from Cake Agents settings.
Agents can’t clone or push
Check that the repository belongs to a connected workspace and that your own Bitbucket account has access to it. If your connection expired, connect your Bitbucket account again.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Cake Docs","colors":{"primary":"#2d8f39","light":"#a5ffb1","dark":"#0f711b"},"logo":"https://www.cake.ai/hubfs/Logos/cake-logo-dark.svg","favicon":"https://www.cake.ai/hubfs/favicon.png","appearance":{"default":"light","strict":true},"fonts":{"heading":{"family":"ABC Monument Grotesk","weight":500,"source":"https://www.cake.ai/hubfs/ABCMonumentGrotesk-Medium.woff","format":"woff"},"body":{"family":"Inter"}},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cake-57b50798","hasAudioNarration":false,"actualSubdomain":"cake-57b50798","customDomains":["docs.cake.ai"],"gitSource":{"type":"github","owner":"kflow-ai","repo":"public-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":"","_id":"6b10e3e89ffae5051c41288a"},"feedback":{"agentFeedback":false,"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b12e1403b98091e75369e3a","clientVersion":"0.0.4453","searchFilterCounts":[{"language":"default","tag":"Agents","count":36},{"language":"default","tag":"Administration","count":18},{"language":"default","tag":"Users","count":18},{"language":"default","tag":"Platform","count":11},{"language":"default","tag":"Components","count":6},{"language":"default","tag":"Overview","count":3},{"language":"default","tag":"Getting Started","count":2}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"auth-vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"admin/bitbucket-setup","slug":"/admin/bitbucket-setup","pageMetadata":{"title":"Set up Bitbucket","description":"Connect Bitbucket Cloud workspaces to Cake Agents so agents can clone repositories and push commits as each user, with their own Bitbucket access.","href":"/admin/bitbucket-setup"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Connect Bitbucket Cloud workspaces to Cake Agents so agents can clone repositories and push commits as each user, with their own Bitbucket access.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,ol:`ol`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Note,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Administrators connect one or more Bitbucket Cloud workspaces to Cake Agents. After that, each user connects their own Bitbucket account, and agents in their sessions clone and push to `,_jsx(_components.code,{children:`bitbucket.org`}),` as that user.`]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`The Bitbucket integration is in beta.`})}),`\n`,_jsx(Heading,{level:`2`,id:`what-this-enables`,children:`What this enables`}),`\n`,_jsx(_components.p,{children:`Once a workspace and a user’s account are connected, agents in that user’s sessions can:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:`clone repositories in the connected workspace over HTTPS`}),`\n`,_jsx(_components.li,{children:`push commits to those repositories`}),`\n`]}),`\n`,_jsx(_components.p,{children:`Bitbucket enforces the connecting user’s own repository permissions. Agents use the Bitbucket account of the last user who sent a message to the session.`}),`\n`,_jsxs(_components.p,{children:[`Pull requests and pipelines go through Atlassian’s MCP server, not through this integration. Connecting Bitbucket adds Atlassian’s MCP server to `,_jsx(_components.code,{children:`Settings → Organization → MCP Connectors`}),` under the name `,_jsx(_components.code,{children:`atlassian`}),` if it isn’t there yet. See `,_jsx(_components.a,{href:`/admin/jira-setup`,children:`Set up Jira`}),` for how the Atlassian MCP server works and the domain authorization it needs.`]}),`\n`,_jsx(Heading,{level:`2`,id:`requirements`,children:`Requirements`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`You need the `,_jsx(_components.strong,{children:`admin`}),` role in Cake Agents.`]}),`\n`,_jsxs(_components.li,{children:[`Your Cake Agents instance must be registered with Cake Console. Instances set up through `,_jsx(_components.a,{href:`/admin/getting-started-console`,children:`Getting Started with the Console`}),` are registered when you finish setup. If the instance isn’t registered, the Bitbucket card shows “Bitbucket needs this instance to be registered with Cake Console, which happens when setup is finalized through Cake Console.”`]}),`\n`,_jsx(_components.li,{children:`You must be an admin of the Bitbucket Cloud workspace you connect.`}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`connect-a-workspace`,children:`Connect a workspace`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`In Cake Agents, go to `,_jsx(_components.code,{children:`Settings → Organization → Integrations`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Next to `,_jsx(_components.strong,{children:`Bitbucket`}),`, select `,_jsx(_components.strong,{children:`Connect Bitbucket`}),`. Cake Console opens in a new tab.`]}),`\n`,_jsxs(_components.li,{children:[`On the `,_jsx(_components.strong,{children:`Connect a Bitbucket workspace`}),` page, check that the instance URL is yours, then continue.`]}),`\n`,_jsx(_components.li,{children:`Sign in to Bitbucket as a workspace admin.`}),`\n`,_jsx(_components.li,{children:`Install the Cake Agents app in the workspace you want to connect.`}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`If you already installed the Cake Agents app on one or more workspaces, Cake Console shows `,_jsx(_components.strong,{children:`Choose a Bitbucket workspace`}),` instead. Select `,_jsx(_components.strong,{children:`Connect`}),` followed by the workspace slug, or select `,_jsx(_components.strong,{children:`Install on another workspace`}),`.`]}),`\n`,_jsx(_components.p,{children:`Return to the Cake Agents tab. The Bitbucket card checks for the new workspace while its dialog is open and lists it once the install finishes. Each connected workspace shows its slug and a link to it on Bitbucket.`}),`\n`,_jsx(_components.p,{children:`Each connect links one workspace. Repeat the steps to connect more.`}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Only continue on the Cake Console page if you started the connection yourself. If someone sent you the link, cancel.`})}),`\n`,_jsx(Heading,{level:`2`,id:`connect-your-bitbucket-account`,children:`Connect your Bitbucket account`}),`\n`,_jsx(_components.p,{children:`Each user connects their own account after an admin connects at least one workspace.`}),`\n`,_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`In the top right of Cake Agents, click your name → `,_jsx(_components.strong,{children:`User settings`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Open the `,_jsx(_components.strong,{children:`Git`}),` tab. Under `,_jsx(_components.strong,{children:`Bitbucket`}),`, select `,_jsx(_components.strong,{children:`Connect Bitbucket account`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`In the new tab, confirm the instance URL on the `,_jsx(_components.strong,{children:`Connect your Bitbucket account`}),` page, then sign in to Bitbucket.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`After you connect, Cake Agents may send you on to sign in to Atlassian’s MCP server, so agents can open pull requests as you.`}),`\n`,_jsx(_components.p,{children:`Your Bitbucket connection lasts 90 days and renews each time an agent uses it, for up to one year from when you signed in. After that, connect your account again.`}),`\n`,_jsxs(_components.p,{children:[`To disconnect, select `,_jsx(_components.strong,{children:`Disconnect`}),` under `,_jsx(_components.strong,{children:`Bitbucket`}),` in the `,_jsx(_components.strong,{children:`Git`}),` tab.`]}),`\n`,_jsx(Heading,{level:`2`,id:`remove-a-workspace`,children:`Remove a workspace`}),`\n`,_jsxs(_components.p,{children:[`Select `,_jsx(_components.strong,{children:`Disconnect`}),` next to a workspace on the Bitbucket card to unlink it from this instance. The Cake Agents app stays installed in the workspace. To end the app’s access entirely, uninstall it from the workspace in Bitbucket.`]}),`\n`,_jsx(Heading,{level:`2`,id:`troubleshooting`,children:`Troubleshooting`}),`\n`,_jsx(Heading,{level:`3`,id:`”an-admin-must-connect-a-bitbucket-workspace-first”`,children:`”An admin must connect a Bitbucket workspace first”`}),`\n`,_jsxs(_components.p,{children:[`No workspace is connected to this instance yet. Ask an admin to `,_jsx(_components.a,{href:`#connect-a-workspace`,children:`connect a workspace`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`the-cake-console-page-says-the-link-is-invalid-or-expired`,children:`The Cake Console page says the link is invalid or expired`}),`\n`,_jsx(_components.p,{children:`Each connect link works once and expires after about ten minutes. Start again from Cake Agents settings.`}),`\n`,_jsx(Heading,{level:`3`,id:`agents-can’t-clone-or-push`,children:`Agents can’t clone or push`}),`\n`,_jsx(_components.p,{children:`Check that the repository belongs to a connected workspace and that your own Bitbucket account has access to it. If your connection expired, connect your Bitbucket account again.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Set up Bitbucket","description":"Connect Bitbucket Cloud workspaces to Cake Agents so agents can clone repositories and push commits as each user, with their own Bitbucket access.","href":"/admin/bitbucket-setup"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"What this enables","slug":"what-this-enables","depth":2,"children":[]},{"title":"Requirements","slug":"requirements","depth":2,"children":[]},{"title":"Connect a workspace","slug":"connect-a-workspace","depth":2,"children":[]},{"title":"Connect your Bitbucket account","slug":"connect-your-bitbucket-account","depth":2,"children":[]},{"title":"Remove a workspace","slug":"remove-a-workspace","depth":2,"children":[]},{"title":"Troubleshooting","slug":"troubleshooting","depth":2,"children":[{"title":"”An admin must connect a Bitbucket workspace first”","slug":"”an-admin-must-connect-a-bitbucket-workspace-first”","depth":3,"children":[]},{"title":"The Cake Console page says the link is invalid or expired","slug":"the-cake-console-page-says-the-link-is-invalid-or-expired","depth":3,"children":[]},{"title":"Agents can’t clone or push","slug":"agents-can’t-clone-or-push","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"cake-57b50798","siteName":"Cake Docs","title":"Set up Bitbucket - Cake Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-12-04T15:50:02.513Z","originalFileLocation":"admin/bitbucket-setup.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=\"light\";if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Connect Bitbucket Cloud workspaces to Cake Agents so agents can clone repositories and push commits as each user, with their own Bitbucket access.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Cake Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"https://www.cake.ai/hubfs/favicon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"https://www.cake.ai/hubfs/favicon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"https://www.cake.ai/hubfs/favicon.png\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/png\" href=\"https://www.cake.ai/hubfs/favicon.png\">\u003cmeta data-mint-head property=\"og:title\" content=\"Set up Bitbucket - Cake Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Connect Bitbucket Cloud workspaces to Cake Agents so agents can clone repositories and push commits as each user, with their own Bitbucket access.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Cake Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.cake.ai/admin/bitbucket-setup\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cake-57b50798.mintlify.site/_mintlify/api/og/v2?division=Administration\u0026amp;title=Set+up+Bitbucket\u0026amp;description=Connect+Bitbucket+Cloud+workspaces+to+Cake+Agents+so+agents+can+clone+repositories+and+push+commits+as+each+user%2C+with+their+own+Bitbucket+access.\u0026amp;theme=0796e70d664a73c1a70653af\u0026amp;signature=b9136d6faf28cfeb6fdfe1592d2d7924c84d8ccc52f1036d1127c7023d7fe4c1\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Set up Bitbucket - Cake Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Connect Bitbucket Cloud workspaces to Cake Agents so agents can clone repositories and push commits as each user, with their own Bitbucket access.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cake-57b50798.mintlify.site/_mintlify/api/og/v2?division=Administration\u0026amp;title=Set+up+Bitbucket\u0026amp;description=Connect+Bitbucket+Cloud+workspaces+to+Cake+Agents+so+agents+can+clone+repositories+and+push+commits+as+each+user%2C+with+their+own+Bitbucket+access.\u0026amp;theme=0796e70d664a73c1a70653af\u0026amp;signature=b9136d6faf28cfeb6fdfe1592d2d7924c84d8ccc52f1036d1127c7023d7fe4c1\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"https://mintlify.s3.us-west-1.amazonaws.com/cake-57b50798/_generated/favicon/browserconfig.xml?v=3\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Cake Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#2d8f39\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.cake.ai/admin/bitbucket-setup\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/admin/bitbucket-setup.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.cake.ai/#organization\",\"name\":\"Cake Docs\",\"url\":\"https://docs.cake.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://www.cake.ai/hubfs/Logos/cake-logo-dark.svg\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.cake.ai#website\",\"name\":\"Cake Docs\",\"url\":\"https://docs.cake.ai\",\"publisher\":{\"@id\":\"https://docs.cake.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.cake.ai/admin/bitbucket-setup#webpage\",\"url\":\"https://docs.cake.ai/admin/bitbucket-setup\",\"name\":\"Set up Bitbucket\",\"description\":\"Connect Bitbucket Cloud workspaces to Cake Agents so agents can clone repositories and push commits as each user, with their own Bitbucket access.\",\"dateModified\":\"2026-12-04T15:50:02.513Z\",\"isPartOf\":{\"@id\":\"https://docs.cake.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.cake.ai/admin/bitbucket-setup#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.cake.ai/admin/bitbucket-setup#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Administration\",\"item\":\"https://docs.cake.ai/admin/aws-storage\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Set up Bitbucket\",\"item\":\"https://docs.cake.ai/admin/bitbucket-setup\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.cake.ai/admin/bitbucket-setup#article\",\"headline\":\"Set up Bitbucket\",\"name\":\"Set up Bitbucket\",\"description\":\"Connect Bitbucket Cloud workspaces to Cake Agents so agents can clone repositories and push commits as each user, with their own Bitbucket access.\",\"url\":\"https://docs.cake.ai/admin/bitbucket-setup\",\"mainEntityOfPage\":{\"@id\":\"https://docs.cake.ai/admin/bitbucket-setup#webpage\"},\"dateModified\":\"2026-12-04T15:50:02.513Z\",\"publisher\":{\"@id\":\"https://docs.cake.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.cake.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Cake Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Cake Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/admin/bitbucket-setup.md","siteName":"Cake Docs","nav":{"global":null,"tabs":[{"tab":"Agents","groups":[{"group":"Overview","pages":[{"title":"Cake Agents","href":""},{"title":"Core Concepts","href":"/core-concepts"}]},{"group":"Getting Started","pages":[{"title":"Getting Started with the Console","href":"/admin/getting-started-console"},{"title":"Getting Started with Kubernetes","href":"/admin/getting-started-kubernetes"}]},{"group":"Administration","pages":[{"title":"S3 storage for archived sessions","description":"Configure an S3-compatible bucket so Cake Agents can archive session data when users end sessions.","href":"/admin/aws-storage"},{"title":"Set up Bitbucket","href":"/admin/bitbucket-setup"},{"title":"Run Docker in sessions","description":"Turn on the Docker setting so Cake Agents starts a rootless Docker daemon in each session pod and agents can build and run containers.","href":"/admin/docker"},{"title":"Set Up GitHub","href":"/admin/github-setup"},{"title":"Set up Google Chat","href":"/admin/google-chat-setup"},{"title":"Impersonate users to troubleshoot their Cake Agents view","href":"/admin/impersonate-users"},{"title":"Set up Jira","href":"/admin/jira-setup"},{"title":"Set up Linear","href":"/admin/linear-setup"},{"title":"Add MCP servers for your organization","href":"/admin/mcp-servers"},{"title":"Configure Model Providers","href":"/admin/model-providers"},{"title":"Session volume autoscaling","href":"/admin/session-volume-autoscaling"},{"title":"Configure the Small Model","href":"/admin/small-model"},{"title":"Configure token limits","href":"/admin/token-limits"},{"title":"Keep a warm session ready for faster session starts","href":"/admin/warm-sessions"}]},{"group":"Users","pages":[{"title":"Archive sessions","href":"/user/archive-sessions"},{"title":"Compact sessions","href":"/user/compact-sessions"},{"title":"Change the conversation font size in Cake Agents","href":"/user/conversation-size"},{"title":"Copy a session transcript","href":"/user/copy-transcript"},{"title":"Set default repositories for new sessions","href":"/user/default-repositories"},{"title":"Set environment variables for Cake agent sessions","href":"/user/environment-variables"},{"title":"Watch CI and GitHub events from Cake sessions","href":"/user/github-webhook-events"},{"title":"Keyboard shortcuts","href":"/user/keyboard-shortcuts"},{"title":"Link GitHub","href":"/user/link-github"},{"title":"Connect your account to MCP servers","href":"/user/mcp-connectors"},{"title":"Private sessions","href":"/user/private-sessions"},{"title":"Guide agents with AGENTS.md repository instructions","href":"/user/repository-instructions"},{"title":"Rename sessions","href":"/user/rename-sessions"},{"title":"Session links","href":"/user/session-links"},{"title":"Read session status indicators in the Cake Agents sidebar","href":"/user/session-status"},{"title":"Override token limits for a session","href":"/user/session-token-limits"},{"title":"Set Git Author Info","href":"/user/set-git-author-info"},{"title":"Slack thread verbosity","href":"/user/slack-verbosity"}]}]},{"tab":"Platform","pages":[{"title":"Platform","href":"/platform/overview"}]}]},"basePath":"","title":"Set up Bitbucket - Cake Docs","deploymentId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","buildId":"dpl_BLZw3QngerHodH9E8mGgC4v752y3","dynamics":[],"chunks":[]}