Skip to main content
Pair Kilocode with a Superserve sandbox to run its generated commands and file edits in an isolated VM.

Via the console

  1. On the Secrets page, create a secret for your model provider (e.g. Anthropic) and paste your API key — you only do this once, and the key never enters the sandbox.
  2. Go to console.superserve.ai and click Create sandbox.
  3. Pick the superserve/node-22 template.
  4. Under Advanced Options → Secrets, bind that secret to your provider’s key env var (e.g. ANTHROPIC_API_KEY).
  5. Create the sandbox, open its Terminal, and install Kilocode.

Via the SDK

npm install @superserve/sdk
export SUPERSERVE_API_KEY=ss_live_...
import { Sandbox, Secret } from "@superserve/sdk"

// One-time: store your key as a secret. It never enters the sandbox.
await Secret.create({
  name: "anthropic-key",
  value: "sk-ant-...",
  provider: "anthropic",
})

const sandbox = await Sandbox.create({
  name: "kilocode",
  fromTemplate: "superserve/node-22",
  secrets: { ANTHROPIC_API_KEY: "anthropic-key" },
})

await sandbox.commands.run("npm install -g @kilocode/cli")
Kilocode reads ANTHROPIC_API_KEY as usual, but its value is a stand-in token — the real key is attached only on requests to the provider, never exposed to the agent. Open the sandbox in the console, launch the terminal, and run kilocode.

Persist sessions

await sandbox.pause()
await sandbox.resume()