Skip to content

serve-vercel

serve-vercel

Serve agents via Vercel AI Data Stream Protocol.

This creates a server compatible with Vercel AI SDK frontends, allowing you to use your agents with Vercel AI UI components.

The server exposes a POST /chat endpoint that accepts Vercel AI protocol requests and streams responses back.

If --agent is specified, only that agent is served. Otherwise, the endpoint accepts an 'agent' field in the request to select which agent to use.

agentpool serve-vercel [OPTIONS] [config]

config

Path to agent configuration

-a, --agent

Specific agent to serve

--host

Default: localhost Host to bind server to

--port

Default: 8000 Port to listen on

--cors

Default: True Flag Enable CORS

--show-messages

Flag Show message activity

--help

Flag Show this message and exit.