Discover and explore top open-source AI tools and projects—updated daily.
vercel-labsSecure, sandboxed bash environment for AI agents
Top 71.1% on SourcePulse
A simulated bash environment written in TypeScript, just-bash provides AI agents with a secure, sandboxed execution context featuring an in-memory virtual filesystem. It offers controlled network access via curl with secure-by-default URL filtering, enabling agents to interact with external resources safely. The project aims to offer a robust, isolated shell environment for AI-driven tasks, reducing security risks associated with direct system access.
How It Works
just-bash simulates a bash environment using TypeScript, abstracting filesystem operations into an in-memory virtual filesystem by default. It implements execution protection against infinite loops and recursion, enhancing security. Network access, including the curl command, is opt-in and strictly controlled via configurable URL prefix and HTTP method allow-lists, ensuring outbound requests adhere to predefined security policies. This design prioritizes safety and predictability for AI agent execution.
Quick Start & Requirements
npm install just-bashbash-tool (npm install bash-tool) for seamless integration with AI models.Sandbox class for API compatibility with @vercel/sandbox.npm install -g just-bash) for command-line usage.pnpm shell.Highlighted Details
InMemoryFs (default), OverlayFs (copy-on-write over disk), and ReadWriteFs (direct disk access).defineCommand.allowedUrlPrefixes and allowedMethods.sqlite3 command powered by sql.js (WASM-based, sandboxed).Sandbox class mirroring @vercel/sandbox API.Maintenance & Community
No specific details regarding notable contributors, sponsorships, partnerships, or community channels (like Discord/Slack) are provided in the README. Development commands include pnpm test, pnpm build, and pnpm shell.
Licensing & Compatibility
@vercel/sandbox.Limitations & Caveats
This project is designated as beta software and should be used at the user's own risk. Bash is not fully robust against Denial-of-Service attacks from input, recommending OS-level process isolation for higher security needs. Binaries or WASM execution are inherently unsupported; for full VM capabilities, Vercel Sandbox or similar products are suggested. Network access is disabled by default and requires explicit configuration.
2 days ago
Inactive
abshkbh
tursodatabase
MoonshotAI