A model-agnostic AI agent CLI - your AI henchman for the terminal
Project description
Henchman-AI
A Model-Agnostic AI Agent CLI in Python
Henchman-AI is a terminal-based AI agent that supports multiple LLM providers (DeepSeek, OpenAI, Anthropic, Ollama) through a unified interface. Inspired by gemini-cli, built for extensibility.
Features
- 🔄 Model-Agnostic: Support any LLM provider through a unified abstraction
- 🐍 Pythonic: Leverages Python's async ecosystem and rich libraries
- 🔌 Extensible: Plugin system for tools, providers, and commands
- 🚀 Production-Ready: Proper error handling, testing, and packaging
Installation
pip install henchman-ai
Or install from source:
git clone https://github.com/matthew/henchman-ai.git
cd henchman-ai
pip install -e ".[dev]"
Quick Start
# Set your API key
export DEEPSEEK_API_KEY="your-api-key"
# Start the CLI
henchman
# Or run with a prompt directly
henchman --prompt "Explain this code" < file.py
Usage
# Show version
henchman --version
# Show help
henchman --help
# Interactive mode (default)
henchman
# Headless mode with prompt
henchman -p "Summarize README.md"
Configuration
Henchman-AI uses hierarchical configuration:
- Default settings
- User settings:
~/.henchman/settings.yaml - Workspace settings:
.henchman/settings.yaml - Environment variables
Example settings.yaml:
providers:
default: deepseek
deepseek:
model: deepseek-chat
tools:
auto_accept_read: true
shell_timeout: 60
Development
# Install dev dependencies
pip install -e ".[dev]"
# Run tests
pytest
# Linting
ruff check src/ tests/
# Type checking
mypy src/
License
MIT License - see LICENSE for details.
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 henchman_ai-0.1.2.tar.gz.
File metadata
- Download URL: henchman_ai-0.1.2.tar.gz
- Upload date:
- Size: 131.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1002402ff67cc107a822507779be828cc58e75204e75e85417ec4d670b00bb03
|
|
| MD5 |
7ee16a6139dc2e88cf9d14460c112424
|
|
| BLAKE2b-256 |
ab396c7dd55f8f68fd13ac857c0df9c8d1c78a9a4d938638f45231b93ee63fe9
|
File details
Details for the file henchman_ai-0.1.2-py3-none-any.whl.
File metadata
- Download URL: henchman_ai-0.1.2-py3-none-any.whl
- Upload date:
- Size: 78.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f369106ad3aa7af711080c8130d7d0ee49ccfdc02cd3c0ebc34fe6ee33d97a8
|
|
| MD5 |
e960ea9da3c31df1d7504be5c1b09b19
|
|
| BLAKE2b-256 |
1076702679f891f89a9610fe171086aa45456963c79cba95e067019ceb6f87ba
|