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
--yesflag for automatic execution of commands with no found vulnerabilities. See the above disclaimer.
Installation
- Download Ollama at the official site: https://ollama.com/download
- 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"
Metadata
Release files for ai-execute 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ai_execute-0.1.1.tar.gz | 18.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ai_execute-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 37.3 kB
Release files / ai_execute-0.1.1.tar.gz
| Download URL | ai_execute-0.1.1.tar.gz |
|---|---|
| Size | 18.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
94551ab83a7527735fcf20e6d48d8da7915a7f7befff7f41543f8d9f2e810164
|
|
BLAKE2b-256 checksum How to use checksums |
a744f437845199dd44cccf8dfa371ba906588d0f8b6450f722eefee33f10a576
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.2
|
Release files / ai_execute-0.1.1-py3-none-any.whl
| Download URL | ai_execute-0.1.1-py3-none-any.whl |
|---|---|
| Size | 18.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
74bca486497fd82fad80625cd832dcbd44d3c60655502d131fcab4d61e7c4cde
|
|
BLAKE2b-256 checksum How to use checksums |
2152d6c8956508ef3b894a8a0e1a33b11557ec0bbb4cc62536fcff38ecd525c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.2
|
Security for ai-execute 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.