PyAgentCLI requires Python 3.11 or newer.
Create a virtual environment:
python3.11 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"If your system python3 is older than 3.11, install a newer Python first. PyAgentCLI uses modern Python features such as StrEnum.
PYTHONPATH=src python -m pyagentcli --helpOr, after editable install:
pyagent --helpWithout an API key, PyAgentCLI runs in local fallback mode.
For real model calls:
export OPENAI_API_KEY="..."
export OPENAI_BASE_URL="https://api.openai.com/v1"
export PYAGENT_MODEL="gpt-4.1-mini"You can also place these values in a workspace .env file.
PyAgentCLI writes local runtime state under .pyagent/:
- audit logs
- plan runs
- search index
- memory
- reviews
- eval reports
This directory is ignored by git.