> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2-docs-scavio-google-v2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Customize

> AgentOS customization examples: custom FastAPI apps, health endpoints, lifespans, route overrides, dependencies, and custom events.

| Example                                                                               | Description                                                                                                                       |
| ------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| [Custom FastAPI App](/examples/agent-os/customize/custom-fastapi-app)                 | Mount AgentOS on an existing FastAPI base\_app so a custom /customers route is served alongside AgentOS routes.                   |
| [Custom Health Endpoint](/examples/agent-os/customize/custom-health-endpoint)         | Add a custom health endpoint to your AgentOS app.                                                                                 |
| [Custom Lifespan](/examples/agent-os/customize/custom-lifespan)                       | Example AgentOS app where the agent has a custom lifespan.                                                                        |
| [Handle Custom Events](/examples/agent-os/customize/handle-custom-events)             | Yield a CustomEvent subclass from an async tool that reads session\_state, streamed through AgentOS agent and team run endpoints. |
| [Override Routes](/examples/agent-os/customize/override-routes)                       | Preserve your FastAPI app's conflicting routes with `on_route_conflict="preserve_base_app"`.                                      |
| [Pass Dependencies to Agent](/examples/agent-os/customize/pass-dependencies-to-agent) | Example for AgentOS to show how to pass dependencies to an agent.                                                                 |
| [Update From Lifespan](/examples/agent-os/customize/update-from-lifespan)             | Register a second agent and resync AgentOS from a FastAPI lifespan function.                                                      |
