Skip to main content

Zev 🔍

PyPI version License: MIT

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

Description

🔧 Installation

Homebrew (macOS)

brew tap dtnewman/zev
brew trust dtnewman/zev
brew install zev

pipx (linux)

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
  • Anthropic (Claude)

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.

Anthropic (Claude)

To use Claude models, you need an Anthropic API key, which you can create in the Claude Console.

  1. Install the Anthropic dependency with pipx install zev[anthropic] (requires Python 3.10+).

  2. Run zev --setup, pick Anthropic, enter your API key, and choose a model.

🐪 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.

Metadata

Release files for zev 0.12.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 zev 0.12.0
File Size Uploaded Provenance Actions
zev-0.12.0.tar.gz 17.1 kB With provenance Details for zev-0.12.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zev 0.12.0
File Interpreter ABI Platform Actions
zev-0.12.0-py3-none-any.whl Python 3 none any Details for zev-0.12.0-py3-none-any.whl

Total release size: 39.1 kB

Release files / zev-0.12.0.tar.gz

Download URL zev-0.12.0.tar.gz
Size 17.1 kB
Tags Source
SHA-256 checksum
How to use checksums
81f716a0a5d5e80f97e24aff885349242bdaada4a47fedb39cb647ebb68263a9
BLAKE2b-256 checksum
How to use checksums
3b2f484de1194ed09c43d9fc9b6e7be341c647a3ba0eadf494792f84a8135132
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / zev-0.12.0-py3-none-any.whl

Download URL zev-0.12.0-py3-none-any.whl
Size 22.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dc2cc3e1769a29912411f0f6aadd84b975025efc965af7248a16881ff9316e56
BLAKE2b-256 checksum
How to use checksums
0cd0ccd72838e2f685217da715ac09e19937f98947aaff138c029c4ffff39ee7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for zev 0.12.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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for zev-0.12.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

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.12.0 This release

2 release files Full 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