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.0.tar.gz (13.9 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.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hcai-1.0.0.tar.gz
  • Upload date:
  • Size: 13.9 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.0.tar.gz
Algorithm Hash digest
SHA256 58f09244be102ddc2b0644341269f73c53435b31b759714d38eb9bbd01fd2e6d
MD5 4839b57cbb2c8cccec0b309f5e81d0a9
BLAKE2b-256 7b28fac6a40d5e736db059f54939679700a6e5b493314f0ec8a13bf4df36014c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hcai-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 14.8 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 36533d67ec2c4a25ffa101632ae256bacdbfe681b612d295051464951511a7d4
MD5 9d444e6f74c73414e5ca9f80fcf1ade5
BLAKE2b-256 484f6656a2d437544bbc8d90f089b8bb6b52682e939d56bb00165fa99ac6e8bb

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