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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mantools-0.1.0.tar.gz | 23.9 kB | Without provenance | Details for mantools-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mantools-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for mantools-0.1.0-py3-none-any.whl |
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
|
Security for mantools 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.