Routes define how your agents get invoked: HTTP endpoints, scheduled tasks, WebSockets, and Server-Sent Events. For guidance on when to use agents vs handling requests directly, see Agents vs Routes.
HTTP
Define RESTful HTTP endpoints
Explicit Routing
Compose and mount your own Hono routers
Middleware
Add authentication, validation, and more
Calling Agents
Import and invoke agents from your routes
Cron
Schedule recurring tasks
WebSockets
Real-time bidirectional communication
SSE
Server-Sent Events for streaming
WebRTC
Peer-to-peer audio, video, and data channels