Skip to main content

ManTools — GitOps AI Agent

Autonomous Git operations powered by LLM. Supports GitHub, GitLab, Bitbucket.

Install

pip install mantools

With server support (FastAPI):

pip install mantools[server]

Quick Start

# Set up your .env
cp .env.sample .env
# Edit .env with your SCM + LLM credentials

# Pre-flight check
mantools check

# Clone a repository
mantools my-repo main

# Interactive mode (menu)
mantools

LLM Modes

ManTools supports two modes for connecting to LLMs:

Mode 1: Via LiteLLM Gateway (default)

LITELLM_BASE_URL=http://localhost:4000/v1
LITELLM_MASTER_KEY=sk-master-key
MODEL_NAME=gemini-1.5-pro

Mode 2: Direct to Provider (no gateway needed)

# Gemini
LLM_PROVIDER=gemini
GEMINI_API_KEY=AIza...
MODEL_NAME=gemini-2.5-flash

# OpenAI
LLM_PROVIDER=openai
OPENAI_API_KEY=sk-...
MODEL_NAME=gpt-4o

# Ollama (local)
LLM_PROVIDER=ollama
MODEL_NAME=qwen2.5-coder:14b

Available Actions

Action Description
clone Clone & analyze repository
create-branch Create branch via API
pull-request Create PR/MR via API
update-image Update YAML image & push
quick-pr All-in-one: branch → update → PR

REST API

mantools server
# → http://localhost:8888/docs (Swagger UI)

Development

pip install -e ".[dev,server]"
make check    # pre-flight
make build    # build dist
make upload   # publish to PyPI

License

MIT

Release files for mantools 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mantools 0.1.0
File Size Uploaded
mantools-0.1.0.tar.gz 23.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mantools 0.1.0
File Interpreter ABI Platform
mantools-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 52.1 kB

Release files / mantools-0.1.0.tar.gz

Download URL mantools-0.1.0.tar.gz
Size 23.9 kB
Tags Source
SHA-256 checksum
How to use checksums
c01f17592eb7902f2638ad9dce16024a2a51571e4e67abdeb3ae7250db47e419
BLAKE2b-256 checksum
How to use checksums
cbd1d5fd64f8478c470cf6bd81aeb50a43e062766db8f063ff675bde0f7f5a9e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release files / mantools-0.1.0-py3-none-any.whl

Download URL mantools-0.1.0-py3-none-any.whl
Size 28.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
32adeecb5f0a60d56351d3d1926a2cfeef9b6534f3ef7965da412dc6a91ba0c6
BLAKE2b-256 checksum
How to use checksums
10d3a55d2fe38619f37d20acf31baab6372aa390c447e3e2865a3588f9a5ad86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.4

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page