Skip to content

Proposal: E2B API Compatibility for AgentCube Ecosystem Growth #257

@MahaoAlex

Description

@MahaoAlex

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:

  1. Instant ecosystem access: Compatible with LangChain , Microsoft AutoGen , and Vercel AI SDK without any code changes on their side.

  2. 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.

  3. 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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions