Skip to main content
A coding agent that runs npm install, a test suite or a script it just wrote is running code on your laptop. ephemera mcp gives it a sandbox instead, over the Model Context Protocol. The agent still edits files in your worktree; when it runs something, it runs in a fresh microVM with no network unless it asks for one, and you get a signed record of what it did.

Connect your agent

You need the CLI installed and signed in first: see the quickstart.
ephemera mcp sends the worktree it was started in. --dir DIR picks another, and each call can override it.

The tools

run_command takes:

Tell the agent to use it

Agents use the tools they’re told about. A line in your CLAUDE.md, AGENTS.md or rules file is enough:
To be strict, take shell access away from the agent in its own settings, so run_command is the only way it can run anything.

What you get back

Every run leaves a signed record on your laptop: each command the agent ran, its exit code, and every host it tried to reach. If an agent’s script tried to send something somewhere, the record names the host, whether or not it was let through. Prefer the CLI? Agents that can only run shell commands can use ephemera run --json, which prints one JSON event per line. See Run commands.