Skip to main content

AI assistant in your CLI.

Project description

💬 Kel

Install with pip PyPI - Version

Kel is your AI assistant in your CLI.

Kel கேள் means ask in Tamil.

🎥 Demo

Kel-Demo

✅ Features

  • Free and Open Source
  • Bring your own API keys
  • Supports multiple Large Language Models (LLMs) like GPT-4, Claude, ollama2, and Google.
  • Supports OpenAI assistants to chat with your documents
  • Customizable

🧩 Installation

Pre-requisites

  • Python 3.6 or higher
  • pip3
  • API keys for OpenAI and other LLMs

⛳ Steps

python3 -m pip install --user pipx
python3 -m pipx ensurepath
pipx install kel-cli

# copy the default config file to current user's home directory
curl -O https://raw.githubusercontent.com/QAInsights/kel/main/config.toml
mkdir -p ~/.kel
mv config.toml ~/.kel/config.toml 

Open the config file to customize the settings.

Update the LLM API keys in the OS environment variables.

Usage

kel -v
kel -h
kel "git command to rebase"
kel "command to get active connections in linux"
kel "What was the population of India in 1990?"

> I'm sorry, I can only assist with questions related to software engineering and command line tools. 
I am unable to provide information on the population of India in 1990.

Now change the prompt and ask the same question.

kel "What was the population of India in 1990?" -p "You are a demography expert" 

> The population of India in 1990 was around 874 million people.

Now change the LLM and ask the same question.

kel "What was the population of India in 1990?" -p "You are a demography expert" -c ollama -m llama2 

To view the config file details, run the following command.

kel -s openai

[!IMPORTANT]
LLMs price varies based on the usage. Please check the pricing before using it.
LLMs can make mistakes. Review the answers before using it.

🧰 Configuration

Kel can be configured using a config file. It is a TOML file and supports vast number of options.

The default config file is ~/.kel/config.toml or ~/.config/kel/config.toml or KEL_CONFIG_FILE environment variable.

⚙️ Defaults

  • OpenAI's gpt-3.5-turbo-1106
  • Display stats
  • Default prompt focuses on developers
  • Copies the answer to clipboard
  • and more...

💰 Support

If you like this project, please consider donating to the following addresses.

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

kel_cli-0.0.7.tar.gz (31.6 kB view details)

Uploaded Source

Built Distribution

kel_cli-0.0.7-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

Details for the file kel_cli-0.0.7.tar.gz.

File metadata

  • Download URL: kel_cli-0.0.7.tar.gz
  • Upload date:
  • Size: 31.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for kel_cli-0.0.7.tar.gz
Algorithm Hash digest
SHA256 179d9dc53fd3355092e1db786c704e33ac440bfd4798a02d1080aab70cb77c96
MD5 f4588a216366679565dca71ce3760ff6
BLAKE2b-256 5143e8d84d08aab4131c05ca42aff81c02687c0cb30d79d8dbc2c3d0d6fb8023

See more details on using hashes here.

File details

Details for the file kel_cli-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: kel_cli-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 19.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for kel_cli-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 106dcf398bace2ba79471ee0a712a3f3389f4d31b8d5d8875d9c048100381d4b
MD5 c836f94b0c9f099a34f4d7ac7513446c
BLAKE2b-256 1c5c6d8eb6e47f827e41f9844257f3c0b66d7de883cf2656048631a8c037a272

See more details on using hashes here.

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