| Crates.io | aihub |
| lib.rs | aihub |
| version | 0.1.0 |
| created_at | 2025-11-08 11:31:43.700544+00 |
| updated_at | 2025-11-08 11:31:43.700544+00 |
| description | A fast, lightweight CLI for interacting with AI language models |
| homepage | https://github.com/beingglitch/aihub |
| repository | https://github.com/beingglitch/aihub |
| max_upload_size | |
| id | 1922782 |
| size | 63,690 |
A fast, lightweight CLI for interacting with AI language models. Built with Rust.
cargo install aihub
curl -fsSL https://your-repo-url/gpg-key | sudo gpg --dearmor -o /usr/share/keyrings/aihub.gpg
echo "deb [signed-by=/usr/share/keyrings/aihub.gpg] https://your-repo-url stable main" | sudo tee /etc/apt/sources.list.d/aihub.list
sudo apt update
sudo apt install aihub
git clone https://github.com/beingglitch/aihub.git
cd aihub
cargo install --path .
aihub config set-key --key YOUR_OPENAI_API_KEY
aihub ask --prompt "Explain quantum computing in simple terms"
# Simple question
aihub ask -p "What is Rust?"
# With context/instructions
aihub ask -p "Write a REST API" -i "Use Python Flask with error handling"
# With reasoning effort (low, medium, high)
aihub ask -p "Debug this algorithm" -e high
# Save API key
aihub config set-key -k YOUR_KEY
# Code generation
aihub ask -p "Create a binary search tree" -i "Use Rust with comments"
# Problem solving
aihub ask -p "Optimize this SQL query: SELECT * FROM users WHERE..." -e high
# Explanation
aihub ask -p "How does TCP handshake work?"
| Command | Options | Description |
|---|---|---|
ask |
-p, --prompt |
Your question or prompt (required) |
-i, --instructions |
Optional context or instructions | |
-e, --effort |
Reasoning effort: low/medium/high | |
config set-key |
-k, --key |
Save your API key locally |
Config file: ~/.config/aihub/config.toml
Environment variable: OPENAI_API_KEY
Priority: Environment variable > Config file
Contributions welcome! Please:
git checkout -b feature/amazing-featuregit commit -m "feat: add amazing feature"git push origin feature/amazing-featureMIT License - see LICENSE file for details.
Built with ❤️ and Rust 🦀