Agoralia CLI — the gated agent surface (MCP · REST · CLI) for compliant AI voice campaigns
Project description
agoralia-cli
The Agoralia CLI — the third agent surface (alongside MCP and the REST API) for running compliant AI voice campaigns. It's a thin client over the already-gated REST API: same policy, same human-approval flow, same audit. It adds nothing privileged — the gate lives server-side; the CLI just speaks HTTP to it and renders the guided errors it returns.
Every call is tagged X-Agent-Surface: cli, so the action audit records that it came from
the CLI.
Install
pip install agoralia-cli
Authenticate
The CLI uses a Bearer token (the same kind the MCP surface uses).
export AGORALIA_TOKEN=... # your Agoralia access token
export AGORALIA_API_URL=https://api.agoralia.app # optional (defaults to localhost:8000)
Usage
# Generative dashboard pages (the agent composes a view; you see it at /pages/<slug>)
agoralia pages list
agoralia pages get q2-reactivation-calls
agoralia pages create ./spec.json
# Human "go" queue — approve/deny dangerous agent actions
agoralia approvals list
agoralia approvals decide <approval-id> approved
# Read-only audit of what your agents did
agoralia activity --limit 50
# Generic escape hatch to any gated route
agoralia call GET /campaigns
agoralia call POST /campaigns/<id>/start --data '{}'
The approval flow
Dangerous actions (launching a campaign, spending, deleting) are gated. When you hit one without an approval, the CLI tells you exactly what to do:
$ agoralia call POST /campaigns/abc/start
⚠ Approval required before this action can run.
approval_id: appr_123
→ A human must approve it (POST /approvals/{id}/decide), then retry with header X-Approval-Id.
Once approved, retry with: --approval-id appr_123
# a human approves it…
$ agoralia approvals decide appr_123 approved
# …then retry
$ agoralia call POST /campaigns/abc/start --approval-id appr_123
(Approval enforcement is controlled server-side by the AGENT_APPROVAL_ENABLED flag.)
Development
pip install -e .
python -m pytest tests/
python -m agoralia_cli --help # same as the `agoralia` command
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agoralia_cli-0.1.0.tar.gz.
File metadata
- Download URL: agoralia_cli-0.1.0.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ca24302fd3af7b057ef9abda9ccd06e21b436af081ed9d8241cf7a873436820
|
|
| MD5 |
a907ea366e6c576ba53fd3ca40f269f4
|
|
| BLAKE2b-256 |
dc1477bf3b4982fa8a968a5cd393cfaa65e51d1c13cfdec3624501ca42fcf0d9
|
File details
Details for the file agoralia_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: agoralia_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f64de9fb0fbaf3bf2cfa3b588b9e881d90f1078f004628c367ab37c5fd82c64a
|
|
| MD5 |
2145dbe59747d9fa4f21205b32bf3559
|
|
| BLAKE2b-256 |
1a93ac90012997aae5d521c03b89a7a6f8ae797f434254d4171650fe51025960
|