@computesdk/collimate
Collimate provider for ComputeSDK.
Installation
npm install @computesdk/collimate computesdk
Usage
import { collimate } from "@computesdk/collimate";
import { compute } from "computesdk";
compute.setConfig({
provider: collimate({
apiKey: "col_live_...",
templateId: "node",
}),
});
const sandbox = await compute.instances.create();
const result = await sandbox.runCommand("node -v");
console.log(result.stdout); // v22.x.x
await sandbox.destroy();
Configuration
| Option | Type | Default | Description |
|---|---|---|---|
apiKey | string | COLLIMATE_API_KEY env | API key for authentication |
serverUrl | string | https://api.collimate.ai | API server URL |
templateId | string | — | Template ID (node, python, etc.) |
timeout | number | 900 | Execution timeout in seconds |
Supported operations
create()/destroy()— sandbox lifecyclerunCommand()— shell execution with stdout/stderr/exitCodewriteFile()/readFile()— filesystem operationsmkdir()/readdir()/exists()/remove()— directory operationsgetById()/list()/getInfo()— sandbox management