What would you like to be added:
Add E2B API compatibility layer to AgentCube Router, making it compatible with E2B's REST API and SDKs.
Specifically:
- Sandbox lifecycle APIs:
POST/GET/DELETE /sandboxes
- Sandbox management APIs:
POST /sandboxes/{id}/timeout, POST /sandboxes/{id}/refreshes
- Templates APIs:
GET/POST/PATCH/DELETE /templates/*
- API Key authentication via
X-API-Key header
- Full compatibility with
e2b-python-sdk and e2b-js-sdk
Why is this needed:
E2B is one of the most popular AI code execution infrastructure solutions. E2B API compatibility provides significant ecosystem benefits for AgentCube:
-
Instant ecosystem access: Compatible with LangChain , Microsoft AutoGen , and Vercel AI SDK without any code changes on their side.
-
Zero-cost migration path: Existing E2B users can migrate to self-hosted AgentCube by changing just the API endpoint and key — all existing code continues to work.
-
Unique eco-system positioning: AgentCube becomes the only solution that is simultaneously "E2B API compatible", "Kubernetes native", and "fully open source (Apache 2.0)". This fills the gap for enterprises needing self-hosted E2B infrastructure.
What would you like to be added:
Add E2B API compatibility layer to AgentCube Router, making it compatible with E2B's REST API and SDKs.
Specifically:
POST/GET/DELETE /sandboxesPOST /sandboxes/{id}/timeout,POST /sandboxes/{id}/refreshesGET/POST/PATCH/DELETE /templates/*X-API-Keyheadere2b-python-sdkande2b-js-sdkWhy is this needed:
E2B is one of the most popular AI code execution infrastructure solutions. E2B API compatibility provides significant ecosystem benefits for AgentCube:
Instant ecosystem access: Compatible with LangChain , Microsoft AutoGen , and Vercel AI SDK without any code changes on their side.
Zero-cost migration path: Existing E2B users can migrate to self-hosted AgentCube by changing just the API endpoint and key — all existing code continues to work.
Unique eco-system positioning: AgentCube becomes the only solution that is simultaneously "E2B API compatible", "Kubernetes native", and "fully open source (Apache 2.0)". This fills the gap for enterprises needing self-hosted E2B infrastructure.