Skip to main content

A lightweight AI CLI powered by Hack Club AI.

Project description

HCAI

A lightweight AI command-line interface powered by Hack Club AI.

HCAI allows you to chat with multiple AI models directly from your terminal with streaming responses, persistent conversation history, and seamless model switching.


Features

  • ๐Ÿš€ Real-time streaming responses
  • ๐Ÿค– Multiple AI providers
  • ๐Ÿ’ฌ Persistent conversation history
  • ๐Ÿ”„ Switch models anytime
  • โš™๏ธ Interactive first-time setup
  • ๐Ÿ“ Configuration stored automatically
  • ๐Ÿงน Clear conversation history
  • ๐Ÿ’ป Lightweight terminal interface

Installation

Clone the repository

git clone https://github.com/YOUR_USERNAME/HCAI.git

Move into the project

cd HCAI

Install

py -m pip install -e .

First Launch

Simply run

hcai

On the first launch HCAI will ask for

  • Hack Club AI API Key
  • Provider
  • Model

The configuration is automatically saved.


Usage

Start HCAI

hcai

Example

> Explain recursion.

Recursion is a programming technique...

Commands

Command Description
/help Show available commands
/use Switch models interactively
/use <query> Search and switch models
/config Show current configuration
/clear Clear current conversation
/exit Exit HCAI

Examples

/use claude
/use gemini
/use gpt
/use opus

Project Structure

HCAI/
โ”‚
โ”œโ”€โ”€ hcai/
โ”‚   โ”œโ”€โ”€ client.py
โ”‚   โ”œโ”€โ”€ commands.py
โ”‚   โ”œโ”€โ”€ config.py
โ”‚   โ”œโ”€โ”€ history.py
โ”‚   โ”œโ”€โ”€ main.py
โ”‚   โ”œโ”€โ”€ models.py
โ”‚   โ”œโ”€โ”€ setup.py
โ”‚   โ””โ”€โ”€ data/
โ”‚       โ””โ”€โ”€ models.json
โ”‚
โ”œโ”€โ”€ pyproject.toml
โ”œโ”€โ”€ README.md
โ””โ”€โ”€ requirements.txt

Tech Stack

  • Python
  • Requests
  • JSON
  • Hack Club AI API

License

MIT 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

hcai-1.0.1.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

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

hcai-1.0.1-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file hcai-1.0.1.tar.gz.

File metadata

  • Download URL: hcai-1.0.1.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for hcai-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c113368c6d44fda85b0b695df55c26f3994947aa2b8fbc642d4532f049cc7598
MD5 549b0cf34f5bf371a7afecc3ae8c0f93
BLAKE2b-256 18b21aa9165902f5974afc27cd381500da4550476a1edaffd52c63b88e4d8028

See more details on using hashes here.

File details

Details for the file hcai-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: hcai-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for hcai-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 de45246471f7cbabf92ed4e5032e248a3bac54c336efd3605c09513509ea6442
MD5 c669bd4b7c9bec88139e87eaf075d207
BLAKE2b-256 3111afbb2432df71f1d46e2e5ac185837a0af07a1379450703c9a975e41e4285

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