Skip to content
PluginStats

ai-sdk-sandbox-runtime weekly downloads statistics

By fpasquet (2 listings) · npm · AI SDKs

Anthropic Sandbox Runtime (srt) sandbox sessions for AI SDK harness agents: Claude Code, Codex and friends on this host, fenced by the operating system, with no container.

View on npm Fresh · Dec 6, 2026

ai-sdk-sandbox-runtime has 6,777 recorded weekly downloads on npm, an increase of 8478% over the past 30 days, ranking #1413 of 3,247 tracked listings.

Weekly downloads
6,777
Official API · Dec 5, 2026
7-day growth
+440%
+5.5K weekly downloads
30-day growth
+8478%
+6.7K weekly downloads
90-day growth
—
Insufficient history
Rank
#1413
Among tracked npm listings

About ai-sdk-sandbox-runtime

ai-sdk-sandbox-runtime

<p align="center"> <a href="https://www.npmjs.com/package/ai-sdk-sandbox-runtime"><img alt="npm" src="https://img.shields.io/npm/v/ai-sdk-sandbox-runtime" /></a> <a href="https://github.com/fpasquet/ai-sdk-harness/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/fpasquet/ai-sdk-harness/actions/workflows/ci.yml/badge.svg" /></a> <img alt="Node &gt;= 24" src="https://img.shields.io/badge/node-%3E%3D24-3c873a" /> <img alt="TypeScript strict" src="https://img.shields.io/badge/TypeScript-strict-3178c6?logo=typescript&logoColor=white" /> <a href="https://github.com/fpasquet/ai-sdk-harness/blob/main/LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-blue.svg" /></a> </p>

Run AI SDK harness agents (Claude Code, Codex, OpenCode…) on your own machine, fenced by the operating system, with no container and no virtual machine: Anthropic Sandbox Runtime (srt), the sandbox Claude Code puts around its own commands, put around the whole agent.

The package gives HarnessAgent.createSession({ sandboxSession }) what it expects, a HarnessV1NetworkSandboxSession, like ai-sdk-sandbox-sbx does for Docker Sandboxes:

  • Fenced by the kernel: srt runs the sandbox under bubblewrap on Linux and sandbox-exec on macOS. The agent reads the host but your home directory, writes its own directory and its workspace only, and reaches the hosts you allow, nothing else.
  • Credentials stay out: the sandbox holds a placeholder; srt's proxy puts the real value in the requests to the model's API.
  • Starts in milliseconds: nothing to pull or boot. A command runs in a few milliseconds, and the agent works on your files where they are.
  • Your machine's tools: the agent uses the Node.js, git and compilers of the host, read-only.

This package is in its 0.x series, and srt is itself a research preview: try it, and tell what works and what does not in the issues. Until 1.0.0, a minor release may break its API, and its changelog says how; a patch release never does. It is a community package, not affiliated with Vercel or Anthropic.

How it works

flowchart TB
  subgraph host["Your machine"]
    agent["HarnessAgent"] --> session["createSrtNetworkSandboxSession()"]
    session -- "frames on stdin and stdout" --> supervisor
    proxy["srt proxy: allowed hosts, credentials put in"]
    subgraph fence["srt: bubblewrap or sandbox-exec"]
      supervisor["Supervisor"] --> bridge["Harness bridge: Claude Code, Codex"]
    end
  end
  api["Model APIs"]

  agent -. "WebSocket on 127.0.0.1, through the supervisor" .-> bridge
  bridge -- "every request" --> proxy
  proxy --> api

Each sandbox is one process srt wraps, a small supervisor: every command, file operation and connection of the sandbox goes through it, on its standard input and output. Its processes share one filesystem view and, on Linux, one network namespace of their own, whose loopback the harness bridge listens on: the package forwards the bridge's port to a free port of this host's loopback. Every request a process makes leaves through srt's proxy, which only lets the allowed hosts through and puts the credentials in.

Requirements

  • Node.js 24 or later, on Linux or macOS. Windows is not supported.
  • @ai-sdk/harness and a harness adapter, such as @ai-sdk/harness-claude-code.
  • pnpm on the PATH, which the Claude Code and Codex bridges install their dependencies with. Corepack's will do.
Linux

srt needs three programs, and user namespaces it may use:

ProgramWhat srt does with itDebian, UbuntuFedoraArch
bubblewrapThe sandbox itself: namespaces, mountsapt install bubblewrapdnf install bubblewrappacman -S bubblewrap
socatRelays the proxy into the sandbox's network namespaceapt install socatdnf install socatpacman -S socat
ripgrepFinds the files srt must protectapt install ripgrepdnf install ripgreppacman -S ripgrep

All three in one go on Debian or Ubuntu:

sudo apt install bubblewrap socat ripgrep

Binaries off the PATH are named with runtime: { bwrapPath, socatPath, ripgrepPath }.

srt's seccomp filter on Ubuntu. Inside the sandbox, srt adds a seccomp filter that blocks Unix sockets, which needs a nested user namespace with capabilities. Recent Ubuntu releases refuse it two ways: the sandbox then fails to start with apply-seccomp: write /proc/self/setgroups … Permission denied, and the error says which applies.

  • Ubuntu 24.04 restricts unprivileged user namespaces (kernel.apparmor_restrict_unprivileged_userns=1). Lift the restriction:

    sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
    # and to keep it after a reboot:
    echo 'kernel.apparmor_restrict_unprivileged_userns=0' | sudo tee /etc/sysctl.d/60-srt-userns.conf
    
  • Releases that ship the bwrap-userns-restrict AppArmor profile (/etc/apparmor.d/bwrap-userns-restrict, checked on Ubuntu 26.04) confine everything bwrap runs to unpriv_bwrap, which denies every capability, whatever the sysctl says, and a local rule cannot lift a deny. The filter cannot run there.…

Description from the npm listing.

  • ai
  • ai-sdk
  • ai-sdk-harness
  • harness
  • sandbox
  • sandbox-runtime
  • srt
  • bubblewrap
  • seatbelt
  • claude-code
  • codex
  • coding-agent

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

ai-sdk-sandbox-runtime weekly downloads on npm, last 90 days: 6,777 weekly downloads as of Dec 5, 2026.ai-sdk-sandbox-runtimeWeekly downloads on npm · Last 90 days6,777downloads / week01K2K3K4K5K6K7KSep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
ai-sdk-sandbox-runtime weekly downloads on npm, last 90 days: 6,777 weekly downloads as of Dec 5, 2026.

7/30/90-day growth

ai-sdk-sandbox-runtime weekly downloads growth on npm: +440% over 7 days, +8478% over 30 days, 90-day growth unavailable.ai-sdk-sandbox-runtimeWeekly downloads growth on npm6,777downloads / week now7-day growth+5,522 weekly downloads+440%30-day growth+6,698 weekly downloads+8478%90-day growth+6,777 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
ai-sdk-sandbox-runtime weekly downloads growth on npm: +440% over 7 days, +8478% over 30 days, 90-day growth unavailable.

Ranking history

ai-sdk-sandbox-runtime npm ranking history: currently #1413 (by weekly downloads).ai-sdk-sandbox-runtimenpm ranking · by weekly downloads · Last 90 days#1413current rank#1320#1340#1360#1380#1400#1420Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankDec 5, 2026 – Dec 6, 2026 · 2 observations · Updated Dec 5, 2026pluginstats.com
ai-sdk-sandbox-runtime npm ranking history: currently #1413 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 71, #13 (overall #1,413)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs378 listings · 19 pages · page 5, #19 (overall #99)
AI SDKs: every listing in weekly downloads order

Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.

Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.

Recent observations

Full history (121)
Recent weekly downloads observations for ai-sdk-sandbox-runtime
Date (UTC)Weekly downloadsChange vs. previous
6,777+409
6,368+836
5,532+3K
2,529+922
1,607+172
1,435+80
1,355+100
1,255-2
1,257+45
1,212+504
708+233
475+184
291+82
209—

Data source

Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.

Listing: https://www.npmjs.com/package/ai-sdk-sandbox-runtime. First seen Dec 5, 2026; last successful collection Dec 6, 2026. See the methodology.