Skip to content

Prepare a Windows computer for cadre

Use this page on a Windows 11 laptop before you type /cadre:setup. You need no earlier use of Node, the Azure CLI, or a personal access token. You work on Azure DevOps (ADO). When each check on this page passes, setup does not stop on a missing tool or token.

Each step gives a command to copy, then the output that you should see.

What you need

On Windows, Claude Code has a PowerShell tool. Git for Windows adds a Bash tool, which runs Git Bash. With both tools on a claude.ai or Console account, Claude uses PowerShell first. The cadre skills write their commands for Bash, and the cadre guards check the Bash tool only. So install Git for Windows, and make sure that each item works in Git Bash.

Item Section
Git for Windows, with Git Bash Git for Windows
Node 22 or later Node 22 or later
Claude Code Claude Code
The Azure CLI and its azure-devops extension Azure CLI
A personal access token in AZURE_DEVOPS_EXT_PAT The token
A full editor restart Restart the editor

If your company manages the laptop, you may need its software portal or IT to install a program. Ask them for the same program. Use the same version rules as below.

Check what you have

Run one of these blocks to see what is missing. Each line prints OK or MISS. Neither block prints the token. Go to the section of each MISS line.

If Git Bash is not installed yet, use PowerShell:

foreach ($t in 'git','node','claude','az') { if (Get-Command $t -ErrorAction SilentlyContinue) { "OK    $t" } else { "MISS  $t  (see the page section for $t)" } }
if (Get-Command node -ErrorAction SilentlyContinue) { $v = node --version; if ([int]($v -replace '^v(\d+).*','$1') -ge 22) { "OK    node version $v" } else { "MISS  node 22 or later (found $v)" } }
if (Get-Command az -ErrorAction SilentlyContinue) { $e = az extension show --name azure-devops --query version -o tsv 2>$null; if ($e) { "OK    az azure-devops extension $e" } else { "MISS  az azure-devops extension" } }
$u = [Environment]::GetEnvironmentVariable('AZURE_DEVOPS_EXT_PAT','User'); if ($u) { "OK    token saved, length $($u.Length)" } else { "MISS  token not saved as a User variable" }
if ($env:AZURE_DEVOPS_EXT_PAT) { "OK    token visible in this window" } elseif ($u) { "MISS  token saved, but this window started before it: open a new window" } else { "MISS  token not in this window" }

In Git Bash:

for t in git node claude az; do if command -v "$t" >/dev/null 2>&1; then echo "OK    $t"; else echo "MISS  $t  (see the page section for $t)"; fi; done
if command -v node >/dev/null 2>&1; then v=$(node --version); n=${v#v}; n=${n%%.*}; if [ "$n" -ge 22 ]; then echo "OK    node version $v"; else echo "MISS  node 22 or later (found $v)"; fi; fi
if command -v az >/dev/null 2>&1; then e=$(az extension show --name azure-devops --query version -o tsv 2>/dev/null); if [ -n "$e" ]; then echo "OK    az azure-devops extension $e"; else echo "MISS  az azure-devops extension"; fi; fi
if [ -n "$AZURE_DEVOPS_EXT_PAT" ]; then echo "OK    token visible in this window, length ${#AZURE_DEVOPS_EXT_PAT}"; else echo "MISS  token not in this window: set it, then open a new window"; fi

When each line is OK, go to Ready check. It tests that ADO accepts the token.

Git for Windows

Open PowerShell. Run:

winget install --id Git.Git -e

You can also use the installer from https://git-scm.com/downloads.

Open Git Bash from the Start menu. Run:

git --version

You see a line that starts with git version 2. Git for Windows gives you Git Bash and Git Credential Manager. Git Credential Manager signs you in to ADO when you use git push.

Node 22 or later

Run in PowerShell:

winget install --id OpenJS.NodeJS.LTS -e

You can also use the LTS installer from https://nodejs.org.

Open a NEW terminal. An open terminal does not see the new program. Run in Git Bash:

node --version

You see v22 or a later number.

Claude Code

Install Claude Code with the steps at https://code.claude.com/docs. You use it in one of three places:

  • the terminal (the claude command)
  • the Claude desktop app (the Code tab)
  • the VS Code extension

Cadre works the same in each place. Check that Claude Code starts and answers.

Azure CLI and the azure-devops extension

Run in PowerShell:

winget install --id Microsoft.AzureCLI -e

Open a NEW terminal. Run in Git Bash:

az --version
az extension add --name azure-devops
az extension show --name azure-devops

The first command shows a list of versions. The last command shows a block of text with "name": "azure-devops".

Setup opens the charter pull request with az repos pr create. /cadre:ticket uses az boards and az repos. The orchestrator completes a pull request with az repos pr update. So install the extension before you run setup. If az extension add fails with a certificate error, go to Behind a TLS-inspecting proxy.

The personal access token

A personal access token (PAT) is a password that ADO makes for you. Cadre reads it from the variable AZURE_DEVOPS_EXT_PAT.

Make the token

  1. Open ADO in your browser.
  2. Open User settings, then Personal access tokens.
  3. Choose New Token.
  4. Give it a name and an expiry date. Choose a short expiry. When it ends, make a new token and repeat the next part.
  5. Choose these scopes:
  6. Work Items: Read and write.
  7. Code: Read and write.
  8. Choose Create. Copy the token. ADO shows it only one time.

Store the token

The token is now on your clipboard. Open PowerShell. Run all three lines:

[Environment]::SetEnvironmentVariable('AZURE_DEVOPS_EXT_PAT', (Get-Clipboard).Trim(), 'User')
"length=" + [Environment]::GetEnvironmentVariable('AZURE_DEVOPS_EXT_PAT','User').Length
Set-Clipboard -Value ' '

The second line prints the length. An ADO token usually has 52 or 84 characters. The third line clears the clipboard. If Win+V clipboard history is on, delete the token entry there.

Never print the token. Check only the length.

A User environment variable is plain text. Your own programs can read it. It is weaker than a keychain. Keep the token scopes small and the expiry short.

Do not run az login as a fix. The token is the way in.

Restart the editor

A program copies its environment one time, when it starts. A new variable does not reach a program that is already open.

For VS Code:

  1. Quit EVERY VS Code window. Look in the system tray for a copy that is still open.
  2. Start VS Code from the Start menu.

Do not use code . from a terminal that was open before you set the variable. That terminal has the old environment. If a VS Code window is still open, code . only adds a window to the same process.

A new chat is not a new process. The extension gets its environment from VS Code. So a new chat does not help.

For the Claude desktop app: quit it fully, then start it again. For the terminal: open a new terminal.

Ready check

Run this block in Git Bash, or ask Claude Code to run it. Put your ADO organization name in place of <org>, and the project of your repo in place of <project>. Write a space in the project name as %20. This is the same read that setup does first.

node --version
git --version
az extension show --name azure-devops --query version -o tsv
[ -n "$AZURE_DEVOPS_EXT_PAT" ] && echo "token set, length ${#AZURE_DEVOPS_EXT_PAT}" || echo "token EMPTY"
curl -s -o /dev/null -w "%{http_code}\n" -u ":$AZURE_DEVOPS_EXT_PAT" "https://dev.azure.com/<org>/<project>/_apis/wit/workitemtypes?api-version=7.1"

You should see:

  • a Node version of v22 or later
  • a Git version
  • a version number of the extension
  • token set, length 52 or a similar length
  • 200

The last line is the HTTP status. The block never prints the token or the body of the answer.

  • 200 is good.
  • 203 or 302 means ADO refused the token. Check that the token is not empty, then check that it did not expire.
  • 401 means ADO refused the token. Check that it did not expire, and that you copied all of it.
  • 403 means the token has no access to the project. Make a token with the two scopes above.
  • 404 means a wrong organization or project name.

When every line is good, go on to Set up cadre on an Azure DevOps repo or Your first orchestrator on Azure DevOps.

Behind a TLS-inspecting proxy

Some company networks use a proxy that re-signs every HTTPS site with a company certificate authority (CA). Windows trusts that CA. So browsers, PowerShell, and Node work with no change. The cadre scripts work. The core of az works.

Tools with their own list of CAs can fail:

  • az extension add can fail with a certificate error, because it uses its own bundled Python.
  • Python 3.13 and later check certificates strictly. They can fail with certificate verify failed: Missing Authority Key Identifier. Cadre itself needs no Python.

Install the extension from a file

Download the extension file in PowerShell, which uses the Windows certificate store. Check its hash. Install from the file:

$idx = Invoke-RestMethod 'https://azcliextensionsync.blob.core.windows.net/index1/index.json'
$e = $idx.extensions.'azure-devops' | Sort-Object { [version]$_.metadata.version } | Select-Object -Last 1
$whl = Join-Path $env:TEMP $e.filename
Invoke-WebRequest $e.downloadUrl -OutFile $whl
(Get-FileHash $whl -Algorithm SHA256).Hash.ToLower() -eq $e.sha256Digest.ToLower()
az extension add --source $whl --yes

The fifth line must print True. If it prints False, stop. Do not install the file.

Until the extension is in, the orchestrator still reads and writes work items with REST. Setup, /cadre:ticket, and each pull request step need the extension.

Find who signs the certificate

In Git Bash, show the signers of one host:

echo | openssl s_client -connect dev.azure.com:443 -servername dev.azure.com -showcerts 2>/dev/null | grep -E "^ *[0-9] s:|^ *i:"

In PowerShell, list the roots that Windows trusts. Look for the name of your company:

Get-ChildItem Cert:\LocalMachine\Root | Select-Object Subject, NotAfter, Thumbprint

If a signer in the first list is the name of your company, a proxy is on your network. Ask IT for a standard CA bundle file. It is the best fix, because it works for each tool.