Skip to main content

Natural language → shell command using AI models, with optional <...> Enter interception

Project description

akscmd

Natural language → shell command using AI models.
Works as:

  • akscmd "<create a folder named apple>" → prints & (optionally) runs mkdir apple
  • Optional shell hook so typing <create a folder named apple> and pressing Enter runs the command directly.

Quick start

pip install akscmd
export AKSCMD_API_KEY="YOUR_API_KEY"
export AKSCMD_MODEL="YOUR_MODEL_NAME"
akscmd "<create a folder named apple>" --yes

Configuration

You need to set up two environment variables:

  1. AKSCMD_API_KEY: Your API key for the AI service
  2. AKSCMD_MODEL: The model name you want to use

Example:

export AKSCMD_API_KEY="your-api-key-here"
export AKSCMD_MODEL="gpt-4"

Usage

# Basic usage
akscmd "<create a folder named apple>"

# Auto-execute the command
akscmd "<create a folder named apple>" --yes

# Get help
akscmd --help

Development

Developed by Amit Kumar Singh. You can contact him at: aksmlibts@gmail.com

License

MIT License

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

akscmd-0.1.2.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

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

akscmd-0.1.2-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file akscmd-0.1.2.tar.gz.

File metadata

  • Download URL: akscmd-0.1.2.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for akscmd-0.1.2.tar.gz
Algorithm Hash digest
SHA256 86488d12c5eb6b605446ae7ce96497769b5b89721eafc74a715f837dbc43bb77
MD5 f918a65095765114aaf677df28c2d96b
BLAKE2b-256 cb8e9c10918bdcf7c5c40b60a7ccbff82a654272c43265c24bc805fdeaae6b82

See more details on using hashes here.

File details

Details for the file akscmd-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: akscmd-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.10

File hashes

Hashes for akscmd-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 715e736bcc334251c7c5b1a17f03f49d9a8909c68fb9bd852e6cac4dabee8987
MD5 0ce237710bcc6ea5b517108d0e63ab10
BLAKE2b-256 dfdd2077cc688d63b92a4e7f80f277800b0465b9a6c0863e54f64955844910d8

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