Skip to main content
Deploy Agents as HTTP servers with popular Node.js frameworks.

Quick Start

1

Simple Usage

2

With Configuration

Use Express, Hono, or Fastify handlers — see sections below.

Express

Hono

Fastify

Nest.js

Configuration Options

Request Format

Response Format

Non-Streaming

Streaming

Server-Sent Events (SSE) format:

With Tools

Authentication Middleware

Environment Variables

Best Practices

Configure for your frontend domains
Protect your endpoints
Prevent abuse
Better UX for long responses
Track usage and errors

Next.js

Next.js integration

Agent

Agent configuration