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 🙏

© 2026 – Pkg Stats / Ryan Hefner

offleash

v1.0.0

Published

Run AI agents autonomously in a sandboxed Docker container

Readme

offleash

Run AI agents autonomously in a sandboxed Docker container — cross-platform, auto-authenticating, and configurable.

Requirements

  • Docker installed and running
  • Node.js 18+

Install

npm install -g offleash

Quick Start

# Launch Claude in a sandboxed container (interactive)
offleash

# Pass a prompt directly
offleash "fix the login bug and add tests"

# Non-interactive mode (great for CI/scripts)
offleash --print "analyze this codebase and list all API endpoints"

# Pipe a prompt
echo "refactor the auth module" | offleash

# Continue last Claude session
offleash --continue

Features

  • Cross-platform — Works on macOS, Linux, and Windows
  • Auto-auth — Detects missing credentials and walks you through login
  • Smart caching — Docker image is built once and reused (rebuilds automatically when needed)
  • Resource limits — Control CPU, memory, and timeout for the container
  • Network isolation — Optionally run with --no-network for maximum security
  • Configurable — Persistent config for defaults, extra mounts, env vars
  • Non-interactive mode--print flag for CI/CD pipelines and scripting

Usage

offleash [options] [prompt...]

Options:
  -p, --prompt <text>      Initial prompt for AI agent
  --print                  Non-interactive mode (print output and exit)
  -c, --continue           Continue last AI agent session
  --model <model>          AI agent model to use
  --cpus <n>               CPU limit for container
  --memory <size>          Memory limit (e.g., "4g")
  --timeout <duration>     Auto-kill after duration (e.g., "30m", "2h")
  --no-network             Disable network in container
  --read-only              Mount workspace as read-only
  --mount <spec>           Extra volume mount (repeatable)
  --env <KEY=VAL>          Extra environment variable (repeatable)
  --image <name>           Custom Docker image
  --workdir <path>         Override working directory
  --rebuild                Force Docker image rebuild
  -v, --verbose            Verbose output
  --debug                  Debug output
  -q, --quiet              Minimal output
  -V, --version            Output version number
  -h, --help               Display help

Commands:
  auth                     Show authentication status
  auth login               Authenticate with AI agent
  auth token               Set up API token for headless/CI use
  config list              Show all configuration values
  config set <key> <val>   Set a configuration value
  config get <key>         Get a configuration value
  config reset [key]       Reset configuration to defaults
  config path              Show configuration file path
  doctor                   Diagnose environment issues

Configuration

Persist your preferred defaults so you don't have to pass flags every time:

# Set default memory limit
offleash config set memory 8g

# Set default model
offleash config set model opus

# Disable network by default
offleash config set network false

# View all config
offleash config list

# Reset everything
offleash config reset

Config keys: memory, cpus, model, network, timeout, extraMounts, extraEnvs

Authentication

offleash supports multiple auth methods:

# Option 1: Use existing  credentials (auto-detected)
offleash

# Option 2: Interactive login
offleash auth login

# Option 3: API key (great for CI)
export ANTHROPIC_API_KEY=sk-ant-...
offleash

# Check auth status
offleash auth

Environment Diagnostics

offleash doctor

Checks Docker, credentials, image cache, and platform info.

How It Works

  1. Builds a minimal Docker image with Claude Code pre-installed (cached for fast startup)
  2. Mounts your current directory as /workspace inside the container
  3. Securely copies your AI agent's credentials into the container
  4. Launches the AI agent with full permissions
  5. Runs AI agent as a non-root user inside the container

Your host machine stays safe — all file changes are restricted to your project directory.

License

MIT