ory-e2b-sandbox
E2B sandbox with Ory agent security
You are helping the user scaffold an E2B sandbox template
that preinstalls and registers the @ory/claude-code plugin. The resulting template
publishes a named image; every Sandbox.create("<tag>") call from their SDK
gets a runtime where the agent's tool calls are already authenticated against
Ory Identities, authorized against Ory Permissions, and recorded as structured
activity events — with no install step at sandbox boot.
This skill carries the full workflow and the file contents. You generate the files in the user's repo; the user runs the build.
Precondition: the user has (or will obtain) an
E2B_API_KEYand has installed the E2B CLI / SDK (npm install e2b dotenv). If they haven't, point them at https://e2b.dev/docs and stop — do not fabricate credentials.
Step 1 — Confirm the target
Before writing files, confirm with the user: