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
- Open labs.cloudflare.com in your browser and log in with the credentials provided by your facilitator.
- Click Get Started.
- Select Developer Platform Workshop.
- 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.