OpenDevin
OpenDevin copied to clipboard
Bug on Windows
I runned this but it did not worked.
Step 1: Set up the OpenAI API key
- Sign in to OpenAI or create an account at https://openai.com/
- Navigate to https://platform.openai.com/account/api-keys
- Click "Create new secret key"
- Copy the generated API key
Step 2: Create a project folder
- Create a new folder for your OpenDevin project, e.g.,
C:\opendevin
Step 3: Create a virtual environment
- Open the Windows command prompt (cmd.exe)
- Navigate to your project folder:
cd C:\opendevin
- Create a new virtual environment with venv:
python -m venv env
Step 4: Activate the virtual environment
- Activate the virtual environment:
env\Scripts\activate
Step 5: Set environment variables
- Set the OPENAI_API_KEY environment variable:
set OPENAI_API_KEY=your_api_key_here
- Set the WORKSPACE_DIR environment variable:
set WORKSPACE_DIR=C:\opendevin
Step 6: Install dependencies
- Install the Python dependencies:
python -m pip install -r requirements.txt
Step 7: Start the backend
- Start the OpenDevin backend:
uvicorn opendevin.server.listen:app --port 3000
Step 8: Start the frontend (new terminal)
- Open a new command prompt
- Navigate to the frontend folder:
cd C:\opendevin\frontend
- Install the Node.js dependencies:
npm install
- Start the frontend:
npm run start -- --port 3001
You can now access OpenDevin at http://localhost:3001 in your browser.
Remember to deactivate the virtual environment when you're done by typing deactivate
in the command prompt.