vercel-labsvercel-labsOfficial·2 Agent Skills Included

bash-tool

Give AI agents safe bash, file, and skill execution tools

Gives AI agents ready-made bash, file reading, and file writing tools that run inside a sandboxed environment. Removes the need to build custom shell execution, file handling, and sandbox wiring for AI SDK agents. Supports Vercel Sandbox, just-bash, or custom backends, plus experimental skill loading from SKILL.md directories. Includes example skills for CSV and text processing using standard bash utilities.
npx skills add vercel-labs/bash-tool --all -g -y

All Skills in This Repository (2)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How 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