Skip to main content

Cmd Clever

A command-line tool for generating terminal commands using AI.

Installation

pip install cmd-clever

Usage

Command-line Arguments

# Basic usage with a query
cmd-clever 查找大于100MB的日志文件

# Specify API key and base URL
cmd-clever --api-key your-api-key --api-base your-api-base 查找最近修改的文件

# Use a different model ID
cmd-clever --model-id different-model-id 创建一个新的目录并将文件移动到其中

# Disable streaming output
cmd-clever --no-stream 查找包含特定文本的文件

Interactive Mode

If you don't provide a query, Cmd Clever enters interactive mode:

cmd-clever

You can then input your queries one by one and get responses. Type "exit" or "quit" to leave interactive mode.

Environment Variables

Cmd Clever looks for the following environment variables:

  • AGNO_API_KEY: Your API key
  • AGNO_API_BASE: Your API base URL

You can set these in your shell configuration (e.g., .bashrc, .zshrc) to avoid specifying them on each run:

export AGNO_API_KEY="your-api-key"
export AGNO_API_BASE="your-api-base"

Features

  • Accepts queries in Chinese
  • Generates safe and reliable terminal commands
  • Automatically adapts commands for Linux/macOS
  • Warns about potentially dangerous operations
  • Supports command explanations
  • Interactive and one-off query modes

License

MIT

Metadata

Release files for cmd-clever 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cmd-clever 0.1.0
File Size Uploaded Provenance Actions
cmd_clever-0.1.0.tar.gz 7.2 kB Without provenance Details for cmd_clever-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cmd-clever 0.1.0
File Interpreter ABI Platform Actions
cmd_clever-0.1.0-py3-none-any.whl Python 3 none any Details for cmd_clever-0.1.0-py3-none-any.whl

Total release size: 16.0 kB

Release files / cmd_clever-0.1.0.tar.gz

Download URL cmd_clever-0.1.0.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
5a61fb4d58f65ac7036cef8983295c37f4f8e37c07eead3f95a4959a7693dc09
BLAKE2b-256 checksum
How to use checksums
4e263863519d8b3d9d352d8b6374ebfd5edbfbada9451d726ebbd29e5968f4eb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / cmd_clever-0.1.0-py3-none-any.whl

Download URL cmd_clever-0.1.0-py3-none-any.whl
Size 8.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c406be11a062f44352c9e52eed6fde92aaa59717d497d5715127a645aecbaa5
BLAKE2b-256 checksum
How to use checksums
ddc8ab81a4463998c80bdb9a526cc7cb755e6a226d46da553783293348b80607
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Security for cmd-clever 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page