Skip to content

Commit 9833640

Browse files
davila7claude
andcommitted
Update E2B launcher for SDK v2.0.2 API compatibility
- Fix template parameter to be positional argument instead of keyword - Change env_vars to envs parameter (v2.0.2 API change) - Update requirements.txt to use E2B SDK v2.0.2 - Based on official e2b-cookbook example for Anthropic Claude Code Fixes WebSocket connection issues by using latest E2B SDK that no longer relies on WebSockets. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 8ec8fb8 commit 9833640

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cli-tool/components/sandbox/e2b/e2b-launcher.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,9 @@ def main():
101101
print(f"🔄 Retry {retry_count}/{max_retries - 1} - WebSocket connection...")
102102

103103
sbx = Sandbox(
104-
template="anthropic-claude-code",
104+
"anthropic-claude-code",
105105
api_key=e2b_api_key,
106-
env_vars={
106+
envs={
107107
'ANTHROPIC_API_KEY': anthropic_api_key,
108108
},
109109
timeout=30, # Shorter timeout for connection attempts
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e2b>=0.15.0
1+
e2b>=2.0.2

0 commit comments

Comments
 (0)