Skip to main content

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:

  1. Default settings
  2. User settings: ~/.henchman/settings.yaml
  3. Workspace settings: .henchman/settings.yaml
  4. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

henchman_ai-0.1.6.tar.gz (234.0 kB view details)

Uploaded Source

Built Distribution

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

henchman_ai-0.1.6-py3-none-any.whl (99.0 kB view details)

Uploaded Python 3

File details

Details for the file henchman_ai-0.1.6.tar.gz.

File metadata

  • Download URL: henchman_ai-0.1.6.tar.gz
  • Upload date:
  • Size: 234.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for henchman_ai-0.1.6.tar.gz
Algorithm Hash digest
SHA256 683576e0849816d112f442a961f3ff26bebb1ac5c6bd74a26c44ed71deb206ee
MD5 95e5c8ed0ff896cc8aa3315b23464ded
BLAKE2b-256 4b438b6738ee0bcf40b7deac6c3b76c4423534afb18caabfd01d16829039ce67

See more details on using hashes here.

File details

Details for the file henchman_ai-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: henchman_ai-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 99.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.7

File hashes

Hashes for henchman_ai-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f3056d2a8e7c6e28661e8e8c16333054d58249d45432a7ff805baa7ee720fbfc
MD5 ef1e1e67b9b13d6d53b4ed6c6cbccfd3
BLAKE2b-256 338962abaa2f3a9307fd664e51f53a826ae88e34701c8d5dff3df80c6974a4bc

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