π OpenHands: AI-Driven Development
Re-update to 0.40 (#8875)
mamoodiae4f8b7df933
diff --git a/docs/usage/how-to/cli-mode.mdx b/docs/usage/how-to/cli-mode.mdxindex 7e3c2e8689..5ff9f8f3df 100644--- a/docs/usage/how-to/cli-mode.mdx+++ b/docs/usage/how-to/cli-mode.mdx@@ -31,7 +31,7 @@ This command opens an interactive prompt where you can type tasks or commands an```bashdocker run -it \--pull=always \- -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.39-nikolaik \+ -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.40-nikolaik \-e SANDBOX_USER_ID=$(id -u) \-e SANDBOX_VOLUMES=$SANDBOX_VOLUMES \-e LLM_API_KEY=$LLM_API_KEY \@@ -40,7 +40,7 @@ docker run -it \-v ~/.openhands-state:/.openhands-state \--add-host host.docker.internal:host-gateway \--name openhands-app-$(date +%Y%m%d%H%M%S) \- docker.all-hands.dev/all-hands-ai/openhands:0.39 \+ docker.all-hands.dev/all-hands-ai/openhands:0.40 \python -m openhands.cli.main --override-cli-mode true```diff --git a/docs/usage/how-to/headless-mode.mdx b/docs/usage/how-to/headless-mode.mdxindex 34dde28930..aae9719146 100644--- a/docs/usage/how-to/headless-mode.mdx+++ b/docs/usage/how-to/headless-mode.mdx@@ -31,7 +31,7 @@ To run OpenHands in Headless mode with Docker:```bashdocker run -it \--pull=always \- -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.39-nikolaik \+ -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.40-nikolaik \-e SANDBOX_USER_ID=$(id -u) \-e SANDBOX_VOLUMES=$SANDBOX_VOLUMES \-e LLM_API_KEY=$LLM_API_KEY \@@ -41,7 +41,7 @@ docker run -it \-v ~/.openhands-state:/.openhands-state \--add-host host.docker.internal:host-gateway \--name openhands-app-$(date +%Y%m%d%H%M%S) \- docker.all-hands.dev/all-hands-ai/openhands:0.39 \+ docker.all-hands.dev/all-hands-ai/openhands:0.40 \python -m openhands.core.main -t "write a bash script that prints hi"```diff --git a/docs/usage/installation.mdx b/docs/usage/installation.mdxindex 99d077c946..e28cb59510 100644--- a/docs/usage/installation.mdx+++ b/docs/usage/installation.mdx@@ -88,17 +88,17 @@ A system with a modern processor and a minimum of **4GB RAM** is recommended toThe easiest way to run OpenHands is in Docker.```bash-docker pull docker.all-hands.dev/all-hands-ai/runtime:0.39-nikolaik+docker pull docker.all-hands.dev/all-hands-ai/runtime:0.40-nikolaikdocker run -it --rm --pull=always \- -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.39-nikolaik \+ -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.40-nikolaik \-e LOG_ALL_EVENTS=true \-v /var/run/docker.sock:/var/run/docker.sock \-v ~/.openhands-state:/.openhands-state \-p 3000:3000 \--add-host host.docker.internal:host-gateway \--name openhands-app \- docker.all-hands.dev/all-hands-ai/openhands:0.39+ docker.all-hands.dev/all-hands-ai/openhands:0.40```You'll find OpenHands running at http://localhost:3000!diff --git a/docs/usage/llms/local-llms.mdx b/docs/usage/llms/local-llms.mdxindex 12ead1719f..1f14381f5e 100644--- a/docs/usage/llms/local-llms.mdx+++ b/docs/usage/llms/local-llms.mdx@@ -23,7 +23,7 @@ We recommend using [LMStudio](https://lmstudio.ai/) for serving these models loc- Option 2: Download a LLM in GGUF format. For example, to download [Devstral Small 2505 GGUF](https://huggingface.co/mistralai/Devstral-Small-2505_gguf), using `huggingface-cli download mistralai/Devstral-Small-2505_gguf --local-dir mistralai/Devstral-Small-2505_gguf`. Then in bash terminal, run `lms import {model_name}` in the directory where you've downloaded the model checkpoint (e.g. run `lms import devstralQ4_K_M.gguf` in `mistralai/Devstral-Small-2505_gguf`)3. Open LM Studio application, you should first switch to `power user` mode, and then open the developer tab:-+4. Then click `Select a model to load` on top of the application:@@ -54,25 +54,25 @@ Check [the installation guide](https://docs.all-hands.dev/modules/usage/installaexport LMSTUDIO_MODEL_NAME="imported-models/uncategorized/devstralq4_k_m.gguf" # <- Replace this with the model name you copied from LMStudioexport LMSTUDIO_URL="http://host.docker.internal:1234" # <- Replace this with the port from LMStudio-docker pull docker.all-hands.dev/all-hands-ai/runtime:0.39-nikolaik+docker pull docker.all-hands.dev/all-hands-ai/runtime:0.40-nikolaikmkdir -p ~/.openhands-state && echo '{"language":"en","agent":"CodeActAgent","max_iterations":null,"security_analyzer":null,"confirmation_mode":false,"llm_model":"lm_studio/'$LMSTUDIO_MODEL_NAME'","llm_api_key":"dummy","llm_base_url":"'$LMSTUDIO_URL/v1'","remote_runtime_resource_factor":null,"github_token":null,"enable_default_condenser":true,"user_consents_to_analytics":true}' > ~/.openhands-state/settings.jsondocker run -it --rm --pull=always \- -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.39-nikolaik \+ -e SANDBOX_RUNTIME_CONTAINER_IMAGE=docker.all-hands.dev/all-hands-ai/runtime:0.40-nikolaik \-e LOG_ALL_EVENTS=true \-v /var/run/docker.sock:/var/run/docker.sock \-v ~/.openhands-state:/.openhands-state \-p 3000:3000 \--add-host host.docker.internal:host-gateway \--name openhands-app \- docker.all-hands.dev/all-hands-ai/openhands:0.39+ docker.all-hands.dev/all-hands-ai/openhands:0.40```Once your server is running -- you can visit `http://localhost:3000` in your browser to use OpenHands with local Devstral model:```Digest: sha256:e72f9baecb458aedb9afc2cd5bc935118d1868719e55d50da73190d3a85c674f-Status: Image is up to date for docker.all-hands.dev/all-hands-ai/openhands:0.39+Status: Image is up to date for docker.all-hands.dev/all-hands-ai/openhands:0.40Starting OpenHands...Running OpenHands as root14:22:13 - openhands:INFO: server_config.py:50 - Using config class None@@ -152,7 +152,7 @@ Start OpenHands using `make run`.### Configure OpenHands-Once OpenHands is running, you'll need to set the following in the OpenHands UI through the Settings under the `LLM` tab:+Once OpenHands is running, you'll need to set the following in the OpenHands UI through the Settings under the `LLM` tab:1. Enable `Advanced` options.2. Set the following:- `Custom Model` to `openai/<served-model-name>` (e.g. `openai/openhands-lm-32b-v0.1`)