Cody Pro — AI Code Review for Azure DevOps
Cody automatically reviews every pull request with Anthropic Claude or OpenAI GPT-5 and posts the results as a comment thread — no servers to host, no code leaves your pipeline except to the AI provider you choose.
Requires a Cody Pro license
This extension requires a one-time license from codylabs.gumroad.com/l/cody-pro. Install the extension for free, then add your license key as a pipeline variable.
One of two ways to run Cody Pro on Azure DevOps
This Marketplace extension is the one-click option: install it, paste your license key, done — nothing to copy into your repo.
Prefer to copy the files in yourself instead? Your same Cody Pro purchase also includes a DIY / script-based setup that runs from files you drop into your repo — and that path needs no license key at all. Either option is fine; pick whichever suits your team. (The license key is only used for this extension.)
What it does
- Runs on every pull request build validation
- Reads the diff, ignoring
venv/, node_modules/, and dist/
- Sends it to your chosen model (Claude Opus 4.8, Claude Sonnet 5, GPT-5, and more)
- Posts a summary and a focused code review as a comment thread on the pull request
Setup
- Buy a license at codylabs.gumroad.com/l/cody-pro.
- Install this extension on your Azure DevOps organization.
- Add a pipeline (or edit an existing one) and set it as a Build Validation policy on your target branch (Project Settings → Repositories → your repo → Policies → Branch Policies → Build Validation). This is what makes Cody run on pull requests — Azure Repos does not support the YAML
pr: trigger below (Azure DevOps ignores it silently and reports "Pull request triggers are not supported for Azure Repos" if you check the pipeline's Triggers tab), so the Build Validation policy is the only thing that actually queues a build per PR.
- Add these variables (mark them secret):
LICENSE_KEY — your Cody Pro license key
ANTHROPIC_API_KEY and/or OPENAI_API_KEY, depending on the model you pick
- Grant the build service Contribute to pull requests on the repository (Project Settings → Repositories → Security).
trigger: none
pool:
vmImage: ubuntu-latest
steps:
- checkout: self
fetchDepth: 0
- task: CodyReview@1
inputs:
model: "claude-opus-4-8"
env:
SYSTEM_ACCESSTOKEN: $(System.AccessToken)
LICENSE_KEY: $(LICENSE_KEY)
ANTHROPIC_API_KEY: $(ANTHROPIC_API_KEY)
OPENAI_API_KEY: $(OPENAI_API_KEY)
Choosing a model
Any model name starting with claude- is sent to Anthropic; anything else is sent to OpenAI.
| Model |
Provider |
Best for |
| claude-opus-4-8 |
Anthropic |
The most capable reviews — recommended |
| claude-sonnet-5 |
Anthropic |
Near-Opus quality at lower cost |
| claude-haiku-4-5 |
Anthropic |
Fastest and cheapest Claude option |
| gpt-5 |
OpenAI |
OpenAI's flagship model |
| gpt-5-codex |
OpenAI |
OpenAI's coding-focused model |
GitHub or GitLab instead?
Support
Open an issue with questions or problems.