Skip to main content

Command line assistance tool. Describe what you want in plain English; clat generates a shell script and runs it.

Project description

clat

Command line assistance tool. Describe what you want in plain English; clat generates a shell script and runs it.

clat open a port, docker pull void-base, close port
clat compress all jpegs in this directory to 80% quality
clat show disk usage sorted by size for the current directory

Works with any OpenAI-compatible inference API — LM Studio, Ollama, or a remote API. Supports reasoning models (DeepSeek-R1, QwQ, etc.) — <think> blocks are stripped automatically.

Install

pip install clat

Configuration

Config lives at ~/.clat/config.toml. Create it with:

clat --init
api_url           = "http://localhost:1234/v1"   # OpenAI-compatible endpoint
model             = "local-model"                # model name (see: clat -l)
api_key           = ""                           # optional bearer token
auto_run          = false                        # true = always skip confirmation
use_tools         = true                         # false for models without tool-call support
auto_run_patterns = []                           # command names that skip confirmation

Usage

clat [OPTIONS] <prompt>...
Flag Description
-y, --yes Skip confirmation, run immediately
-n, --dry-run Show generated script, don't execute
-l, --list List models available from the API
-L, --load <ID> Load a model in LM Studio
--model <MODEL> Override model for this invocation
--api <URL> Override API URL for this invocation
-v, --verbose Print prompt, API URL, model, and tool status
--config Show current config and its path
--init Write default config file

License

MIT

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

clatcli-0.1.1.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

clatcli-0.1.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: clatcli-0.1.1.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for clatcli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0a3ce25e3b3b8f13864ce3bd93b4d3b58e81b21377a8e0faa2f47ccdc8f5dc56
MD5 689bda580333eaf2d81c73011175b3f7
BLAKE2b-256 f9f0e6aa38140e180e8d603606c9d47316e00947859c847b14f5f24bc7539478

See more details on using hashes here.

File details

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

File metadata

  • Download URL: clatcli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for clatcli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 14aa97eb2808f92f00a4c7ef6eaf1ed0b771e7802ab46f3a0de3a751332dc63f
MD5 00e6ff01378409fede9ddc2f223f64f6
BLAKE2b-256 f61ac1af529a94257f5c7a0d728b06b72f7999582228e7eda07adc5ae32a627a

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