Skip to main content
skill CX Codex

rivet-secure-exec — Claude Code skill: run Node.js safely

A skill that documents Secure Exec, a library for running Node.js code without a sandbox while keeping file, network and resource access under control.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add rivet-dev/skills --skill rivet-secure-exec -a claude-code
Open on GitHub

What rivet-secure-exec does

The skill covers Secure Exec from rivet-dev. It runs Node.js code without a container or VM, but with permissions for the filesystem and network, resource limits, separate contexts and output capture. Useful when your agent has to execute code you do not fully trust.

The reference walks through contexts, execute and evaluate, filesystem and mounts, host functions, lifecycle, long-running processes, networking, npm packages, permissions and resource limits. There are pages for concrete use cases too: an agent code tool, code mode, dev servers and plugin systems. Comparisons with Cloudflare Workers, container sandboxes, isolated-vm, QuickJS, secure-eval-worker and Vercel Run show where this approach sits next to the sandboxes you may already use.

The skill runs nothing on its own. It is documentation your agent reads before writing Secure Exec code. Check that your Node.js version fits the library, and set filesystem and network permissions explicitly instead of assuming they are granted.

What it helps with

  • run agent-generated Node.js code without handing it the whole machine
  • restrict a script's file reads and network calls
  • set memory and time limits for untrusted code
  • spin up isolated contexts for several jobs in one process
  • embed code execution into a plugin system or dev server

Example prompts for the agent

  • show me how to run this script through Secure Exec with access only to ./data
  • I need network and memory limits for user-submitted code — write a Secure Exec example
  • compare Secure Exec and a container sandbox for running code inside my agent

How to install rivet-secure-exec

1Skills CLI (Vercel)

npx skills add rivet-dev/skills --skill rivet-secure-exec -a claude-code

2Manually: put the files in place

~/.claude/skills/rivet-secure-exec/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/rivet-secure-exec/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about rivet-secure-exec

How do I install rivet-secure-exec in Claude?

Run npx skills add rivet-dev/skills --skill rivet-secure-exec -a claude-code. The skill lands in ~/.claude/skills/rivet-secure-exec/SKILL.md.

What does rivet-secure-exec do?

It gives your agent a reference for Secure Exec, a library that runs Node.js code without a sandbox but with permissions, resource limits and context isolation.

Which other platforms can use it?

Codex, Cursor, GitHub Copilot, Gemini CLI and OpenCode each have their own install command and SKILL.md path.

Similar skills

Everything for Security →

From the same set2

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor