Skip to content

Python version of LLM-CMD, a command-line tool that generates and executes system commands using natural language

Notifications You must be signed in to change notification settings

whyparkc/llm-cmd-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LLM-CMD Python Version

Introduction

This is the Python version of LLM-CMD, a command-line tool that generates and executes system commands using natural language.

Getting Started

Prerequisites

  • Python 3.9 or higher
  • pip or poetry

Installation

  1. Clone the repository
git clone https://github.com/whyparkc/llm-cmd-py    
cd llm-cmd-py
  1. Create and activate virtual environment
python -m venv venv
source venv/bin/activate  # Windows: venv\Scripts\activate
  1. Install dependencies
pip install -r requirements.txt
  1. 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
  1. Install in development mode
pip install -e .

Usage Example

llm-cmd find all python files in current directory

License

MIT License

About

Python version of LLM-CMD, a command-line tool that generates and executes system commands using natural language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages