HAI Code Generator is a powerful CLI-based chat application designed to streamline development workflows with advanced conversational capabilities and seamless task execution. It offers features like intelligent file identification and robust functionality, with Aider integrated to further enhance its efficiency and usability.
- Python == 3.9.6
- pip package manager
- Virtual environment tool
# MacOS/Linux
python3 -m venv env
# Windows
py -m venv env
# MacOS/Linux
source env/bin/activate
# Windows
.\env\Scripts\activate
💡 Tip: Verify activation by checking Python interpreter location:
# MacOS/Linux which python # Windows where python
pip3 install -e ../coder
pip3 install -r requirements.txt
cd src
python3 cli.py --api-key <OPENAI_API_KEY>
chmod +x build.sh
BINARY_PATH="../../env/lib/python3.9/site-packages/tree_sitter_languages/languages.so" ./build.sh
cd dist
./cli-1.9.3-darwin-arm64 --api-key <OPENAI_API_KEY>
- Issue: Invalid API key.
- Solution: Ensure the Valid API key is either passed directly or set in the environment and then accessed through the corresponding environment variable.