From 05166ab22032f970a6e29a6e7ed339a81b1e7181 Mon Sep 17 00:00:00 2001 From: zenitogr <109196423+zenitogr@users.noreply.github.com> Date: Tue, 30 Jul 2024 04:00:26 +0300 Subject: [PATCH 01/12] Update run_opendevin.sh --- run_opendevin.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/run_opendevin.sh b/run_opendevin.sh index 1bcf0b8..d677df9 100644 --- a/run_opendevin.sh +++ b/run_opendevin.sh @@ -1,22 +1,21 @@ #!/usr/bin/env sh - -# Use Unix line ending (so don't edit the script with notepad) -# Call the script with the following command (assuming WSL is installed) -# wsl -e ./run_opendevin.sh # Define variables WORKSPACE_BASE=$(pwd)/workspace; SANDBOX_USER_ID=$(id -u) PERSIST_SANDBOX="true" -# SSH_PASSWORD="make something up here" SSH_PASSWORD="sshpassword" -IMAGE_NAME="ghcr.io/opendevin/opendevin:0.5" +IMAGE_NAME="ghcr.io/opendevin/opendevin" CONTAINER_PORT=3000 -HOST_PORT=3000 - +HOST_PORT=3000 +NAME=opendevin-app-$(date +%Y%m%d%H%M%S) +echo "$NAME\n" >> "docker_container_names.txt" # Run the Docker container docker run -it \ - --pull=missing \ + --pull=always \ -e SANDBOX_USER_ID=$SANDBOX_USER_ID \ + -e LLM_MODEL="openai/" \ + -e LLM_BASE_URL="http://host.docker.internal:1234/v1" \ + -e CUSTOM_LLM_PROVIDER="openai" \ -e PERSIST_SANDBOX=$PERSIST_SANDBOX \ -e SSH_PASSWORD=$SSH_PASSWORD \ -e WORKSPACE_MOUNT_PATH=$WORKSPACE_BASE \ @@ -24,4 +23,5 @@ docker run -it \ -v /var/run/docker.sock:/var/run/docker.sock \ -p $HOST_PORT:$CONTAINER_PORT \ --add-host host.docker.internal:host-gateway \ + --name $NAME \ $IMAGE_NAME From 0af6f5d42fa3cbfcd944d2610f7f6db364e3daea Mon Sep 17 00:00:00 2001 From: zenitogr <109196423+zenitogr@users.noreply.github.com> Date: Tue, 30 Jul 2024 04:30:13 +0300 Subject: [PATCH 02/12] Update README.md --- README.md | 86 +++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 68 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index a2a4b4f..30ac9e9 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,44 @@ ## How to install and run OpenDevin on Windows 11: 1. Install [Windows Subsystem for Linux](https://learn.microsoft.com/en-us/windows/wsl/install). + - open powershell + - run `wsl` + - after the wsl is ready you might need to re run `wsl` + - run `wsl -i -d Ubuntu` or `wsl -i -d Debian` + - restart windows + - powershell will open and ask for username and password for wsl distro + - wsl distro loads + - run `sudo echo 'you have sudo'` to check password and sudo rights + - run `sudo apt-get update && sudo apt-get upgrade -y` + - if you see some packages not updated run: + - `sudo apt-get install ` example `sudo apt-get install python3 ubuntu-pro` + - put default user by running: + - `sudo nano /etc/wsl.conf` append: + + ``` + [user] + default= + ``` + + - tips for nano: + - ctrl+x closes the nano editor asking where to save and if you want to overide + - simply press y and enter + + - should look like this: + + ``` + [boot] + systemd=true + [user] + default=zen + ``` + 2. Install [Docker Desktop](https://docs.docker.com/desktop/install/windows-install/). -3. Create a folder named "OpenDevin" (or a name of your choosing) and inside that folder create a folder named "workspace". -4. Inside the "OpenDevin" folder you just created, create a bash script with Unix-style line termination (LF) (do not use Microsoft Notepad...) and name it something like "run_opendevin.sh". The content of the bash script should be as follows: +3. Create a folder named "OpenDevin" (or a name of your choosing) +4. Inside that folder create a folder named "workspace". +5. Either git clone this repo or Inside the "OpenDevin" folder you just created +6. create a bash script with Unix-style line termination (LF) (do not use Microsoft Notepad...) +7. and name it something like "run_opendevin.sh". The content of the bash script should be as follows: ```bash #!/usr/bin/env sh @@ -15,13 +50,19 @@ SANDBOX_USER_ID=$(id -u) PERSIST_SANDBOX="true" SSH_PASSWORD="sshpassword" - IMAGE_NAME="ghcr.io/opendevin/opendevin:0.5" + IMAGE_NAME="ghcr.io/opendevin/opendevin" CONTAINER_PORT=3000 HOST_PORT=3000 + NAME=opendevin-app-$(date +%Y%m%d%H%M%S) + echo "$NAME\n" >> "docker_container_names.txt" # Run the Docker container docker run -it \ - --pull=missing \ + --pull=always \ -e SANDBOX_USER_ID=$SANDBOX_USER_ID \ + -e LLM_MODEL="openai/" \ + -e LLM_BASE_URL="http://host.docker.internal:1234/v1" \ + -e LLM_API_KEY="lm-studio" \ + -e CUSTOM_LLM_PROVIDER="openai" \ -e PERSIST_SANDBOX=$PERSIST_SANDBOX \ -e SSH_PASSWORD=$SSH_PASSWORD \ -e WORKSPACE_MOUNT_PATH=$WORKSPACE_BASE \ @@ -29,37 +70,46 @@ -v /var/run/docker.sock:/var/run/docker.sock \ -p $HOST_PORT:$CONTAINER_PORT \ --add-host host.docker.internal:host-gateway \ + --name $NAME \ $IMAGE_NAME ``` - -5. To check the Linux distributions installed in WSL, use the following command in a Windows Terminal. If you haven't installed any other distributions, you should see only `*docker-desktop` listed. The asterisk means it's the default distribution invoked by the `wsl` command if no `-d distro-name` is given. + - tips: + - change the model name, it should be the string in the LM-Studio local server python code example (find the line model="some model name") + - set the LM-Studio local server port to 1234 + +8. To check the Linux distributions installed in WSL, use the following command in a Windows Terminal. If you haven't installed any other distributions, you should see only `*docker-desktop` listed. The asterisk means it's the default distribution invoked by the `wsl` command if no `-d distro-name` is given. ```bash wsl -l -v ``` -6. Install Debian with the following command in a Windows Terminal: - - ```bash - wsl --install -d Debian - ``` - -7. Make Debian the default distribution launched by the `wsl` command with the following: +9. Make Debian the default distribution launched by the `wsl` command with the following: ```bash wsl -s Debian ``` -8. Open Docker Desktop and click on the gear icon in the top right corner. Under Resources -> WSL integration, look for "Enable integration with additional distros:". Enable Debian by clicking on the button. -9. Now run the bash script created earlier. Assuming the script is named "run_opendevin.sh", type the following command in a Windows Terminal: +10. in windows edit .wslconfig file in your user folder +11. append `networkingMode=mirrored` +12. in powershell run `wsl --shutdown` +13. docker will ask to restart press ok and restart +14. Open Docker Desktop +15. click on the gear icon in the top right corner. +16. Under Resources -> WSL integration: +17. look for "Enable integration with additional distros:". +18. Enable Debian by clicking on the slider. +19. Now run the bash script created earlier. Assuming the script is named "run_opendevin.sh" +20. run the following command in a Windows Terminal, cd to the folder that contains it: ```bash wsl -e ./run_opendevin.sh ``` -10. At this point, since it's the first time the script is run, the Docker image will be downloaded. Each subsequent invocation of the script will run the locally downloaded image. -11. Once the Docker image is running, the OpenDevin GUI can be accessed by pointing your web browser to: [http://localhost:3000](http://localhost:3000). +21. At this point, since it's the first time the script is run, the Docker OpenDevin image will be downloaded +22. Each subsequent invocation of the script will run the locally downloaded image. +23. Once the Docker image is running, the OpenDevin GUI can be accessed by pointing your web browser to: + - [http://localhost:3000](http://localhost:3000). More documentation can be found here: - [OpenDevin GitHub page](https://github.com/OpenDevin/OpenDevin) -- [OpenDevin documentation page](https://opendevin.github.io/OpenDevin/modules/usage/intro) +- [Local LLM with Ollama | OpenDevin Docs](https://docs.all-hands.dev/modules/usage/llms/localLLMs) From 9c3d4019be9a3100cf54e483cdec876b41131a94 Mon Sep 17 00:00:00 2001 From: zenitogr <109196423+zenitogr@users.noreply.github.com> Date: Tue, 30 Jul 2024 04:30:36 +0300 Subject: [PATCH 03/12] Update run_opendevin.sh --- run_opendevin.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/run_opendevin.sh b/run_opendevin.sh index d677df9..78166a4 100644 --- a/run_opendevin.sh +++ b/run_opendevin.sh @@ -16,6 +16,7 @@ docker run -it \ -e LLM_MODEL="openai/" \ -e LLM_BASE_URL="http://host.docker.internal:1234/v1" \ -e CUSTOM_LLM_PROVIDER="openai" \ + -e LLM_API_KEY="lm-studio" \ -e PERSIST_SANDBOX=$PERSIST_SANDBOX \ -e SSH_PASSWORD=$SSH_PASSWORD \ -e WORKSPACE_MOUNT_PATH=$WORKSPACE_BASE \ From 0b1c7c9d073db7e3ae9fcbaab2f7e8722ec0429c Mon Sep 17 00:00:00 2001 From: zenitogr <109196423+zenitogr@users.noreply.github.com> Date: Tue, 30 Jul 2024 04:37:41 +0300 Subject: [PATCH 04/12] Rename run_opendevin.sh to run_opendevin_lm-studio.sh --- run_opendevin.sh => run_opendevin_lm-studio.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename run_opendevin.sh => run_opendevin_lm-studio.sh (100%) diff --git a/run_opendevin.sh b/run_opendevin_lm-studio.sh similarity index 100% rename from run_opendevin.sh rename to run_opendevin_lm-studio.sh From 4c76d69e8cbcec7bb0e05d3a204965cb189adfdb Mon Sep 17 00:00:00 2001 From: zenitogr <109196423+zenitogr@users.noreply.github.com> Date: Tue, 30 Jul 2024 04:38:34 +0300 Subject: [PATCH 05/12] Create lm-studio-instructions --- lm-studio-instructions | 1 + 1 file changed, 1 insertion(+) create mode 100644 lm-studio-instructions diff --git a/lm-studio-instructions b/lm-studio-instructions new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/lm-studio-instructions @@ -0,0 +1 @@ + From 42dda9b973a3a6e58b7e9ff68bed6f0e5db5575a Mon Sep 17 00:00:00 2001 From: zenitogr <109196423+zenitogr@users.noreply.github.com> Date: Tue, 30 Jul 2024 04:39:29 +0300 Subject: [PATCH 06/12] Update and rename lm-studio-instructions to lm-studio-instructions.md --- lm-studio-instructions | 1 - lm-studio-instructions.md | 114 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 114 insertions(+), 1 deletion(-) delete mode 100644 lm-studio-instructions create mode 100644 lm-studio-instructions.md diff --git a/lm-studio-instructions b/lm-studio-instructions deleted file mode 100644 index 8b13789..0000000 --- a/lm-studio-instructions +++ /dev/null @@ -1 +0,0 @@ - diff --git a/lm-studio-instructions.md b/lm-studio-instructions.md new file mode 100644 index 0000000..b7941cb --- /dev/null +++ b/lm-studio-instructions.md @@ -0,0 +1,114 @@ +2024/07/30 + +## How to install and run OpenDevin on Windows 11: + +1. Install [Windows Subsystem for Linux](https://learn.microsoft.com/en-us/windows/wsl/install). + - open powershell + - run `wsl` + - after the wsl is ready you might need to re run `wsl` + - run `wsl -i -d Ubuntu` or `wsl -i -d Debian` + - restart windows + - powershell will open and ask for username and password for wsl distro + - wsl distro loads + - run `sudo echo 'you have sudo'` to check password and sudo rights + - run `sudo apt-get update && sudo apt-get upgrade -y` + - if you see some packages not updated run: + - `sudo apt-get install ` example `sudo apt-get install python3 ubuntu-pro` + - put default user by running: + - `sudo nano /etc/wsl.conf` append: + + ``` + [user] + default= + ``` + + - tips for nano: + - ctrl+x closes the nano editor asking where to save and if you want to overide + - simply press y and enter + + - should look like this: + + ``` + [boot] + systemd=true + [user] + default=zen + ``` + +2. Install [Docker Desktop](https://docs.docker.com/desktop/install/windows-install/). +3. Create a folder named "OpenDevin" (or a name of your choosing) +4. Inside that folder create a folder named "workspace". +5. Either git clone this repo or Inside the "OpenDevin" folder you just created +6. create a bash script with Unix-style line termination (LF) (do not use Microsoft Notepad...) +7. and name it something like "run_opendevin.sh". The content of the bash script should be as follows: + + ```bash + #!/usr/bin/env sh + # Define variables + WORKSPACE_BASE=$(pwd)/workspace; + SANDBOX_USER_ID=$(id -u) + PERSIST_SANDBOX="true" + SSH_PASSWORD="sshpassword" + IMAGE_NAME="ghcr.io/opendevin/opendevin" + CONTAINER_PORT=3000 + HOST_PORT=3000 + NAME=opendevin-app-$(date +%Y%m%d%H%M%S) + echo "$NAME\n" >> "docker_container_names.txt" + # Run the Docker container + docker run -it \ + --pull=always \ + -e SANDBOX_USER_ID=$SANDBOX_USER_ID \ + -e LLM_MODEL="openai/" \ + -e LLM_BASE_URL="http://host.docker.internal:1234/v1" \ + -e LLM_API_KEY="lm-studio" \ + -e CUSTOM_LLM_PROVIDER="openai" \ + -e PERSIST_SANDBOX=$PERSIST_SANDBOX \ + -e SSH_PASSWORD=$SSH_PASSWORD \ + -e WORKSPACE_MOUNT_PATH=$WORKSPACE_BASE \ + -v $WORKSPACE_BASE:/opt/workspace_base \ + -v /var/run/docker.sock:/var/run/docker.sock \ + -p $HOST_PORT:$CONTAINER_PORT \ + --add-host host.docker.internal:host-gateway \ + --name $NAME \ + $IMAGE_NAME + ``` + - tips: + - change the model name, it should be the string in the LM-Studio local server python code example (find the line model="some model name") + - set the LM-Studio local server port to 1234 + +8. To check the Linux distributions installed in WSL, use the following command in a Windows Terminal. If you haven't installed any other distributions, you should see only `*docker-desktop` listed. The asterisk means it's the default distribution invoked by the `wsl` command if no `-d distro-name` is given. + + ```bash + wsl -l -v + ``` + +9. Make Debian the default distribution launched by the `wsl` command with the following: + + ```bash + wsl -s Debian + ``` + +10. in windows edit .wslconfig file in your user folder +11. append `networkingMode=mirrored` +12. in powershell run `wsl --shutdown` +13. docker will ask to restart press ok and restart +14. Open Docker Desktop +15. click on the gear icon in the top right corner. +16. Under Resources -> WSL integration: +17. look for "Enable integration with additional distros:". +18. Enable Debian by clicking on the slider. +19. Now run the bash script created earlier. Assuming the script is named "run_opendevin.sh" +20. run the following command in a Windows Terminal, cd to the folder that contains it: + + ```bash + wsl -e ./run_opendevin.sh + ``` + +21. At this point, since it's the first time the script is run, the Docker OpenDevin image will be downloaded +22. Each subsequent invocation of the script will run the locally downloaded image. +23. Once the Docker image is running, the OpenDevin GUI can be accessed by pointing your web browser to: + - [http://localhost:3000](http://localhost:3000). + +More documentation can be found here: +- [OpenDevin GitHub page](https://github.com/OpenDevin/OpenDevin) +- [Local LLM with Ollama | OpenDevin Docs](https://docs.all-hands.dev/modules/usage/llms/localLLMs) From 74c67b24d68179f0a2f78bc4e678d5d1a6245901 Mon Sep 17 00:00:00 2001 From: zenitogr <109196423+zenitogr@users.noreply.github.com> Date: Tue, 30 Jul 2024 04:42:36 +0300 Subject: [PATCH 07/12] Update README.md --- README.md | 86 ++++++++++++------------------------------------------- 1 file changed, 18 insertions(+), 68 deletions(-) diff --git a/README.md b/README.md index 30ac9e9..a2a4b4f 100644 --- a/README.md +++ b/README.md @@ -4,44 +4,9 @@ ## How to install and run OpenDevin on Windows 11: 1. Install [Windows Subsystem for Linux](https://learn.microsoft.com/en-us/windows/wsl/install). - - open powershell - - run `wsl` - - after the wsl is ready you might need to re run `wsl` - - run `wsl -i -d Ubuntu` or `wsl -i -d Debian` - - restart windows - - powershell will open and ask for username and password for wsl distro - - wsl distro loads - - run `sudo echo 'you have sudo'` to check password and sudo rights - - run `sudo apt-get update && sudo apt-get upgrade -y` - - if you see some packages not updated run: - - `sudo apt-get install ` example `sudo apt-get install python3 ubuntu-pro` - - put default user by running: - - `sudo nano /etc/wsl.conf` append: - - ``` - [user] - default= - ``` - - - tips for nano: - - ctrl+x closes the nano editor asking where to save and if you want to overide - - simply press y and enter - - - should look like this: - - ``` - [boot] - systemd=true - [user] - default=zen - ``` - 2. Install [Docker Desktop](https://docs.docker.com/desktop/install/windows-install/). -3. Create a folder named "OpenDevin" (or a name of your choosing) -4. Inside that folder create a folder named "workspace". -5. Either git clone this repo or Inside the "OpenDevin" folder you just created -6. create a bash script with Unix-style line termination (LF) (do not use Microsoft Notepad...) -7. and name it something like "run_opendevin.sh". The content of the bash script should be as follows: +3. Create a folder named "OpenDevin" (or a name of your choosing) and inside that folder create a folder named "workspace". +4. Inside the "OpenDevin" folder you just created, create a bash script with Unix-style line termination (LF) (do not use Microsoft Notepad...) and name it something like "run_opendevin.sh". The content of the bash script should be as follows: ```bash #!/usr/bin/env sh @@ -50,19 +15,13 @@ SANDBOX_USER_ID=$(id -u) PERSIST_SANDBOX="true" SSH_PASSWORD="sshpassword" - IMAGE_NAME="ghcr.io/opendevin/opendevin" + IMAGE_NAME="ghcr.io/opendevin/opendevin:0.5" CONTAINER_PORT=3000 HOST_PORT=3000 - NAME=opendevin-app-$(date +%Y%m%d%H%M%S) - echo "$NAME\n" >> "docker_container_names.txt" # Run the Docker container docker run -it \ - --pull=always \ + --pull=missing \ -e SANDBOX_USER_ID=$SANDBOX_USER_ID \ - -e LLM_MODEL="openai/" \ - -e LLM_BASE_URL="http://host.docker.internal:1234/v1" \ - -e LLM_API_KEY="lm-studio" \ - -e CUSTOM_LLM_PROVIDER="openai" \ -e PERSIST_SANDBOX=$PERSIST_SANDBOX \ -e SSH_PASSWORD=$SSH_PASSWORD \ -e WORKSPACE_MOUNT_PATH=$WORKSPACE_BASE \ @@ -70,46 +29,37 @@ -v /var/run/docker.sock:/var/run/docker.sock \ -p $HOST_PORT:$CONTAINER_PORT \ --add-host host.docker.internal:host-gateway \ - --name $NAME \ $IMAGE_NAME ``` - - tips: - - change the model name, it should be the string in the LM-Studio local server python code example (find the line model="some model name") - - set the LM-Studio local server port to 1234 - -8. To check the Linux distributions installed in WSL, use the following command in a Windows Terminal. If you haven't installed any other distributions, you should see only `*docker-desktop` listed. The asterisk means it's the default distribution invoked by the `wsl` command if no `-d distro-name` is given. + +5. To check the Linux distributions installed in WSL, use the following command in a Windows Terminal. If you haven't installed any other distributions, you should see only `*docker-desktop` listed. The asterisk means it's the default distribution invoked by the `wsl` command if no `-d distro-name` is given. ```bash wsl -l -v ``` -9. Make Debian the default distribution launched by the `wsl` command with the following: +6. Install Debian with the following command in a Windows Terminal: + + ```bash + wsl --install -d Debian + ``` + +7. Make Debian the default distribution launched by the `wsl` command with the following: ```bash wsl -s Debian ``` -10. in windows edit .wslconfig file in your user folder -11. append `networkingMode=mirrored` -12. in powershell run `wsl --shutdown` -13. docker will ask to restart press ok and restart -14. Open Docker Desktop -15. click on the gear icon in the top right corner. -16. Under Resources -> WSL integration: -17. look for "Enable integration with additional distros:". -18. Enable Debian by clicking on the slider. -19. Now run the bash script created earlier. Assuming the script is named "run_opendevin.sh" -20. run the following command in a Windows Terminal, cd to the folder that contains it: +8. Open Docker Desktop and click on the gear icon in the top right corner. Under Resources -> WSL integration, look for "Enable integration with additional distros:". Enable Debian by clicking on the button. +9. Now run the bash script created earlier. Assuming the script is named "run_opendevin.sh", type the following command in a Windows Terminal: ```bash wsl -e ./run_opendevin.sh ``` -21. At this point, since it's the first time the script is run, the Docker OpenDevin image will be downloaded -22. Each subsequent invocation of the script will run the locally downloaded image. -23. Once the Docker image is running, the OpenDevin GUI can be accessed by pointing your web browser to: - - [http://localhost:3000](http://localhost:3000). +10. At this point, since it's the first time the script is run, the Docker image will be downloaded. Each subsequent invocation of the script will run the locally downloaded image. +11. Once the Docker image is running, the OpenDevin GUI can be accessed by pointing your web browser to: [http://localhost:3000](http://localhost:3000). More documentation can be found here: - [OpenDevin GitHub page](https://github.com/OpenDevin/OpenDevin) -- [Local LLM with Ollama | OpenDevin Docs](https://docs.all-hands.dev/modules/usage/llms/localLLMs) +- [OpenDevin documentation page](https://opendevin.github.io/OpenDevin/modules/usage/intro) From 6c9d97ba475d8fb3e0976cff0bc39525bd7e093d Mon Sep 17 00:00:00 2001 From: zenitogr <109196423+zenitogr@users.noreply.github.com> Date: Tue, 30 Jul 2024 04:43:25 +0300 Subject: [PATCH 08/12] Create eun_opendevin.sh --- eun_opendevin.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 eun_opendevin.sh diff --git a/eun_opendevin.sh b/eun_opendevin.sh new file mode 100644 index 0000000..1bcf0b8 --- /dev/null +++ b/eun_opendevin.sh @@ -0,0 +1,27 @@ +#!/usr/bin/env sh + +# Use Unix line ending (so don't edit the script with notepad) +# Call the script with the following command (assuming WSL is installed) +# wsl -e ./run_opendevin.sh +# Define variables +WORKSPACE_BASE=$(pwd)/workspace; +SANDBOX_USER_ID=$(id -u) +PERSIST_SANDBOX="true" +# SSH_PASSWORD="make something up here" +SSH_PASSWORD="sshpassword" +IMAGE_NAME="ghcr.io/opendevin/opendevin:0.5" +CONTAINER_PORT=3000 +HOST_PORT=3000 + +# Run the Docker container +docker run -it \ + --pull=missing \ + -e SANDBOX_USER_ID=$SANDBOX_USER_ID \ + -e PERSIST_SANDBOX=$PERSIST_SANDBOX \ + -e SSH_PASSWORD=$SSH_PASSWORD \ + -e WORKSPACE_MOUNT_PATH=$WORKSPACE_BASE \ + -v $WORKSPACE_BASE:/opt/workspace_base \ + -v /var/run/docker.sock:/var/run/docker.sock \ + -p $HOST_PORT:$CONTAINER_PORT \ + --add-host host.docker.internal:host-gateway \ + $IMAGE_NAME From c340404c3d274166b2247692ba68abc738799921 Mon Sep 17 00:00:00 2001 From: zenitogr <109196423+zenitogr@users.noreply.github.com> Date: Tue, 30 Jul 2024 04:43:44 +0300 Subject: [PATCH 09/12] Rename eun_opendevin.sh to run_opendevin.sh --- eun_opendevin.sh => run_opendevin.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename eun_opendevin.sh => run_opendevin.sh (100%) diff --git a/eun_opendevin.sh b/run_opendevin.sh similarity index 100% rename from eun_opendevin.sh rename to run_opendevin.sh From 48d1d4879162421a987ac3c63d0fb0b21d6bd6ef Mon Sep 17 00:00:00 2001 From: zenitogr <109196423+zenitogr@users.noreply.github.com> Date: Tue, 30 Jul 2024 04:53:07 +0300 Subject: [PATCH 10/12] Update lm-studio-instructions.md --- lm-studio-instructions.md | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/lm-studio-instructions.md b/lm-studio-instructions.md index b7941cb..322d18e 100644 --- a/lm-studio-instructions.md +++ b/lm-studio-instructions.md @@ -90,23 +90,28 @@ 10. in windows edit .wslconfig file in your user folder 11. append `networkingMode=mirrored` -12. in powershell run `wsl --shutdown` -13. docker will ask to restart press ok and restart -14. Open Docker Desktop -15. click on the gear icon in the top right corner. -16. Under Resources -> WSL integration: -17. look for "Enable integration with additional distros:". -18. Enable Debian by clicking on the slider. -19. Now run the bash script created earlier. Assuming the script is named "run_opendevin.sh" -20. run the following command in a Windows Terminal, cd to the folder that contains it: + - should look like this: + ``` + [wsl2] + networkingMode=mirrored + ``` +13. in powershell run `wsl --shutdown` +14. docker will ask to restart press ok and restart +15. Open Docker Desktop +16. click on the gear icon in the top right corner. +17. Under Resources -> WSL integration: +18. look for "Enable integration with additional distros:". +19. Enable Debian by clicking on the slider. +20. Now run the bash script created earlier. Assuming the script is named "run_opendevin.sh" +21. run the following command in a Windows Terminal, cd to the folder that contains it: ```bash wsl -e ./run_opendevin.sh ``` -21. At this point, since it's the first time the script is run, the Docker OpenDevin image will be downloaded -22. Each subsequent invocation of the script will run the locally downloaded image. -23. Once the Docker image is running, the OpenDevin GUI can be accessed by pointing your web browser to: +22. At this point, since it's the first time the script is run, the Docker OpenDevin image will be downloaded +23. Each subsequent invocation of the script will run the locally downloaded image. +24. Once the Docker image is running, the OpenDevin GUI can be accessed by pointing your web browser to: - [http://localhost:3000](http://localhost:3000). More documentation can be found here: From 78763a117d7f25bc0da170f6e39cdc76c2f8e503 Mon Sep 17 00:00:00 2001 From: zenitogr <109196423+zenitogr@users.noreply.github.com> Date: Tue, 30 Jul 2024 06:56:06 +0300 Subject: [PATCH 11/12] Update lm-studio-instructions.md --- lm-studio-instructions.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lm-studio-instructions.md b/lm-studio-instructions.md index 322d18e..ab04dbe 100644 --- a/lm-studio-instructions.md +++ b/lm-studio-instructions.md @@ -102,11 +102,12 @@ 17. Under Resources -> WSL integration: 18. look for "Enable integration with additional distros:". 19. Enable Debian by clicking on the slider. -20. Now run the bash script created earlier. Assuming the script is named "run_opendevin.sh" -21. run the following command in a Windows Terminal, cd to the folder that contains it: +20. Now run the bash script created earlier. Assuming the script is named "run_opendevin_lm-studio.sh" +21. run the following command in a wsl, cd to the folder that contains it: ```bash - wsl -e ./run_opendevin.sh + cd /mnt/c/......../devin + ./run_opendevin_lm-studio.sh ``` 22. At this point, since it's the first time the script is run, the Docker OpenDevin image will be downloaded From 7e12b31f37c46a153c6f8759acbec755dc4eeaf4 Mon Sep 17 00:00:00 2001 From: zenitogr <109196423+zenitogr@users.noreply.github.com> Date: Tue, 30 Jul 2024 06:57:27 +0300 Subject: [PATCH 12/12] Update lm-studio-instructions.md --- lm-studio-instructions.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lm-studio-instructions.md b/lm-studio-instructions.md index ab04dbe..1cd803f 100644 --- a/lm-studio-instructions.md +++ b/lm-studio-instructions.md @@ -113,7 +113,10 @@ 22. At this point, since it's the first time the script is run, the Docker OpenDevin image will be downloaded 23. Each subsequent invocation of the script will run the locally downloaded image. 24. Once the Docker image is running, the OpenDevin GUI can be accessed by pointing your web browser to: - - [http://localhost:3000](http://localhost:3000). + - [http://localhost:3000](http://localhost:3000) + - you will be asked for model and api: + - for model input `openai/` + - for api input `lm-studio` More documentation can be found here: - [OpenDevin GitHub page](https://github.com/OpenDevin/OpenDevin)