This is the Python version of LLM-CMD, a command-line tool that generates and executes system commands using natural language.
- Python 3.9 or higher
- pip or poetry
- Clone the repository
git clone https://github.com/whyparkc/llm-cmd-py
cd llm-cmd-py
- Create and activate virtual environment
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
- Install dependencies
pip install -r requirements.txt
- Set up environment variables
Create a
.env
file and set the following variables:
LLM_ENDPOINT="https://api.openai.com/v1"
LLM_API_KEY="your-api-key-here"
LLM_MODEL="gpt-4o-mini"
LLM_TEMPERATURE=0.7
LLM_MAX_TOKENS=100
- Install in development mode
pip install -e .
llm-cmd find all python files in current directory
MIT License