Install the adapter you use
Use a supported peer version from the installation guide and the package manifest. TypeScript Express applications also need
@types/express.
Find a signature
This reference covers all 65 named exports of@agentium/transport at 4.0.0, including public methods, overloads, and configuration fields.
Own the hosting boundary
createAgentRouter() and createAgentGateway() require an explicit security mode. Use local for loopback development. In authenticated mode, derive identity from verified credentials and authorize each resource against host-owned records. A model API key is not an application login. Follow host authentication before making an application public.
Routes use the global core registry by default. Pass registry: false and explicit maps when only selected agents should be exposed. A Registry lets your host own a separate collection.
HTTP streaming, UI streaming, and resumable event streams use different wire contracts. Follow Express streaming, UI streams, and resumable SSE for the matching client. TextStreamLimits bound frames, buffering, and drain waits.
For new protocol integrations, use A2A v1 or durable protocols. The reference also retains createA2AServer because it remains a public legacy adapter in v4.