a simple tool for querying shell command in terminal
- Set the OpenAI API Key
export OPENAI_API_KEY="your-api-key-here"
-
Modify the Configuration in cw.py
You can adjust the BASE_URL and MODEL parameters in cw.py as needed to connect to the appropriate service and specify the model. -
Grant Execution Permission to cw.py
chmod +x cw.py
- Place the cw File in the System Path
To be able to call the cw command directly from the terminal, copy the generated cw file to the /usr/local/bin directory.
For example:
sudo cp cw /usr/local/bin
$ cw find all python file in the folder
find . -name "*.py"