Skip to content

Add E2B terminal backend - #34492

Closed
vsokolovskii wants to merge 1 commit into
NousResearch:mainfrom
vsokolovskii:add-e2b-terminal-backend
Closed

Add E2B terminal backend#34492
vsokolovskii wants to merge 1 commit into
NousResearch:mainfrom
vsokolovskii:add-e2b-terminal-backend

Conversation

@vsokolovskii

Copy link
Copy Markdown

Summary

  • add an E2B terminal execution environment with SDK-backed command execution, file sync, and pause/resume persistence
  • wire terminal.backend: e2b, TERMINAL_E2B_TEMPLATE, setup/doctor/status/config schema, and lazy dependency installation
  • document the new backend and add regression coverage for setup, requirements, guard bypass, and prompt/backend lists

Testing

  • python3 -m py_compile tools/environments/e2b.py tools/terminal_tool.py tools/file_tools.py tools/code_execution_tool.py tools/approval.py tools/skills_tool.py tools/env_probe.py agent/prompt_builder.py hermes_cli/setup.py hermes_cli/status.py hermes_cli/doctor.py hermes_cli/config.py hermes_cli/web_server.py tests/tools/test_terminal_requirements.py tests/hermes_cli/test_setup.py
  • .venv/bin/python -m pytest tests/tools/test_terminal_requirements.py tests/hermes_cli/test_setup.py::test_e2b_setup_saves_api_key_and_template tests/tools/test_command_guards.py::TestContainerSkip::test_e2b_skips_both tests/tools/test_hardline_blocklist.py::test_container_backends_still_bypass tests/tools/test_hardline_blocklist.py::test_sudo_stdin_guard_container_bypass tests/test_project_metadata.py::test_lazy_installable_extras_excluded_from_all tests/agent/test_prompt_builder.py::TestEnvironmentHints::test_remote_backend_list_covers_known_sandboxes tests/hermes_cli/test_web_server.py::TestBuildSchemaFromConfig::test_overrides_applied
  • live smoke in Hermes: terminal command returned /home/user, user, e2b.local, E2B_SANDBOX=true, E2B_SANDBOX_ID, and E2B_TEMPLATE_ID

@vsokolovskii
vsokolovskii requested a review from a team May 29, 2026 08:20
@alt-glitch alt-glitch added type/feature New feature or request P3 Low — cosmetic, nice to have tool/terminal Terminal execution and process management labels May 29, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

Competing with #18348 — both add E2B cloud sandbox terminal backend. This PR appears to be a more complete resubmission.

@vsokolovskii
vsokolovskii deleted the add-e2b-terminal-backend branch May 29, 2026 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low — cosmetic, nice to have tool/terminal Terminal execution and process management type/feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants