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

# Middleware

> Examples for `middleware` in AgentOS.

| Example                                                                                                        | Description                                                            |
| -------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| [Agent OS with Custom Middleware](/examples/agent-os/middleware/agent-os-with-custom-middleware)               | Add custom middleware to your AgentOS application.                     |
| [Agent OS with JWT Middleware](/examples/agent-os/middleware/agent-os-with-jwt-middleware)                     | Use our JWT middleware with AgentOS.                                   |
| [Agent OS with JWT Middleware Cookies](/examples/agent-os/middleware/agent-os-with-jwt-middleware-cookies)     | Use JWT middleware with cookies instead of Authorization headers.      |
| [Agent OS with Service Accounts](/examples/agent-os/middleware/agent-os-with-service-accounts)                 | Configure machine identities for AgentOS.                              |
| [Custom FastAPI App with JWT Middleware](/examples/agent-os/middleware/custom-fastapi-app-with-jwt-middleware) | Use our JWT middleware with your custom FastAPI app.                   |
| [Extract Content Middleware](/examples/agent-os/middleware/extract-content-middleware)                         | Extract content from a response and send it to a notification service. |
| [Guardrails Demo](/examples/agent-os/middleware/guardrails-demo)                                               | Apply guardrails to an Agno agent.                                     |
