Installation
Agent Actions is available on PyPI. You can install it with pip, pipx or uv. This page tells you how to install Agent Actions and configure it to run your first workflow.
Requirements
- Python 3.11 or higher
- An API key for one or more LLM providers (for example OpenAI or Anthropic)
Quick Install
Using uv (recommended)
uv pip install agent-actions
Using pip
pip install agent-actions
Using pipx (for CLI tools)
pipx install agent-actions
Database drivers
A workflow can read from and write to a database (see Databases). sqlite needs nothing more. Each other database type needs its driver. Install the driver as an extra with the same name as the type:
pip install 'agent-actions[postgres]'
pip install 'agent-actions[snowflake,bigquery]' # more than one type
The extras are duckdb, postgres, mysql, redshift, snowflake, bigquery and databricks.
Verify Installation
agac --version
The output is similar to this:
Agent Actions CLI v3.0.0
Provider Configuration
Set the API keys as environment variables or in a .env file.
Environment Variables
# OpenAI
export OPENAI_API_KEY="sk-..."
# Anthropic
export ANTHROPIC_API_KEY="sk-ant-..."
# Google Gemini
export GEMINI_API_KEY="..."
Using a .env File
Create a .env file in your project directory:
OPENAI_API_KEY=sk-...
ANTHROPIC_API_KEY=sk-ant-...
GEMINI_API_KEY=...
Agent Actions loads the .env file in the project root, the directory that holds agent_actions.yml.
Supported Providers
| Provider | Environment Variable | Models |
|---|---|---|
| OpenAI | OPENAI_API_KEY | Any model supported by the OpenAI API |
| Anthropic | ANTHROPIC_API_KEY | Any model supported by the Anthropic API |
GEMINI_API_KEY | Any model supported by the Gemini API | |
| Groq | GROQ_API_KEY | Any model supported by the Groq API |
| Cohere | COHERE_API_KEY | Any model supported by the Cohere API |
| Ollama (local) | (none) | Any model that you pulled to your computer |
| Ollama Cloud | OLLAMA_API_KEY | Any model hosted on ollama.com |
Local Models with Ollama
Ollama runs open-source models on your own hardware, without API keys. Use Ollama for development, for workloads with private data, or to have no API costs.
Local models may have different capabilities from the models of cloud providers. Before you deploy, test your workflow with your target model.
# Install Ollama
curl -fsSL https://ollama.ai/install.sh | sh
# Pull a model
ollama pull qwen3:8b
# Use in your agentic workflow
# model_vendor: ollama_local
# model_name: qwen3:8b
Local Models with an OpenAI-compatible Server
To use llamafile, start it as a server on port 8080. Then set model_vendor: llamafile. You do not need a key or a base_url:
./llamafile -m model.gguf --server --port 8080
See Named local runtimes.
A local server can also use the OpenAI API. llamafile, LM Studio and vLLM all serve the OpenAI chat API on a local port. For these servers, use the openai vendor. Then set base_url on the action to the address of the server. Each action keeps its own base_url. Thus one workflow can send some actions to the local server and the other actions to OpenAI.
# Start llamafile as a server (measured with llamafile 0.10.6)
./llamafile -m model.gguf --server --port 8080 --api-key local-key
# The openai vendor still needs an API key env var; the local server may ignore its value
export LOCAL_KEY=local-key
actions:
- name: classify_local
model_vendor: openai
model_name: local
base_url: http://localhost:8080/v1
api_key: LOCAL_KEY
- name: summarize_cloud
model_vendor: openai
model_name: gpt-6-luna
Two limits apply:
- A
base_urlaction must userun_mode: online, because only OpenAI serves the Batch API. Preflight refuses the combination ofbase_urland batch mode. - Give each
base_urlaction a schema. Without a schema, the client asks forjson_objectoutput, and some local servers do not enforce that output format.
For the full reference, see OpenAI-compatible servers.
Upgrading
uv pip install --upgrade agent-actions
# Or with pip
pip install --upgrade agent-actions
Development Installation
To contribute to Agent Actions, install the development version:
git clone https://github.com/Muizzkolapo/agent-actions.git
cd agent-actions
# Install with dev dependencies (recommended)
uv sync --dev
# Or with pip
pip install -e ".[dev]"
Next Steps
After you install Agent Actions, continue with these pages:
- Tutorials: Build your first workflow
- CLI Reference: The documentation of all commands