bashkit weekly downloads statistics
Agentic coding tools for the Vercel AI SDK
bashkit has 363 recorded weekly downloads on npm, a decrease of 93.2% over the past 30 days, ranking #2333 of 3,247 tracked listings.
About bashkit
bashkit
Agentic coding tools for Vercel AI SDK. Give AI agents the ability to execute code, read/write files, and perform coding tasks in a sandboxed environment.
Overview
bashkit provides a set of tools that work with the Vercel AI SDK to enable agentic coding capabilities. It gives AI models like Claude the ability to:
- Execute bash commands in a persistent shell
- Read files and list directories
- Create and write files
- Edit existing files with string replacement
- Search for files by pattern
- Search file contents with regex
- Spawn sub-agents for complex tasks
- Track task progress with todos
- Search the web and fetch URLs
- Load skills on-demand via the Agent Skills standard
Breaking Changes in v0.4.0
Nullable Types for OpenAI Compatibility
All optional tool parameters now use .nullable() instead of .optional() in Zod schemas. This change enables compatibility with OpenAI's structured outputs, which require all properties to be in the required array.
What changed:
- Tool input types changed from
T | undefinedtoT | null - Exported interfaces (
QuestionOption,StructuredQuestion) useT | null - AI models will send explicit
nullvalues instead of omitting properties
Migration:
// Before v0.4.0
const option: QuestionOption = { label: "test", description: undefined };
// v0.4.0+
const option: QuestionOption = { label: "test", description: null };
Why this matters:
- Works with both OpenAI and Anthropic models
- OpenAI structured outputs require nullable (not optional) fields
- Anthropic/Claude handles nullable fields correctly
- The
??operator handles bothnullandundefined, so runtime behavior is unchanged
Installation
bun add bashkit ai zod
For web tools, also install:
bun add parallel-web
Quick Start
With Filesystem Access (Desktop Apps, Local Scripts, Servers)
When you have direct filesystem access, use LocalSandbox:
import { createAgentTools, createLocalSandbox } from 'bashkit';
import { anthropic } from '@ai-sdk/anthropic';
import { generateText, stepCountIs } from 'ai';
// Create a local sandbox (runs directly on your filesystem)
const sandbox = createLocalSandbox({ cwd: '/tmp/workspace' });
// Create tools bound to the sandbox
const { tools } = createAgentTools(sandbox);
// Use with Vercel AI SDK
const result = await generateText({
model: anthropic('claude-sonnet-4-5'),
tools,
prompt: 'Create a simple Express server in server.js',
stopWhen: stepCountIs(10),
});
console.log(result.text);
// Cleanup
await sandbox.destroy();
Without Filesystem Access (Web/Serverless Environments)
When you're in a web or serverless environment without filesystem access, use VercelSandbox or E2BSandbox:
import { createAgentTools, createVercelSandbox } from 'bashkit';
import { anthropic } from '@ai-sdk/anthropic';
import { streamText, stepCountIs } from 'ai';
// Create a Vercel sandbox (isolated Firecracker microVM)
// Note: async - automatically sets up ripgrep for Grep tool
const sandbox = await createVercelSandbox({
runtime: 'node22',
resources: { vcpus: 2 },
});
const { tools } = createAgentTools(sandbox);
const result = streamText({
model: anthropic('claude-sonnet-4-5'),
messages,
tools,
stopWhen: stepCountIs(10),
});
// Cleanup
await sandbox.destroy();
Available Tools
Default Tools (always included)
| Tool | Purpose | Key Inputs |
|---|---|---|
Bash | Execute shell commands | command, timeout?, description? |
Read | Read files or list directories | file_path, offset?, limit? |
Write | Create/overwrite files | file_path, content |
Edit | Replace strings in files | file_path, old_string, new_string, replace_all? |
Glob | Find files by pattern | pattern, path? |
Grep | Search file contents | pattern, path?, output_mode?, -i?, -C? |
Optional Tools (via config)
| Tool | Purpose | Config Key |
|---|---|---|
AskUser | Ask user clarifying questions | askUser: true |
EnterPlanMode | Enter planning/exploration mode | planMode: true |
ExitPlanMode | Exit planning mode with a plan | planMode: true |
Skill | Execute skills | skill: { skills } |
WebSearch | Search the web | webSearch: { apiKey } |
WebFetch | Fetch URL and process with AI | webFetch: { apiKey, model } |
Workflow Tools (created separately)
| Tool | Purpose | Factory |
|---|---|---|
Task | Spawn sub-agents | createTaskTool({ model, tools, subagentTypes? }) |
TodoWrite | Track task progress | createTodoWriteTool(state, config?, onUpdate?) |
Web Tools (require parallel-web peer dependency)
| Tool | Purpose | Factory |
|---|---|---|
WebSearch | Search the web | createWebSearchTool({ apiKey }) |
WebFetch | Fetch URL and process with AI | createWebFetchTool({ apiKey, model }) |
Sandbox Types
LocalSandbox
Runs commands directly on your filesystem. Use when you have filesystem access (desktop apps, local scripts, servers you control).
import { createLocalSandbox } from 'bashkit';
const sandbox = createLocalSandbox({ cwd: '/tmp/workspace' });
VercelSandbox
Runs in isolated Firecracker microVMs on Vercel's infrastructure. Use when you don't have filesystem access (web apps, serverless functions, browser environments).
import { createVercelSandbox } from 'bashkit';
// Async - automatically installs ripgrep for Grep tool
const sandbox = await createVercelSandbox({
runtime: 'node22',
resources: { vcpus: 2 },
// ensureTools: true (default) - auto-setup ripgrep
// ensureTools: false - skip for faster startup if you don't need Grep
});…
Description from the npm listing.
- ai
- agent
- vercel
- ai-sdk
- sandbox
- tools
- bash
- code-execution
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
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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 (170)Similar npm AI SDKs plugins
All 20 bashkit alternativesData 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/bashkit. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.