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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
58f09244be102ddc2b0644341269f73c53435b31b759714d38eb9bbd01fd2e6d
|
|
| MD5 |
4839b57cbb2c8cccec0b309f5e81d0a9
|
|
| BLAKE2b-256 |
7b28fac6a40d5e736db059f54939679700a6e5b493314f0ec8a13bf4df36014c
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
36533d67ec2c4a25ffa101632ae256bacdbfe681b612d295051464951511a7d4
|
|
| MD5 |
9d444e6f74c73414e5ca9f80fcf1ade5
|
|
| BLAKE2b-256 |
484f6656a2d437544bbc8d90f089b8bb6b52682e939d56bb00165fa99ac6e8bb
|