SIRT Triage Agent Workshop
~15 min

Welcome and setup

Set up your Windows 11 VM, install the required tools, configure OpenCode with Cloudflare Skills, and authenticate wrangler.

Steps0 / 6
~15 min
  1. Log in to your Win11 VM via labs.cloudflare.com

    You should see the Windows 11 desktop.

  2. Install Node.js and verify it works

    Run `node -v` — should show v24 or higher.

  3. Install Git

    Run `git --version` — should show a version number.

  4. Install OpenCode and Cloudflare Skills

    Run `opencode --version` — should print a version. Run `npx skills list` to confirm Cloudflare skills are installed.

  5. Authenticate wrangler with your workshop account

    Run `npx wrangler login` and complete the OAuth flow in your browser.

  6. Verify authentication

    Run `npx wrangler whoami` — it should show your lab account name.

Welcome to the SIRT Triage Agent Workshop. In this lesson you will set up your development environment inside the workshop VM and install all the tools you need.

Step 1: Log in to the Win11 VM

  1. Open labs.cloudflare.com in your browser and log in with the credentials provided by your facilitator.
  2. Click Get Started.
  3. Select Developer Platform Workshop.
  4. Select Win11 client.

You should see the Windows 11 desktop. If your connection drops at any point during the workshop, just reconnect to the same VM — your work is preserved within the session.

Step 2: Open Command Prompt

Click the Start menu, type cmd, and press Enter to open Command Prompt.

Step 3: Install Node.js

The VM may not have Node.js pre-installed. Install it via Chocolatey:

powershell -c "irm https://community.chocolatey.org/install.ps1|iex"

When prompted, type Y and press Enter.

Then install Node.js:

choco install nodejs --version="24.16.0" -y

Close and reopen Command Prompt so the new node and npm commands are available, then verify:

node -v
npm -v

You should see v24.16.0 (or higher) and 11.x.x.

Step 4: Install Git

Git is needed to clone the workshop repository. Install it with:

winget install --id Git.Git -e --source winget

Accept any prompts. Close and reopen Command Prompt, then verify:

git --version

Step 5: Install OpenCode

OpenCode is an open-source terminal AI agent that will help you work through the workshop. Install it globally:

npm i -g opencode-ai

Verify:

opencode --version

Step 6: Install Cloudflare Skills for OpenCode

Cloudflare Skills teach OpenCode how to use Workers, D1, Durable Objects, Workers AI, and the rest of the Cloudflare platform:

npx skills add https://github.com/cloudflare/skills

Step 7: Configure Cloudflare MCP servers

OpenCode uses MCP (Model Context Protocol) servers to interact with the Cloudflare API, docs, and bindings at runtime. The easiest way to set this up is to launch OpenCode and ask it to configure the MCP servers for you:

opencode

Once inside the OpenCode TUI, type:

Add the Cloudflare MCP servers from https://developers.cloudflare.com/agent-setup/opencode/ to my config.

OpenCode will update your .opencode.jsonc config file with the remote MCP server URLs for Cloudflare API, docs, bindings, builds, and observability.

The first time OpenCode calls a Cloudflare tool, you will be redirected to your browser to authorize via OAuth. Complete the authorization flow to connect OpenCode to your lab account.

Step 8: Authenticate wrangler

Wrangler is the Cloudflare Workers CLI. Authenticate it with your lab account:

npx wrangler login

This opens your browser for OAuth. Log in with your lab account credentials.

Step 9: Verify authentication

Confirm wrangler is connected to the right account:

npx wrangler whoami

You should see your lab account name and account ID. If you see the wrong account, run npx wrangler logout and repeat step 8.

You are ready

Once npx wrangler whoami shows your lab account, you are set up. Mark this lesson complete and move on to the SIRT overview.