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 clatcli

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.2.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.2-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: clatcli-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 182f02f27f6e27a059175a583c804f60868eef34d9e7e6d6bd1e5a9b42abb4a0
MD5 80d6115f120c36b526d7a647cddfee4e
BLAKE2b-256 19dd7df3de894b5ff1a20619051e97f2c8ce0c67e3aaa5c22cf6a8e9bef36de0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: clatcli-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f2446d79d43d650b9e21348526f29a7eb98c7f68c0577a6e0a0dcc10cda52103
MD5 4e2994a3e87a747dad32abe0c5df009e
BLAKE2b-256 2323b164d76e4c32d21e581e72dff1c8f91cbbefe9f4f0ecdddb58f78a9c277e

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