npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

sandock-cli

v0.2.2

Published

Command-line interface for Sandock - Sandbox in Docker for AI Agents

Downloads

10

Readme

Sandock CLI

Command-line interface for Sandock - Sandbox in Docker for AI Agents

npm version License: MIT

Installation

Run directly with npx (no installation needed):

npx sandock --help
# or
npx sandock-cli --help

Or install globally:

npm install -g sandock-cli
# or
pnpm add -g sandock-cli

# Then use directly
sandock --help

Usage

Configuration

Configure your Sandock API URL and credentials:

# Show current configuration
sandock config --show

# Set API URL
sandock config --set-url https://sandock.ai

# Set API key (if required)
sandock config --set-key your-api-key

# Reset to defaults
sandock config --reset

Sandbox Management

Create a sandbox

# Uses server default image (sandockai/sandock-code:latest)
sandock sandbox create --name my-sandbox

# Or specify a custom image
sandock sandbox create --name my-sandbox --image node:20-alpine
sandock sandbox create -n python-env -i python:3.11

List sandboxes

sandock sandbox list
sandock sandbox list --limit 50

Get sandbox info

sandock sandbox info sb_12345

Execute commands

sandock sandbox exec sb_12345 "node -v"
sandock sandbox exec sb_12345 "python script.py" --timeout 60

Available Commands

sandock config

Manage CLI configuration (API URL, API key)

Flags:

  • --show, -s: Show current configuration
  • --set-url <url>: Set API URL
  • --set-key <key>: Set API key
  • --reset: Reset configuration to defaults

sandock sandbox create

Create a new sandbox

Flags:

  • --name, -n <name> (required): Sandbox name
  • --image, -i <image>: Docker image to use (default on server: sandockai/sandock-code:latest)
  • --space, -s <id>: Space ID (default: default)

sandock sandbox list

List all sandboxes

Flags:

  • --limit, -l <number>: Maximum number of sandboxes to list (default: 20)

sandock sandbox info <id>

Get detailed information about a sandbox

Args:

  • id (required): Sandbox ID

sandock sandbox exec <id> <command>

Execute a command in a sandbox

Args:

  • id (required): Sandbox ID
  • command (required): Command to execute

Flags:

  • --timeout, -t <seconds>: Execution timeout in seconds (default: 30)

Examples

# Create a Node.js sandbox with default image
sandock sandbox create --name my-app

# Create with custom image
sandock sandbox create --name my-app --image node:20

# List all sandboxes
sandock sandbox list

# Execute code in a sandbox
sandock sandbox exec sb_abc123 "npm install && npm start"

# Check sandbox info
sandock sandbox info sb_abc123

Development

This CLI uses oclif framework and the sandock SDK.

# Install dependencies
pnpm install

# Build
pnpm build

# Run locally
pnpm dev config --show

Links

License

MIT License - see LICENSE for details