Skip to main content

AI assistant for your terminal

Project description

PyPI version License: MIT

Your AI Assistant for the Terminal 🚀

Terminaider is a CLI that brings AI-powered assistance directly to your terminal.

Interact with an AI chat interface to get instant help, code analysis, and more — all without leaving your command line.

Demo

✨ Features

  • AI Chat Interface: Engage in conversations with an AI assistant directly from your terminal.
  • Code Analysis: Provides code summaries related to your inputs.
  • Customizable Interfaces: Choose between different AI interfaces like Groq or OpenAI.
  • Session Management: Maintains chat history per session.
  • Clipboard Integration: Copy code summaries directly to your clipboard.

📦 Installation

Install Terminaider via pip:

pip install terminaider

# Recommended:
pipx install terminaider

🚀 Getting Started

Start using Terminaider by simply typing:

ai

Or initiate a chat with an initial prompt:

ai "How do I calculate Earth's roundness"

⚙️ Configuration

Set your API tokens as environment variables:

# If you want to use Groq's API
export GROQ_API_KEY='your_groq_api_key'

# If you want to use OpenAI's API
export OPENAI_API_KEY='your_openai_api_key'

📖 Usage

🗨️ Chat with the AI Assistant

Start an interactive session:

ai

Provide an initial prompt:

ai "explain the why Python is great"

⚙️ Options

  • --interface, -i: Specify the AI interface to use (e.g., groq or openai).
  • --version, -v: Display the current version of Terminaider.

PD: Interface selection will be stored as default for future use. So you don't need to specify it everytime_

Configuration file is located at ~/.config/terminaider/config.yaml.

🔍 Code Analysis

The AI will provide code analysis when necessary and automatically copy them to your clipboard for easy access.

🛠 Build Instructions

Build from source:

Clone the Repository

git clone https://github.com/Danielratmiroff/terminaider.git

Navigate to the Project Directory

cd terminaider

Create a Virtual Environment (Optional but Recommended)

python -m venv venv
source venv/bin/activate  # On Windows use venv\Scripts\activate

Install Dependencies

pip install build
pip install -r requirements.txt

Build the Package

python -m build

This will generate distribution files in the dist/ directory.

Install the Built Package

pip install dist/terminaider-<VERSION>-py3-none-any.whl

🤝 Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub.

📄 License

MIT License - LICENSE.

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

terminaider-0.1.2.tar.gz (23.4 kB view details)

Uploaded Source

Built Distribution

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

terminaider-0.1.2-py3-none-any.whl (21.5 kB view details)

Uploaded Python 3

File details

Details for the file terminaider-0.1.2.tar.gz.

File metadata

  • Download URL: terminaider-0.1.2.tar.gz
  • Upload date:
  • Size: 23.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for terminaider-0.1.2.tar.gz
Algorithm Hash digest
SHA256 bd28fdb8846a9682f7d4142e0b4dadf55f54bfa84b6ab0a5c3c4fa3fec16bc1b
MD5 2ef8dd020ad1500700a664a648037a58
BLAKE2b-256 f91efae828bad0691691881f9a5ec11a4ac842e4047fc821595410a0f025ebe2

See more details on using hashes here.

File details

Details for the file terminaider-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: terminaider-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 21.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for terminaider-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4f572a2e745373f23fcff01466964f27df7e81dbb27f37dc469285022821a4e3
MD5 dc6045910891e0b678b3a6731be56195
BLAKE2b-256 cd90194351f220c8954453deb47d4fdec1d0de48fa9168e93f207963475a47ca

See more details on using hashes here.

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