Skip to main content

Parameters

Authorization

Enable RBAC by setting authorization=True and setting the JWT_VERIFICATION_KEY environment variable to the public key of the JWT verification key:
Or for more control, you can use the AuthorizationConfig class:
See AuthorizationConfig for configuration options.

Functions

get_app

Get the FastAPI APP configured for the AgentOS.

get_routes

Get the routes configured for the AgentOS.

serve

Run the app, effectively starting the AgentOS. Parameters:
  • app (Union[str, FastAPI]): FastAPI APP instance
  • host (str): Host to bind. Defaults to localhost
  • port (int): Port to bind. Defaults to 7777
  • workers (Optional[int]): Number of workers to use. Defaults to None
  • reload (bool): Enable auto-reload for development. Defaults to False

resync

Resync the AgentOS to discover, initialize and configure: agents, teams, workflows, databases and knowledge bases. Parameters:
  • app (FastAPI): The FastAPI app instance