Skip to content
GitHub

Installation

Install the provider package for the platform you want to use:

# Pick one (or more) providers
npm install @computesdk/blaxel
npm install @computesdk/cloudflare
npm install @computesdk/codesandbox
npm install @computesdk/daytona
npm install @computesdk/e2b
npm install @computesdk/hopx
npm install @computesdk/modal
npm install @computesdk/namespace
npm install @computesdk/runloop
npm install @computesdk/vercel

You only need to install the providers your project uses.

Each provider requires its own API credentials. Add them to a .env file in the root of your project or export them in your shell:

BL_API_KEY=your_blaxel_api_key
BL_WORKSPACE=your_blaxel_workspace
CLOUDFLARE_API_TOKEN=your_cloudflare_api_token
CLOUDFLARE_ACCOUNT_ID=your_cloudflare_account_id
CSB_API_KEY=your_codesandbox_api_key
DAYTONA_API_KEY=your_daytona_api_key
E2B_API_KEY=your_e2b_api_key
HOPX_API_KEY=your_hopx_api_key
MODAL_TOKEN_ID=your_modal_token_id
MODAL_TOKEN_SECRET=your_modal_token_secret
NSC_TOKEN=your_namespace_nsc_token
RUNLOOP_API_KEY=your_runloop_api_key
VERCEL_TOKEN=your_vercel_token
VERCEL_TEAM_ID=your_team_id
VERCEL_PROJECT_ID=your_project_id

Refer to each provider’s documentation page for the full list of supported environment variables and configuration options.

After installing a provider and setting credentials, verify everything works:

import { e2b } from '@computesdk/e2b';

const compute = e2b({ apiKey: process.env.E2B_API_KEY });
const sandbox = await compute.sandbox.create();

const result = await sandbox.runCode('print("Hello from ComputeSDK!")');
console.log(result.output); // "Hello from ComputeSDK!"

await sandbox.destroy();

Replace the import and configuration with whichever provider you installed.