2.5 KiB
2.5 KiB
Edison Installation Guide
This guide covers how to install Edison on different operating systems.
Prerequisites
Before installing Edison, ensure you have:
- Python 3.6 or higher
- pip (Python package manager)
- An OpenAI API key
Installation Process
flowchart LR
A[Get Repository] --> B[Install Dependencies]
B --> C[Configure API Key]
C --> D[Test Installation]
style A fill:#f9d5e5,stroke:#333,stroke-width:2px
style B fill:#eeeeee,stroke:#333,stroke-width:2px
style C fill:#d3f6db,stroke:#333,stroke-width:2px
style D fill:#d3f6f5,stroke:#333,stroke-width:2px
Linux and macOS
-
Clone the repository:
git clone https://github.com/user/command-assistant cd command-assistant -
Run the installation script:
source install_edison.shThis script will:
- Create a virtual environment
- Install required dependencies
- Set up the Edison command
-
Configure your OpenAI API key using one of these methods:
- Environment variable:
export OPENAI_API_KEY=<yourkey> - Create a file at
~/.openai.apikeywith just the key - Add the key to the
edison.yamlconfiguration file
- Environment variable:
Windows
-
Clone the repository:
git clone https://github.com/user/command-assistant cd command-assistant -
Run the installation script:
.\install_edison.bat -
Configure your OpenAI API key using one of these methods:
- Environment variable:
$env:OPENAI_API_KEY="<yourkey>" - Create a file at
~/.openai.apikeywith just the key - Add the key to the
edison.yamlconfiguration file
- Environment variable:
Manual Installation
If you prefer to install manually:
-
Clone the repository:
git clone https://github.com/user/command-assistant cd command-assistant -
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate -
Install the package:
pip install -e . -
Configure your OpenAI API key as described above
Verifying Installation
To test your installation, run:
edison what is the current time
You should see a command generated that displays the current time.
Troubleshooting
If you encounter issues during installation:
- Ensure Python 3.6+ is installed and in your PATH
- Check that your OpenAI API key is correctly set
- Verify that all dependencies were installed correctly
See the Troubleshooting page for more detailed help.