---
title: Bitbucket
summary: Manage repositories, pull requests, issues, and pipelines on Bitbucket.
---

# Bitbucket

Manage repositories, pull requests, issues, and pipelines on Bitbucket.

## What it does

Connects an agent to Bitbucket. Agents can list repositories, list and create pull requests, list and create issues, list pipeline runs, and search code.

## Setup

1. Go to **Settings → Integrations → Bitbucket**.
2. Click **Connect** and authorize via OAuth 2.0.
3. Choose which repositories the agent can access.
4. Assign the connection to an agent.

## Scopes requested

Repository read/write, pull request read/write, issue read/write, and pipeline read/write, scoped to what you authorize during setup.

## Typical use

An agent that opens a pull request for a change it made in your codebase, or one that comments on a pull request with a summary of what changed.

## Related

- [Integrations Guide](/en/docs/guides/integrations-guide): the full catalog and security model these connections share
- [GitHub](/en/docs/integrations/github): the equivalent connection for GitHub-hosted repositories
