Skip to content
PluginStats

ai-sdk-sandbox-local weekly downloads statistics

By BrianHung (2 listings) · npm · AI SDKs

HarnessV1SandboxProvider implementation backed by the local machine.

View on npm Fresh · Oct 18, 2026

ai-sdk-sandbox-local has 3,264 recorded weekly downloads on npm, an increase of 332% over the past 30 days, ranking #1227 of 2,322 tracked listings.

Weekly downloads
3,264
Official API · Oct 18, 2026
7-day growth
-42.9%
-2.5K weekly downloads
30-day growth
+332%
+2.5K weekly downloads
90-day growth
—
Insufficient history
Rank
#1227
Among tracked npm listings

About ai-sdk-sandbox-local

AI SDK - Local Sandbox

This package is experimental.

HarnessV1SandboxProvider implementation backed by the local machine.

[!WARNING] This provides no isolation. The agent runs commands and edits files directly on the host, with the host process's permissions. Use it only where the host is itself the trust boundary: your own machine, or a disposable container or VM you control. For real isolation, run against a remote or containerized sandbox provider.

Setup

npm i ai-sdk-sandbox-local @ai-sdk/harness

Usage

The factory is synchronous. The returned provider is stable; a session, rooted at a working directory on the host, is created inside provider.createSession().

import { createLocalSandbox } from 'ai-sdk-sandbox-local';

const localSandbox = createLocalSandbox({ cwd: process.cwd() });

const networkSandboxSession = await localSandbox.createSession();
const sandboxSession = networkSandboxSession.restricted();

await sandboxSession.writeTextFile({ path: 'hello.txt', content: 'hi' });

const { stdout } = await sandboxSession.run({ command: 'cat hello.txt' });
console.log(stdout); // "hi"

await networkSandboxSession.stop();

networkSandboxSession.restricted() is typed as Experimental_SandboxSession, so it is safe to pass to AI SDK tools that accept experimental_sandbox. The network sandbox session itself carries the infra surface (ports, getPortUrl, setPorts, setNetworkPolicy, stop) that only the harness should reach for.

Configuration

The environment is the host's, so the session inherits process.env. There are no credentials to resolve; the two settings shape where and how it runs.

const localSandbox = createLocalSandbox({
  cwd: '/path/to/repo', // working directory; defaults to process.cwd()
  ports: [3000], // pin a bridge port; by default one is leased
});
  • cwd the working directory the session is rooted at. Relative paths in file operations resolve against it. Defaults to process.cwd().
  • ports ports to pre-expose. The harness leases a bridge port via setPorts, and on localhost exposing is a no-op, so this is usually unnecessary. Set one to pin a fixed bridge port.

Per-command environment and working directory are set on each call, not on the provider:

await sandboxSession.run({
  command: 'echo $GREETING',
  env: { GREETING: 'hi' },
  workingDirectory: 'packages/app',
});

Resuming

The host persists, so resumeSession({ sessionId }) rebinds to the same cwd for a given session id without recreating anything.

Ports and network policy

getPortUrl resolves to http://127.0.0.1:<port> and throws HarnessCapabilityUnsupportedError for a port that was never exposed. There is no network boundary to enforce, so setNetworkPolicy is a no-op. For real egress control, run against an isolating provider.

License

Apache-2.0

Description from the npm listing.

  • ai
  • ai-sdk
  • harness
  • sandbox
  • local

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-local weekly downloads on npm, last 90 days: 3,264 weekly downloads as of Oct 18, 2026.ai-sdk-sandbox-localWeekly downloads on npm · Last 90 days3,264downloads / week01K2K3K4K5K6KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
ai-sdk-sandbox-local weekly downloads on npm, last 90 days: 3,264 weekly downloads as of Oct 18, 2026.

7/30/90-day growth

ai-sdk-sandbox-local weekly downloads growth on npm: -42.9% over 7 days, +332% over 30 days, 90-day growth unavailable.ai-sdk-sandbox-localWeekly downloads growth on npm3,264downloads / week now7-day growth-2,450 weekly downloads-42.9%30-day growth+2,509 weekly downloads+332%90-day growth+3,264 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
ai-sdk-sandbox-local weekly downloads growth on npm: -42.9% over 7 days, +332% over 30 days, 90-day growth unavailable.

Ranking history

ai-sdk-sandbox-local npm ranking history: currently #1227 (by weekly downloads).ai-sdk-sandbox-localnpm ranking · by weekly downloads · Last 90 days#1227current rank#1205#1210#1215#1220#1225#1230Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
ai-sdk-sandbox-local npm ranking history: currently #1227 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,162 shown · page 62, #10 (overall #1,230)
All npm: every listing in weekly downloads order

Listing placement

AI SDKs259 listings · 13 pages · page 5, #11 (overall #91)
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 (122)
Recent weekly downloads observations for ai-sdk-sandbox-local
Date (UTC)Weekly downloadsChange vs. previous
3,264+382
2,882-584
3,466+180
3,286-1.3K
4,607-1.3K
5,8620
5,862+148
5,714-231
5,945+196
5,749+382
5,367+711
4,656+674
3,982-386
4,368—

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-local. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.