Skip to main content

Natural language to shell command.

Project description

autocmd

Natural language to shell command.

Demo

Installation

uv tool install autocmd-cli

Quick start

First run triggers setup for shell integration and LLM provider:

autocmd "check git status"

After setup, commands appear on your prompt ready to edit:

autocmd "git fetch all updates from remote"
# → git fetch --all

autocmd "show git log for last 5 commits"
autocmd "find all python files modified today"
autocmd "kill process on port 3000"

Multiline prompts

Use triple quotes for multiline prompts or prompts with quotes:

autocmd '"""find all log files
that contain "ERROR"
modified in the last hour"""'

autocmd '"""search for files with 'important' in the name"""'

Providers

Supports multiple LLM providers:

  • Anthropic (Claude) - default
  • OpenAI (GPT)
  • Groq (Llama)
  • Grok (xAI)
  • Deepseek
  • Openrouter

Configure via autocmd --settings or environment variables:

export AUTOCMD_PROVIDER=groq
export GROQ_API_KEY=your_key_here
export AUTOCMD_MODEL=llama-3.3-70b-versatile  # optional

Configuration

autocmd --settings  # Configure provider, API key, model, and streaming
autocmd --reset     # Reset all configuration

Development

git clone https://github.com/dvirzg/autocmd.git
cd autocmd
./dev-setup.sh
source ~/.zshrc  # or ~/.bashrc

# Always uses the local code
autocmd-dev "check git status"

Uninstall

uv tool uninstall autocmd

Then remove the autocmd line from your shell config if you want to fully clean it up.

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

autocmd_cli-0.2.2.tar.gz (459.5 kB view details)

Uploaded Source

Built Distribution

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

autocmd_cli-0.2.2-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file autocmd_cli-0.2.2.tar.gz.

File metadata

  • Download URL: autocmd_cli-0.2.2.tar.gz
  • Upload date:
  • Size: 459.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for autocmd_cli-0.2.2.tar.gz
Algorithm Hash digest
SHA256 abba2ed3b7fdaa987b5d97100599f6beaeebbb1432cb3e0bfbb5d501f01d26c9
MD5 948eb1fa477d5d194c744b5571d7caf2
BLAKE2b-256 9b6d5e3000a5a7095ba3b1b15938ece5050c5fc343c7cdca801760f0548bbf6f

See more details on using hashes here.

Provenance

The following attestation bundles were made for autocmd_cli-0.2.2.tar.gz:

Publisher: publish.yml on dvirzg/autocmd

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file autocmd_cli-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: autocmd_cli-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 9.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for autocmd_cli-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9e32297c05a25316ed4e5f1dc0da40f3491ce65ba81a169d6946d32157129e9a
MD5 f483c021385768aab2fc7129036eda0e
BLAKE2b-256 a64883bd70a2e6b5c0c7d5e8e5a24b8366c6aa34a27fd890f4e68ef3864c0d49

See more details on using hashes here.

Provenance

The following attestation bundles were made for autocmd_cli-0.2.2-py3-none-any.whl:

Publisher: publish.yml on dvirzg/autocmd

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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