> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sazabi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Devin

> Connect Devin so Sazabi can hand issue fixes to it and follow the result in the issue thread.

## Supported capabilities

Sandbox CLIManual log sourceCore integration

* **Sandbox CLI**: [Devin](https://docs.sazabi.com/catalogs/sandbox-clis/devin.md) — Give the Sazabi agent the Devin CLI (devin) in its sandbox to start and manage AI coding sessions.
* **Manual log source**: [Devin CLI](https://docs.sazabi.com/catalogs/log-sources/coding-agents/devin-cli.md) — Add an otel block to your Devin CLI config to ship session telemetry — prompts, tool calls, and model API requests with token counts — to Sazabi.
* **Core integration**: [Devin](https://docs.sazabi.com/catalogs/integrations/devin#core-integration) — Connect Devin so Sazabi can hand issue fixes to it and follow the result in the issue thread.

Each connection method has its own setup and permissions. Connecting one method does not enable the others.

## Core integration

## About

Connecting Devin lets Sazabi hand an issue's fix to Devin. You choose **Fix** on an issue, Devin works in your repository and opens a pull request, and Sazabi follows its progress in the issue thread. Devin is a **coding agent** integration: one of the agents listed under [**Settings > Integrations**](https://app.sazabi.com/settings/integrations) that Fix can hand off to.

## Prerequisites

* A Devin API key (service user or personal access token).
* Organization admin access in Sazabi.
* Repository access for Devin: Devin works only in repositories its organization has connected in [Devin's repository settings](https://app.devin.ai/settings/repositories).

## Set up in the dashboard

**Step 1**

### Get your credentials

Create a Devin **API key** from [Devin > Settings > Devin API](https://app.devin.ai/settings/devin-api): provision a service user on the **Service users** tab, or create a personal access token on the **PATs** tab. The key starts with `cog_` and identifies its Devin organization.

**Step 2**

### Open the Devin integration

In the dashboard, go to [**Settings > Integrations**](https://app.sazabi.com/settings/integrations) and open **Devin**.

**Step 3**

### Connect with the key

Choose **Connect** and paste the key. Sazabi checks it with Devin before saving the connection.

**Step 4**

### Check repository access

The connection page's **Repositories** section shows which repositories Fix can hand to Devin. **Default coding agent** is set per project, so it appears only when you open the connection from a project's settings: open the project, go to its **Integrations** settings, select Devin, and choose **Use this account**. Fix then hands off to it without asking.

## Set up with the CLI

You can also connect Devin with the [Sazabi CLI](https://docs.sazabi.com/reference/cli.md) (installed and authenticated; see [CLI reference](https://docs.sazabi.com/reference/cli/integrations.md)).

Devin is an API-key provider, so pass its key as the `apiKey` credential. Read the key from an environment variable rather than pasting it inline:

```bash theme={"system"}
export DEVIN_API_KEY=...   # your Devin key
sazabi integrations connect devin \
  --credentials "{\"apiKey\":\"$DEVIN_API_KEY\"}"
```

Run `sazabi integrations list` to confirm the connection, or `sazabi integrations providers --json` to see each provider's credential fields.

## Fix issues

Open an issue in the project inbox, choose **Fix**, and pick Devin. Confirm the repository, and the base branch if asked, then choose **Fix with Devin**. Devin works in the repository and opens a pull request; its progress, questions, and pull request appear in the issue thread.

From the CLI, hand the fix off and follow the attempt with `sazabi agent-dispatches` (see [CLI reference](https://docs.sazabi.com/reference/cli/agent-dispatches.md)):

```bash theme={"system"}
sazabi issues fix "$ISSUE_ID" --agent devin
sazabi agent-dispatches list --issue-id "$ISSUE_ID"
```

`sazabi agent-dispatches reply` answers a question from the agent, and `sazabi agent-dispatches cancel` stops the attempt.

## Verify

Choose **Fix** on an open test issue and hand it to Devin. Confirm the attempt appears in the issue thread within a minute, and that `sazabi agent-dispatches list --issue-id "$ISSUE_ID"` lists it with Devin as the agent.

## Troubleshooting

**Devin did not accept this key** - The key is wrong, revoked, or from the wrong account. Create a new one and reconnect.

**Devin can't reach any repositories yet** - Devin works only in repositories its organization has connected in [Devin's repository settings](https://app.devin.ai/settings/repositories).

**Fix doesn't offer Devin** - Confirm the connection shows connected under [**Settings > Integrations**](https://app.sazabi.com/settings/integrations), and that the issue's project has a repository Devin can reach.

## Further reading

> [card] [Issues](https://docs.sazabi.com/detect/issues.md)
>
> Open, investigate, and resolve issues.

> [card] [Integrations](https://docs.sazabi.com/catalogs/integrations.md)
>
> Browse the core integrations.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.