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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59a7705db459da705d11e567739304e032f7749dd7b0de7ed1a58f8a679f99a1
|
|
| MD5 |
18ac7a40f099e7f48c5c6804b6ecfee7
|
|
| BLAKE2b-256 |
1992c092358a8a814b3ecd1abad8c24d5cd925b60d4a32e89e0ce91ebc1a29c6
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
30bed12f7785f883161d1d672d2d5cc1f48fc428b850db0a97bff75df41f104b
|
|
| MD5 |
f673f4b4d6ff3b15d8e2089fda3f9d8f
|
|
| BLAKE2b-256 |
44f1c44edc84f15a9ff44b382eb91720517867c0ad840c5e75180b133adc9e90
|