computesdk/sandbox-skills · Archived

modal-sandbox

Guide for creating and managing Modal sandboxes using ComputeSDK. Use when building applications that need Modal provider for ComputeSDK - serverless Python execution with GPU support and zero cold starts.

First seen Feb 17, 2026

Installation

$ npx skills add computesdk/sandbox-skills --skill modal-sandbox

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from computesdk/sandbox-skills.

npx skills add computesdk/sandbox-skills

Browse all from computesdk/sandbox-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 1
License MIT
Default branch main
Open issues 0
Status Archived

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,975 B
  • docs SUMMARY.md 226 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 6 installs

SKILL.md

Modal Sandboxes with ComputeSDK

Modal provider for ComputeSDK - serverless Python execution with GPU support and zero cold starts.

Setup

npm install computesdk @computesdk/modal

Set your credentials:

# .env
MODAL_TOKEN_ID=your_modal_token_id
MODAL_TOKEN_SECRET=your_modal_token_secret

Quick Start

import { compute } from 'computesdk';
import { modal } from '@computesdk/modal';

compute.setConfig({
  provider: modal({
    tokenId: process.env.MODAL_TOKEN_ID,
    tokenSecret: process.env.MODAL_TOKEN_SECRET,
  }),
});

const sandbox = await compute.sandbox.create();

const result = await sandbox.runCommand('echo "Hello from Modal!"');
console.log(result.stdout);

await sandbox.destroy();

You can also call the provider factory directly:

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

const sdk = modal({
    tokenId: process.env.MODAL_TOKEN_ID,
    tokenSecret: process.env.MODAL_TOKEN_SECRET,
  });
const sandbox = await sdk.sandbox.create();

Modal Configuration

interface ModalConfig {

  tokenId?: string;
  tokenSecret?: string;
  timeout?: number;
  environment?: string;
  ports?: number[];
  daemonSsePort?: number | false;
  appName?: string;
  scalableSandboxes?: boolean;

}

Full API

ComputeSDK exposes the same universal sandbox API across providers: sandbox.create(), sandbox.getById(), sandbox.destroy(), sandbox.runCommand(), sandbox.getInfo(), sandbox.getUrl(), and sandbox.filesystem.*.

Install the main skill for the complete reference:

npx skills add https://github.com/computesdk/sandbox-skills --skill computesdk

Or see https://www.computesdk.com/docs/reference/sandbox/.