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

$ pip install ai-execute

Usage

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

$ 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.0.tar.gz (18.1 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.0-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ai_execute-0.1.0.tar.gz
  • Upload date:
  • Size: 18.1 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.0.tar.gz
Algorithm Hash digest
SHA256 74242bb913c0b0cf7e0b678e606d48da9e54934fc6e78a5a45931e43a332e68d
MD5 cf072609e4ef839a304702120cb903de
BLAKE2b-256 1783e4126d374ed91a67318a3d083d2557a6b41ab3648b84a18407a16f477863

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ai_execute-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 18.4 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 63113f26d20e6c328d6749b110d05af2eda36417ec6bb1ed45fef088f70570bd
MD5 be3d095e9d64417fa7d22d03bca7bdd5
BLAKE2b-256 1953b5bc9b263c0e16e0fb58b59aaa506fa8a7cdf5a1e5908b39d9187989df98

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