Skip to content

Instantly share code, notes, and snippets.

@odyssey4me
Last active April 3, 2024 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save odyssey4me/95a95023f5ec9c9a481a7051455cff9d to your computer and use it in GitHub Desktop.
Save odyssey4me/95a95023f5ec9c9a481a7051455cff9d to your computer and use it in GitHub Desktop.
OpenDevin on Windows 11 - this no longer works!
#
# Unfortunately, this does not work due to python libraries that do not support windows natively.
# Use a WSL VM instead!
#
# ref: https://github.com/OpenDevin/OpenDevin
# This must all be done from a Powershell Prompt run as Administrator
# install chocolatey (for ease of installing packages)
# https://docs.chocolatey.org/en-us/choco/setup
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
# install required packages
choco install -y git make nodejs choco install podman-desktop python311
# enable virtual machine platform
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
# enable WSL2
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
wsl --install --no-distribution
wsl --set-default-version 2
# then reboot
# setup podman-desktop, including docker compatibility
# https://podman-desktop.io/docs/installation/windows-install (skip the install, it was done already)
# https://podman-desktop.io/docs/migrating-from-docker/emulating-docker-cli-with-podman
# git clone opendevin
git clone https://github.com/OpenDevin/OpenDevin.git
cd OpenDevin
# Start the build
make build
# Prepare config.toml in current dir (it is git ignored)
# Template: https://github.com/OpenDevin/OpenDevin/blob/main/config.toml.template
# Ensure that / is used instead of \ for the workspace path
# start the backend
make start-backend
# in another window, start the frontend
make start-frontend
# open a browser to http://localhost:3001/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment