Prime Agent
Run Prime Intellect's Prime Agent in an E2B sandbox. It has no approval prompts, so the model-generated Python and commands it runs stay off your machine.
- E2B
- Prebuilt prime template
- prime
- TypeScript, Python
Get started
Paste the prompt into your coding agent, or follow the steps yourself.
Paste this into your coding agent
Run Prime Agent in an E2B sandbox from this project.
- 1.Install the e2b package using the project's package manager.
- 2.The SDK needs the E2B_API_KEY environment variable. If it isn't set, ask me for my API key from https://console.e2b.dev/?tab=keys. Never hardcode it.
- 3.Follow the Prime Agent guide at https://docs.e2b.dev/agents/prime: create a sandbox from the prime template, pass my model provider key as a sandbox env, and run prime-agent -p with a task.
- 4.Run it once, show me the output that came from the sandbox, then kill the sandbox.
Or set it up yourself
1. Install the E2B SDK
2. Set your API keys
3. Run Prime Agent headless
4. Or open it interactively
What runs in the sandbox
Prime Agent runs with the permissions of its user, so it runs in a sandbox instead of on your machine.
- Model-generated Python and project commands, run without approval prompts inside the sandbox.
- Sessions are saved to disk behind a background daemon. -c continues the latest one and -r resumes a specific one.
- Provider keys such as ANTHROPIC_API_KEY go in as sandbox envs. Your host files and credentials stay out of reach.
- Sandboxes reach the internet by default. Restrict outbound traffic with allow and deny rules by CIDR or hostname.
More coding agents
Other coding agents that run in E2B sandboxes.
- PiRun the Pi coding agent in a sandbox, or keep Pi local and send its tool calls to E2B with @e2b/pi.
- Hermes AgentRun Hermes Agent in a sandbox template, or keep it local and execute its terminal tools on E2B.
- Claude CodeRun Claude Code in its own sandbox with a real filesystem, terminal, and git, so it can work unattended.
