Skip to main content

CLI Translate - A tool to translate natural language to shell commands using LLMs

Project description

clitr

CLI Translate - A tool to translate natural language to shell commands using LLMs.

Installation

pip install clitr

Usage

clitr "Remove everything under the directory foo/"

The command will be printed to the console and copied to your clipboard.

Configuration

Set your OpenAI API key:

export OPENAI_API_KEY=sk-...

Or configure a local endpoint (e.g., vLLM, LMStudio). You can set this via the command line:

clitr --set-config -local_endpoint=http://127.0.0.1:1234/v1 -model=openai/qwen3-30b-a3b

Alternatively, you can manually edit ~/.clitr_config.json:

{
  "local_endpoint": "http://localhost:8000/v1",
  "model": "hosted_vllm/..."
}

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

clitr-0.1.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

clitr-0.1.0-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: clitr-0.1.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for clitr-0.1.0.tar.gz
Algorithm Hash digest
SHA256 59a7705db459da705d11e567739304e032f7749dd7b0de7ed1a58f8a679f99a1
MD5 18ac7a40f099e7f48c5c6804b6ecfee7
BLAKE2b-256 1992c092358a8a814b3ecd1abad8c24d5cd925b60d4a32e89e0ce91ebc1a29c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: clitr-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.22 {"installer":{"name":"uv","version":"0.9.22","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for clitr-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 30bed12f7785f883161d1d672d2d5cc1f48fc428b850db0a97bff75df41f104b
MD5 f673f4b4d6ff3b15d8e2089fda3f9d8f
BLAKE2b-256 44f1c44edc84f15a9ff44b382eb91720517867c0ad840c5e75180b133adc9e90

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