Requirements
- An organization account with Cybr Labs
- An organization API key
- Node.js 22 or later, or another server runtime with a standard
fetch
Install the SDK
Create a server client
Read the API key from your server configuration:Launch a lab
- List the labs available to your organization:
- Resolve the learner ID from your server session. See learners and membership.
- Launch the lab:
- Save
deployment.idwith the learner and lab in your database. Later status, terminal, and end requests use that record. See tracking deployments. - Wait for the environment:
Show the connection details
normalizeOutputs turns the lab’s outputs into rows you can render:
End the lab
When the learner ends the lab, calldestroy():
Next steps
Track deployments
Check ownership, resume after a reload, and avoid duplicate launches.
Web terminal
Give learners a shell in the browser.
Completion and CTF
Verify flags and record completion.
Error handling
Answer the browser with safe errors.
