Skip to main content

Lookup CLI commands easily

Project description

Zev 🔍

PyPI version License: MIT

Zev helps you remember (or discover) terminal commands using natural language.

Description

🔧 Installation

Homebrew (macOS/Linux)

brew tap dtnewman/zev
brew install zev

pip

pipx install zev
  • Note: This project runs on top of LLM APIs like OpenAI, Google's Gemini, or Ollama.

📦 Dependencies

For clipboard functionality (copying and pasting) to work properly, you may need to install:

  • On Linux: xclip or xsel (for X11) or wl-clipboard (for Wayland)
  • On macOS: No additional dependencies needed
  • On Windows: No additional dependencies needed

🎮 Usage

Option 1: Interactive Mode

zev

Option 2: Direct Query

zev '<what you want to do>'

📝 Examples

# Find running processes
zev 'show all running python processes'

# File operations
zev 'find all .py files modified in the last 24 hours'

# System information
zev 'show disk usage for current directory'

# Network commands
zev 'check if google.com is reachable'

# Git operations
zev 'show uncommitted changes in git'

🛡️ Safety Considerations

⚠️ Commands are generated by LLMs. While the tool attempts to flag dangerous commands, it may not always do so. Use caution.

Example of dangerous command warning

⚙️ Settings

Supported LLM Providers:

  • OpenAI
  • Google Gemini
  • Ollama
  • Azure OpenAI

You can update your API keys and provider settings by running:

zev --setup

OpenAI

To use OpenAI, you need an OpenAI account and a subscription. You can create an API key on this page.

Google Gemini (Free)

To use Google's Gemini models, you need a Google AI Studio account. You can create a Gemini API key in Google AI Studio.

🐪 Using with Ollama

You can use Zev with Ollama as an alternative to hosted providers, which lets you run all commands locally. To set this up:

  1. Install and start Ollama with a model of your choice

  2. Run zev --setup and put in the proper settings. For example:

? Pick your LLM provider: Ollama
? Enter the Ollama URL: http://localhost:11434/v1
? Enter the model to use (e.g. llama3.2): llama3.2

Azure OpenAI

To use Azure OpenAI, you’ll need access to an Azure OpenAI resource in your Azure subscription.

  1. Create a deployment of the model you want to use (e.g., gpt-5.4, gpt-5.4-mini etc.).

  2. Install required Azure depedencies with pipx install zev[azure].

  3. Run zev --setup and put in the proper settings. For example:

    ? Pick your LLM provider: Azure OpenAI
    ? Azure OpenAI account name (e.g. my-openai-resource): my-openai-resource
    ? Azure OpenAI API key (leave blank to use Entra ID / keyless auth):
    ? Azure OpenAI deployment name (e.g. gpt-5.4, gpt-5.4-mini, etc): gpt-5.4-mini
    ? Azure OpenAI API version: 2025-03-01-preview
    

    Note: Model version must be 2024-08-06 or newer.
    API version must be 2024-08-01-preview or newer.

Note that to switch backends, you can re-run zev --setup again at any time.

🤝 Contributing

Contributions are welcome! See CONTRIBUTING.md for details.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.

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

zev-0.10.15.tar.gz (15.6 kB view details)

Uploaded Source

Built Distribution

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

zev-0.10.15-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

Details for the file zev-0.10.15.tar.gz.

File metadata

  • Download URL: zev-0.10.15.tar.gz
  • Upload date:
  • Size: 15.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for zev-0.10.15.tar.gz
Algorithm Hash digest
SHA256 c00ae03199da6da6a5d742a3e0df153035ef45250e765a54103c4e024bba4ef1
MD5 e559d23205b57564ef6c6cb3b216c599
BLAKE2b-256 eb0da190e85eb46bed0d7b357594483fcaf462030207f723ff113171214110c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for zev-0.10.15.tar.gz:

Publisher: publish.yml on dtnewman/zev

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zev-0.10.15-py3-none-any.whl.

File metadata

  • Download URL: zev-0.10.15-py3-none-any.whl
  • Upload date:
  • Size: 19.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for zev-0.10.15-py3-none-any.whl
Algorithm Hash digest
SHA256 ad984c26e1c6667d727a8c63fe749e5424514dcc98e5348bd3088bdce474851a
MD5 39c820b5cddd36bb693c71b1c5925574
BLAKE2b-256 0d160e68163c97d5198931976043035e0c236a576fa406924742b53daee05331

See more details on using hashes here.

Provenance

The following attestation bundles were made for zev-0.10.15-py3-none-any.whl:

Publisher: publish.yml on dtnewman/zev

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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