Building chat directly into your own frontend? Follow Frontend chat with your own authentication to set up identities, an organization proxy token, and a same-origin streaming proxy.
Tilde is designed for agents to build more agents. Choose Agentic workflow to work through your coding agent, or For humans to follow the same steps yourself.
This guide shows you how to build and test a signed ChatKit endpoint using Next.js and the Vercel AI SDK. A completed Hello World agent is available for reference.
Agentic workflow
For humans
1
Connect your coding agent
Connect the client where your coding agent runs to Tilde’s global MCP server.
Any project that includes a tilde.state.yaml file is instantly deployable to your Tilde account.Use the button in a project’s README.md, or import the file manually. See Terraform to learn more.
1
Create the app
You need Node.js 22 or newer, pnpm 10, a Tilde account, and an OpenAI API key.
Sign in to Tilde before opening the tunnel. The login flow asks you to select the workspace containing Hello World. Then start your app’s development process through the tunnel. Replace pnpm dev with the command you normally use to run your app locally.The tunnel gives your local agent a public HTTPS endpoint, allowing Tilde to deliver messages, webhooks, and tool invocations while you develop. For ChatKit, chatKitEndpoint verifies Tilde’s webhook signature and rejects requests without a valid signature.
The Dev Tunnel exposes every page and API route served by your local app—not only the agent endpoint—to the public internet. Disable any unneeded or unsecured routes before starting the tunnel, or protect them with authentication and use the tunnel with caution.
6
Test the agent
Open ChatKit workspace, select the workspace where you registered Hello World, start a session with the agent, and send: