OpenDevin icon indicating copy to clipboard operation
OpenDevin copied to clipboard

Bug on Windows

Open PierrunoYT opened this issue 3 months ago • 8 comments

I runned this but it did not worked.

Step 1: Set up the OpenAI API key

  1. Sign in to OpenAI or create an account at https://openai.com/
  2. Navigate to https://platform.openai.com/account/api-keys
  3. Click "Create new secret key"
  4. Copy the generated API key

Step 2: Create a project folder

  1. Create a new folder for your OpenDevin project, e.g., C:\opendevin

Step 3: Create a virtual environment

  1. Open the Windows command prompt (cmd.exe)
  2. Navigate to your project folder: cd C:\opendevin
  3. Create a new virtual environment with venv: python -m venv env

Step 4: Activate the virtual environment

  1. Activate the virtual environment: env\Scripts\activate

Step 5: Set environment variables

  1. Set the OPENAI_API_KEY environment variable: set OPENAI_API_KEY=your_api_key_here
  2. Set the WORKSPACE_DIR environment variable: set WORKSPACE_DIR=C:\opendevin

Step 6: Install dependencies

  1. Install the Python dependencies: python -m pip install -r requirements.txt

Step 7: Start the backend

  1. Start the OpenDevin backend: uvicorn opendevin.server.listen:app --port 3000

Step 8: Start the frontend (new terminal)

  1. Open a new command prompt
  2. Navigate to the frontend folder: cd C:\opendevin\frontend
  3. Install the Node.js dependencies: npm install
  4. 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.

PierrunoYT avatar Mar 25 '24 16:03 PierrunoYT