From d21bd49f088012b0aa60b36b6ee21243ff4341ac Mon Sep 17 00:00:00 2001 From: Ivan Dagelic Date: Mon, 3 Mar 2025 17:30:58 +0100 Subject: [PATCH] docs: daytona runtime configuration (#7073) Signed-off-by: Ivan Dagelic --- docs/modules/usage/runtimes.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/docs/modules/usage/runtimes.md b/docs/modules/usage/runtimes.md index 452bcc1154..1ebb925ec4 100644 --- a/docs/modules/usage/runtimes.md +++ b/docs/modules/usage/runtimes.md @@ -84,3 +84,36 @@ docker run # ... -e MODAL_API_TOKEN_ID="your-id" \ -e MODAL_API_TOKEN_SECRET="your-secret" \ ``` + +## Daytona Runtime + +Another option is using [Daytona](https://www.daytona.io/) as a runtime provider: + +### Step 1: Retrieve Your Daytona API Key +1. Visit the [Daytona Dashboard](https://app.daytona.io/dashboard/keys). +2. Click **"Create Key"**. +3. Enter a name for your key and confirm the creation. +4. Once the key is generated, copy it. + +### Step 2: Set Your API Key as an Environment Variable +Run the following command in your terminal, replacing `` with the actual key you copied: +```bash +export DAYTONA_API_KEY="" +``` + +This step ensures that OpenHands can authenticate with the Daytona platform when it runs. + +### Step 3: Run OpenHands Locally Using Docker +To start the latest version of OpenHands on your machine, execute the following command in your terminal: +```bash +bash -i <(curl -sL https://get.daytona.io/openhands) +``` + +#### What This Command Does: +- Downloads the latest OpenHands release script. +- Runs the script in an interactive Bash session. +- Automatically pulls and runs the OpenHands container using Docker. + +Once executed, OpenHands should be running locally and ready for use. + +For more details and manual initialization, view the entire [README.md](https://github.com/All-Hands-AI/OpenHands/blob/main/openhands/runtime/impl/daytona/README.md)