Credentials. The compatibility API key controls sandbox access, so keep it in a secret store and out of source code and logs.
Who it is forA team with existing E2B Python SDK code that wants to move sandbox execution onto SPACE without rewriting the calling code.
The problemExisting E2B-based scripts depend on a sandbox provider the team wants to replace or run in its own infrastructure.
The outcomeThe same E2B Python SDK script runs against SPACE through the compatibility layer, within the behavior the guide lists as supported.
What you need first
- A host that meets the prerequisites in docs/installation.md
- Docker-compatible local setup for a Kind cluster, as described in docs/installation.md
- Bash for installation and cluster diagnostics
- Git and Python 3.11+ and mdBook 0.4.52 only if you build the docs locally
Steps
- Read [E2B Compatibility Wrapper](docs/ecw.md) to see the supported behavior and limitations.
- Configure ECW as described in the guide.
- Create a compatibility API key as described in the guide.
- Run your E2B Python SDK script against the SPACE endpoint configured for ECW.
Prompt for your agent
In the perplexityai/SPACE repo, follow docs/ecw.md to configure the E2B Compatibility Wrapper and create a compatibility API key. Run <path to E2B Python script> against it and report whether it completes. Verify that any call the guide lists as unsupported is not used by the script.
Caveat. The README limits this path to the behavior documented in the ECW guide, so scripts that rely on other E2B features may not work.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for perplexityai/SPACE and "Point existing E2B Python SDK code at SPACE"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer