| name | arker-sandbox |
| description | Guide for creating and managing Arker sandboxes using ComputeSDK. Use when building applications that need Arker provider for ComputeSDK - sandboxed VMs with persistent filesystems, forked from golden images. |
Arker Sandboxes with ComputeSDK
Arker provider for ComputeSDK - sandboxed VMs with persistent filesystems, forked from golden images.
Setup
npm install computesdk @computesdk/arker
Set your credentials:
ARKER_API_KEY=your_arker_api_key
ARKER_PLATFORMS=your_arker_platforms
ARKER_REGION=your_arker_region
ARKER_SOURCE=your_arker_source
Quick Start
import { compute } from 'computesdk';
import { arker } from '@computesdk/arker';
compute.setConfig({
provider: arker({
apiKey: process.env.ARKER_API_KEY,
platforms: process.env.ARKER_PLATFORMS?.split(',').filter(Boolean),
region: process.env.ARKER_REGION,
source: process.env.ARKER_SOURCE,
}),
});
const sandbox = await compute.sandbox.create();
const result = await sandbox.runCommand('echo "Hello from Arker!"');
console.log(result.stdout);
await sandbox.destroy();
You can also call the provider factory directly:
import { arker } from '@computesdk/arker';
const sdk = arker({
apiKey: process.env.ARKER_API_KEY,
platforms: process.env.ARKER_PLATFORMS?.split(',').filter(Boolean),
region: process.env.ARKER_REGION,
source: process.env.ARKER_SOURCE,
});
const sandbox = await sdk.sandbox.create();
Arker Configuration
interface ArkerConfig {
apiKey?: string;
region?: string;
source?: string;
platforms?: string[];
}
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/.