Skip to main content

AI-powered Command Generator using Local LLMs

Project description

qcmd - AI-powered Command Generator

A simple command-line tool that generates shell commands using local AI models via Ollama.

Version 1.0.1

Overview

qcmd is a powerful command-line tool that generates shell commands using AI language models via Ollama. Simply describe what you want to do in natural language, and qcmd will generate the appropriate command.

Key Features

  • Natural Language Inputs: Describe what you want to do in plain English
  • Auto-fix Mode: Automatically fixes failed commands and retries
  • AI Error Analysis: Explains errors and suggests solutions
  • Interactive Shell: Continuous operation with command history
  • Multiple Models: Works with any Ollama model (default: qwen2.5-coder:0.5b)
  • Safety First: Always asks for confirmation before executing any command
  • Log Analysis: Find and analyze system log files with real-time monitoring

Installation

Prerequisites

  • Python 3.6 or higher
  • Ollama installed and running
  • At least one language model pulled (e.g., qwen2.5-coder:0.5b)

Install from PyPI

pip install ibrahimiq-qcmd

Make sure Ollama is running before using qcmd:

ollama serve

Basic Usage

# Generate and confirm a command
qcmd "list all files in the current directory"

# Auto-execute mode
qcmd -e "find large log files"

# Smart auto-fix mode
qcmd -A "find Python files modified today"

# Interactive shell
qcmd -s

What's New in 1.0.1

  • Updated documentation with improved installation instructions
  • Fixed package structure for better compatibility
  • Added PyPI integration for easier installation

Full Documentation

For full documentation and source code, visit the GitHub repository.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ibrahimiq_qcmd-1.0.1.tar.gz (42.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ibrahimiq_qcmd-1.0.1-py3-none-any.whl (21.0 kB view details)

Uploaded Python 3

File details

Details for the file ibrahimiq_qcmd-1.0.1.tar.gz.

File metadata

  • Download URL: ibrahimiq_qcmd-1.0.1.tar.gz
  • Upload date:
  • Size: 42.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for ibrahimiq_qcmd-1.0.1.tar.gz
Algorithm Hash digest
SHA256 fe77940601e695726257545b3ae2cb5798c4628821bd91b028595498192e9092
MD5 71cc02dab985e4fe6c58940e0a3c9f45
BLAKE2b-256 211db411db0fbdcadf9d37754428a79f7568d6306d1cc7f52f4486af18e19800

See more details on using hashes here.

File details

Details for the file ibrahimiq_qcmd-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: ibrahimiq_qcmd-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 21.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for ibrahimiq_qcmd-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 664f4eba0d6b5cc52e53219d9a37b607500ff4888b1311876a51046520029f4e
MD5 401f9aa11d6c107a1b267852ccd6852f
BLAKE2b-256 5b94905bcb04d3085bef8ed1db7f3c07655ccbfb6376fc7f2d428371e467b85a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page