InstallationΒΆ
There are three ways to install OS-Copilot: using pip directly, cloning the GitHub repository, or through the pip install -e . method for a development setup. Please follow the instructions below based on your preferred installation method.
Clone the GitHub Repository (if not already done):
git clone https://github.com/OS-Copilot/OS-Copilot.git
Navigate to the Repository Directory:
cd OS-Copilot
Set Up Python Environment: Ensure you have a version 3.10 or higher Python environment. You can create and activate this environment using the following commands, replacing OS-Copilot_env with your preferred environment name:
conda create -n OS-Copilot_env python=3.10 -y conda activate OS-Copilot_env
Install Dependencies: Install the necessary dependencies.
Option 1(Recommended): Use pip to install the project in editable mode.
pip install -e .
Option 2: You can install OS-Copilot directly using pip with the following command:
pip install os-copilot-agent
Option 3: Install the necessary dependencies:
cd OS-Copilot pip install -r requirements.txt
Set OpenAI API Key: Configure your OpenAI API key in the .env file and select the model you wish to use.
MODEL_NAME="" OPENAI_API_KEY=""