Skip to content

Add E2BGateway - Multi-backend gateway for AI agent sandboxes - #6533

Open
dongjiang1989 wants to merge 1 commit into
avelino:mainfrom
dongjiang1989:add-e2bgateway
Open

Add E2BGateway - Multi-backend gateway for AI agent sandboxes#6533
dongjiang1989 wants to merge 1 commit into
avelino:mainfrom
dongjiang1989:add-e2bgateway

Conversation

@dongjiang1989

Copy link
Copy Markdown
Contributor

Description

Adding E2BGateway to the Networking section. E2BGateway is a Go-based gateway that provides full E2B SDK compatibility while routing requests to multiple sandbox backends for AI agents.

About E2BGateway

E2BGateway acts as an abstraction layer for AI agent sandboxes. It provides a fully compatible interface aligned with the official E2B client protocol, transparently routing requests to diverse underlying agent runtime implementations.

Key Features

  • Multi-Backend Support: Routes to agent-sandbox (Kubernetes), OpenSandbox, or E2B Cloud
  • Zero-Code Migration: Existing E2B SDK users just change one URL
  • Production Ready: Auth, rate limiting, audit logging, OpenTelemetry observability
  • High Performance: Built with Go for low latency and high throughput
  • WebSocket Support: Full duplex communication for streaming code execution
  • Kubernetes Native: Integrates with kubernetes-sigs/agent-sandbox CRDs

Use Cases

  1. Cost Optimization: Route dev traffic to self-hosted, prod to E2B Cloud
  2. Data Sovereignty: Keep all sandboxes on your own infrastructure
  3. Multi-Tenant Platforms: Different backends per tenant
  4. Hybrid Cloud: Mix cloud and self-hosted backends

Quick Example

import os
os.environ["E2B_API_URL"] = "https://your-gateway.com"

from e2b_code_interpreter import Sandbox
sbx = Sandbox.create(template="code-interpreter")
result = sbx.run_code("print('Hello from E2BGateway!')")

Checklist

  • I have read the CONTRIBUTING.md
  • The project is open source with Apache 2.0 license
  • The project has a comprehensive README
  • The project is written in Go
  • The entry is in alphabetical order
  • The project is actively maintained

Links

Why it's awesome

E2BGateway fills a unique niche in the Go ecosystem:

  • Only multi-backend gateway for E2B protocol
  • Bridges cloud and self-hosted AI agent infrastructure
  • Production-grade with enterprise features
  • Active development and community support

Thanks for considering!

@github-actions

Copy link
Copy Markdown

Automated Quality Checks

Required checks

Repo link: missing from PR body

How to fix: Add the following to your PR description:

Forge link: https://github.com/your-org/your-project

❌ **pkg.go.dev**: missing from PR body
  > **How to fix:** Add the following to your PR description:
  > ```
pkg.go.dev: https://pkg.go.dev/github.com/your-org/your-project

Go Report Card: missing from PR body

How to fix: Add the following to your PR description:

goreportcard.com: https://goreportcard.com/report/github.com/your-org/your-project


### Additional checks

⚠️ **Coverage**: missing from PR body
  > **How to fix:** Add a coverage service link to your PR description:
  > ```
Coverage: https://app.codecov.io/gh/your-org/your-project

Popular options: Codecov, Coveralls. Integrate one with your CI to track coverage automatically.


Action needed: one or more required checks failed. Please update your PR body with the missing links and ensure the repository meets the quality standards.

These checks are automated and do not replace maintainer review. See CONTRIBUTING.md for full guidelines.


PR Diff Validation

Content checks

Files changed: only README.md
Single item: one package added
Link text: matches repository name
Description: ends with punctuation
Description tone: no promotional language detected
Category size: Networking has 83 items

Automated diff validation — does not replace maintainer review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant