Port already in use
Stop the earlier API process before starting another. Restart after changing Python source.
Run the implementation
A deterministic demo using the real API, database, and observability services. No model API key is needed.
01 / Prerequisites
Python 3.14, Docker with Compose, GNU Make, and Git. Docker must be running. The default PostgreSQL port is 5433; the API uses 8000 and Grafana uses 3000.
02 / Start
git clone https://github.com/Muhmdk/AgentHub.git
cd AgentHub
make demoThis installs locked dependencies, starts PostgreSQL and telemetry services, applies migrations, resets allowlisted local demo tables, seeds the scenario, and starts the API with tracing enabled. Keep that terminal open. Resetting replaces existing AgentHub demo records.
Expected: healthy services, three registered agents, generated scenario IDs, and “Application startup complete.”
03 / Inspect
Open localhost:8000/console. In a second terminal:
curl -sS http://127.0.0.1:8000/gateway/agents/knowledge-agent/invoke \
-H 'Content-Type: application/json' \
-H 'X-AgentHub-Identity: local/demo' \
-d '{"query":"Can I return an unopened product after 20 days?","seed":4}'Expect a grounded answer with citations. Open Observability to inspect the request and follow its trace into Grafana.
04 / Exercise recovery
Use the live mode of the guided demo. Inspect the seeded retrieval regression, then open Incidents to request a policy-checked rollback. Candidate traffic should return to zero; recovery still requires post-rollback observations.
05 / Verify safely
The database-backed test fixtures clear AgentHub tables. Use a disposable test database, never your active demo or valuable data. Without a test database URL, database-dependent tests skip.
AGENTHUB_DATABASE_URL="<disposable PostgreSQL test database URL>" make test-e2eThe live observability test is separately opt-in. See the repository’s test fixtures and CI workflow for the complete environment.
06 / Reset and stop
# Stop the API with Ctrl+C first.
make demo # resets the local scenario and enables tracing
# To stop after the demo, press Ctrl+C, then:
make observability-down
make downStopping services preserves the database volume. make run alone does not enable the telemetry settings supplied by make demo.
07 / Troubleshooting
Stop the earlier API process before starting another. Restart after changing Python source.
Invoke an agent after startup and ensure telemetry is enabled. Empty measurements mean no observations, not perfect health.
A reset creates new scenario IDs. Refresh your console and select the newly seeded incident.