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.1.tar.gz (5.4 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.1-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for akscmd-0.1.1.tar.gz
Algorithm Hash digest
SHA256 972bb34e8517a3b607732ee2f212340da078db6bb90a051a616e8b8888a6ae32
MD5 588683d7ef69d217668cfa3e27b85790
BLAKE2b-256 b18559ba39169f92b9b1e6f647a90b19c4762769435c4abd6bdb21238f673cd0

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for akscmd-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ea95b23b225c8b263aad347d9a7dfe0cbb70e6bf20d250801330bbd10b9400c2
MD5 ca4c8109014fbed43f773abe4bf21390
BLAKE2b-256 ba0a38443a8385a9ad9d03bde7b7bcacfc5d88f15f3070303810d701d036916c

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