Skip to content

Azure DevOps

The Azure DevOps integration lets Cosine import repositories, create branches, and open pull requests directly from your Azure DevOps projects.

Before connecting Azure DevOps:

  • You must have an Azure DevOps account with access to the organization and projects you want to use.
  • You must have permission to authorize apps for the organization.

Tip: Create a dedicated Azure DevOps user (for example, cosine-ai@yourdomain.com) so Cosine activity is easy to audit and attribute.

We recommend creating a separate Azure DevOps user for Cosine.

  1. Create a new Azure DevOps user and set a clear display name, such as Cosine AI.
  2. Add the user to the Azure DevOps organization you want Cosine to access.
  3. Grant the user access to the projects and repositories Cosine should work in.
  1. Open your Cosine dashboard.
  2. Go to Team Settings → Integrations.
  3. Select Azure DevOps.
  4. Click Connect and sign in with the dedicated Azure DevOps account.
  5. Approve the permissions prompt to authorize Cosine.

After authorization, you will be returned to Cosine and the integration will show as connected.

Once connected, create a new project in Cosine and choose Import from Azure DevOps. Select the organization and project, then choose the repository to import.

If you do not see a repository:

  • Confirm the Azure DevOps account has access to the project and repo.
  • Verify you selected the correct organization and project in Cosine.
  • Check the repository has not already been imported (repositories already connected to projects are hidden).

With Azure DevOps connected, Cosine can:

  • Import Azure DevOps repositories into the platform.
  • Create branches and push commits to your repositories.
  • Open pull requests automatically for tasks that include code changes.
  • Track pull request updates (status changes and new commits) and keep the Cosine task up to date.

When you create a new project in Cosine, use Import from Azure DevOps to choose the organization, project, and repository you want to work on.

To remove access, do both of the following:

  1. In Cosine, open Team Settings → Integrations → Azure DevOps and select Disconnect.
  2. In Azure DevOps, open User settings → Profile → Authorized OAuth Apps and revoke Cosine.