Skip to main content

Use AI to generate terminal commands

Project description

AI Execute (aix)

AI-powered console command generator.

Overview

aix is a command-line tool that uses a locally-hosted AI model to generate terminal commands based on user prompts. It provides a convenient way to generate commands while incorporating safety measures to prevent the execution of dangerous or invalid commands.

WARNING: while safety measures in place, it is still important to use this tool carefully. Verify all commands it provides. If you choose to automatically execute commands, do not ask it to do anything dangerous. While there are safety nets in-place, do not rely on them. TL;DR: use at your own risk.

Features

  • Generate terminal commands using AI.
  • Automatically adapts to your operating system/shell.
  • Safety checks for potentially dangerous commands.
  • Manual verification prompts for added security.
  • Optional --yes flag for automatic execution of commands with no found vulnerabilities. See the above disclaimer.

Installation

  1. Download Ollama at the official site: https://ollama.com/download
  2. Download llama3.1 (8 billion parameter version) This will take approx 5gb
$ ollama run llama3.1:8b

``shell $ pip install ai-execute


## Usage

Run the `aix` command with a prompt to generate a terminal command

```shell
$ aix "List all files in the current directory"

Options

  • --yes, -y: Automatically execute the generated command if no safety warnings are found. See the above disclaimer.

Example:

$ aix "Create a new file called cats.txt"

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

ai_execute-0.1.1.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

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

ai_execute-0.1.1-py3-none-any.whl (18.8 kB view details)

Uploaded Python 3

File details

Details for the file ai_execute-0.1.1.tar.gz.

File metadata

  • Download URL: ai_execute-0.1.1.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for ai_execute-0.1.1.tar.gz
Algorithm Hash digest
SHA256 94551ab83a7527735fcf20e6d48d8da7915a7f7befff7f41543f8d9f2e810164
MD5 5bfe4a70ea37d06768c5ad28c898a747
BLAKE2b-256 a744f437845199dd44cccf8dfa371ba906588d0f8b6450f722eefee33f10a576

See more details on using hashes here.

File details

Details for the file ai_execute-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ai_execute-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 18.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for ai_execute-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 74bca486497fd82fad80625cd832dcbd44d3c60655502d131fcab4d61e7c4cde
MD5 692ebce3909a2309af739c67f9adb2c8
BLAKE2b-256 2152d6c8956508ef3b894a8a0e1a33b11557ec0bbb4cc62536fcff38ecd525c0

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