Skip to main content

Zed is an LLM-based CLI assistant built with python and Chat GPT

Project description

Overview

A helpful command line assistant, based on ChatGPT.

Getting started

Install Zed by running:

pip install zed-assistant

Note that Zed requires Python 3.8+.

You'll need your own OpenAI key to be able to use Zed. The key can be configured as an environment variable or passed as a command parameter:

echo "export ZED_OAI_KEY=my-key" >> ~/.zshrc  # or .bash_profile, etc

Usage

Run zed with no arguments to get the help menu:

~ zed

     ______ ___________
    |___  /|  ___|  _  \
       / / | |__ | | | |
      / /  |  __|| | | |
    ./ /___| |___| |/ /
    \_____/\____/|___/

usage: zed [-h] [--debug] [--model {gpt-4,gpt-4-turbo,gpt-3.5-turbo}] [--open-ai-key OPEN_AI_KEY]

zed is a LLM-based CLI assistant built with python and Chat GPT

optional arguments:
  -h, --help            show this help message and exit
  --debug               Enables print debug logs.
  --model {gpt-4,gpt-4-turbo,gpt-3.5-turbo}
                        The specific Open AI model to be used. Default is 'gpt-4-turbo'.
  --open-ai-key OPEN_AI_KEY
                        The Open AI API key. You can also set the environment variable ZED_OAI_KEY.

Contributing

Install dependencies

Setup the project locally:

git clone https://github.com/hoffmannmatheus/zed/ && cd zed
poetry install

Run tests

poetry run pytest

Run zed locally

First, setup your local OpenAI API key:

export ZED_OAI_KEY="your-openai-key"

Then, run locally with:

poetry run zed

Publishing a new version

poetry publish --build

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

zed_assistant-0.0.3.tar.gz (9.0 kB view hashes)

Uploaded Source

Built Distribution

zed_assistant-0.0.3-py3-none-any.whl (11.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page