Corevelos

Quickstart

Configure the API endpoint, create a project key, and execute code in a sandbox.

Install and configure

Use Node.js 20.18.1 or newer (Node 24 is recommended). During a controlled preview, install the contract and SDK artifacts supplied for your accepted release:

npm i ./corevelos-contract-1.0.0.tgz ./corevelos-sdk-1.0.0.tgz

After public registry publication, install with npm i @corevelos/sdk. Configure the actual API endpoint provided for your deployment; the public endpoint must be activated before the hosted example can connect:

export COREVELOS_API_URL="https://api.corevelos.com"
export COREVELOS_API_KEY="cv_your_project_key"

Create an API key from the API keys page in the console. Copy the full key when it is created; it is shown once. Use a project-bound key for the project you want to operate. Do not put an API key in frontend JavaScript. A funded wallet and available host capacity are required even for starter usage.

For a local deployment, set COREVELOS_API_URL=http://127.0.0.1:8787. The SDK defaults to that local endpoint when the variable is absent.

Execute code

import { Sandbox } from "@corevelos/sdk";

const box = await Sandbox.create({
  template: "corevelos-base",
  timeoutSeconds: 300,
});
try {
  const result = await box.commands.run('python -c "print(2**10)"', {
    timeoutMs: 30_000,
  });
  console.log(result.stdout); // 1024
} finally {
  await box.kill();
}

Use corevelos template list to inspect the catalog available on your deployment. timeoutSeconds controls the customer lifetime; command timeoutMs bounds one command. Startup and readiness depend on the template, hardware and load.

Python is also supported. Install the supplied wheel during preview (or pip install corevelos after public publication):

pip install ./corevelos-1.0.0-py3-none-any.whl
from corevelos import Sandbox

box = Sandbox.create(template="corevelos-base", timeout_seconds=300)
try:
    print(box.commands.run("echo hello")["stdout"])
finally:
    box.kill()

The same endpoint and key environment variables apply to both SDKs. See Sandboxes, Projects and Billing.

On this page