bash-tool
Give AI agents safe bash, file, and skill execution tools
All Skills in This Repository (2)
Pure Emerald Level IndicatorsFrequently Asked Questions
FAQPage SchemaHow to install bash-tool?▼
Run `npx skills add vercel-labs/bash-tool --all -g -y` in your terminal to install all tools in this suite globally.
What does bash-tool do for AI agents?▼
It gives AI agents three ready-made tools: running bash commands, reading files, and writing files, all inside a sandboxed environment compatible with the Vercel AI SDK.
Can bash-tool run commands in a real VM?▼
Yes. You can plug in @vercel/sandbox for a full VM, use the lightweight just-bash sandbox, or provide your own custom sandbox implementation.
How do I add custom skills to my agent?▼
Use the experimental createSkillTool function to load a directory of SKILL.md skills, then pass the generated files and instructions into createBashTool so your agent can run their scripts.
Can I block dangerous bash commands?▼
Yes. The onBeforeBashCall hook lets you inspect and rewrite any command before it runs, so you can block destructive operations like rm -rf.
Related Repositories in Software Engineering
View All in Software Engineering→openclaw
Run a personal AI assistant across your devices and chat apps
superpowers
Gives coding agents a disciplined workflow from idea to merged code
react
AI agent skills for building, testing, and porting React core