Installation¶
Requirements¶
- Python 3.10+
- A provider API key (OpenAI, Gemini, or OpenRouter)
Install from PyPI¶
pip install agentapi-core
Install for Local Development¶
python -m venv .venv
.venv\\Scripts\\activate
pip install -U pip
pip install -e .
Verify Installation¶
python -c "import agentapi; print(agentapi.__all__)"
Environment Variables¶
Create a .env file in your project root:
OPENAI_API_KEY=
GEMINI_API_KEY=
OPENROUTER_API_KEY=
DEFAULT_PROVIDER=openai
Notes¶
DEFAULT_PROVIDERis used when you do not explicitly passprovider=toAgent.- API key errors are surfaced as
AgentConfigurationErrorwith clear guidance.