Skip to main content
Use app_registry to mount custom FastAPI routers in the same process as your agent server.

When to Use

  • Add custom health or diagnostics endpoints.
  • Expose supplemental API routes used by your integrations.
  • Keep custom routes close to the agent module that is loaded by aion.yaml.
Routes you register here are not protected by the server’s caller authentication: they are reachable without a token, and no caller is identified for them. If a route must not be public, authenticate its requests yourself. The agent’s own endpoints stay protected; see Caller Authentication.

Example

aion.yaml:
agent.py:

API