System requirements
- Python 3.9 or later
- Git 2.20 or later
- 512 MB RAM minimum (2 GB recommended for agents with local memory)
Install via pip
Install with extras
GitAgent has optional extras for specific use cases:Install from source
Updating
agent.yaml files in the current directory to the latest schema version.
Environment variables
| Variable | Required | Description |
|---|---|---|
OPENAI_API_KEY | If using OpenAI | OpenAI API key |
ANTHROPIC_API_KEY | If using Claude | Anthropic API key |
GITAGENT_MODEL | No | Default model to use (overrides agent.yaml) |
GITAGENT_LOG_LEVEL | No | Log level: DEBUG, INFO, WARNING, ERROR |
GITAGENT_MEMORY_PATH | No | Path for local memory storage (default: ~/.gitagent/memory) |
GITAGENT_PLUGINS_PATH | No | Extra directory to scan for plugins |
Model provider setup
OpenAI
agent.yaml:
Anthropic
agent.yaml:
Azure OpenAI
agent.yaml:
Local models (Ollama)
agent.yaml:
CI/CD installation
GitHub Actions
Docker
Troubleshooting
gitagent: command not found
Python scripts directory is not in PATH. Add it:
agent.yaml not found
Run gitagent from the directory that contains agent.yaml, or pass the path explicitly:
gitagent doctor checks: Python version, API key validity, model connectivity, and directory structure compliance.