Spaces:
Configuration error
Configuration error
|
Download openhands/runtime/impl/e2b/README.md from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 1.31 kB
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/openhands/runtime/impl/e2b/README.md
- Command line
-
hf download hf://spaces/flyingdarkdev/README/openhands/runtime/impl/e2b/README.md
-
curl -L -o README.md https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/openhands/runtime/impl/e2b/README.md
1.31 kB
How to use E2B
E2B is an open-source secure cloud environment (sandbox) made for running AI-generated code and agents. E2B offers Python and JS/TS SDK to spawn and control these sandboxes.
Getting started
Set your E2B API key to the
E2B_API_KEYenv var when starting the Docker containerOptional - Install the CLI with NPM.
npm install -g @e2b/cli@latestFull CLI API is here.
OpenHands sandbox
You can use the E2B CLI to create a custom sandbox with a Dockerfile. Read the full guide here. The premade OpenHands sandbox for E2B is set up in the containers directory. and it's called openhands.
Debugging
You can connect to a running E2B sandbox with E2B CLI in your terminal.
List all running sandboxes (based on your API key)
e2b sandbox listConnect to a running sandbox
e2b sandbox connect <sandbox-id>