Choose the trust boundary before choosing the tool
Use the current cpuOS pilot for trusted team code on a machine allocated to the pilot. Do not expose submission directly to anonymous users or accept hostile third-party code. Docker restrictions reduce available operations but do not create an independent kernel boundary.
The worker needs access to a Docker daemon. Anyone who controls its token or host can affect its jobs, so keep the token on the worker and do not mount application secrets or production data into job containers. Job code and output also pass through the hosted control plane.
The supported job workflow
Create a workspace, connect a Node 24 + Docker worker and submit a Python or Node job. Poll its state and inspect the terminal result. stdout and stderr are returned after execution; they are not streamed live.
const response = await fetch("https://cpuos.si/v1/jobs", { method: "POST", headers: { Authorization: "Bearer " + process.env.CPUOS_API_KEY, "Content-Type": "application/json", }, body: JSON.stringify({ template: "python", code: "print(sum([12, 18, 25]))", vcpu: 1, memoryMb: 512, timeoutSeconds: 30, }),})if (!response.ok) throw new Error(await response.text())const job = await response.json()// GET /v1/jobs/:id until status is completed, failed or cancelled.// Use the result only after checking status and exitCode.Validate a representative task
- Verify a successful script and a nonzero exit code with known expected output.
- Test timeout, output truncation, queued cancellation and running cancellation.
- Disconnect the worker and inspect stale status and failure handling before retrying.
- Confirm that code and logs contain no long-lived credentials or unnecessary customer data.
Keep reasoning and execution separate
gpuOS supplies open-model inference on your GPUs. Your application validates tool arguments, sets fixed limits and submits authorized jobs to cpuOS. There is no automatic built-in tool connection between the products.
See LangChain tool wiring and n8n HTTP jobs for the same contract in an application workflow.