checkfu --base-url http://127.0.0.1:1337 login with your local API key, and skip to step 2.
1
Deploy Checkfu
deploy signs you in to Cloudflare, deploys the server, and saves the API URL and a generated API key in your configuration directory for subsequent CLI commands. (If you deploy without exporting a provider key, open the Dashboard after deploy and add a model provider credential under Vaults.)checkfu deploy again to update the same deployment. See Deploy.2
Create an Agent and an Environment
An Agent is the model and instructions. An Environment is where its Sessions run. Export
CHECKFU_MODEL_ID to make the model your deployment can call available to both the CLI and TypeScript examples.--transform id -r prints only the new ID.3
4
Do the same from TypeScript
Install the SDK and set Save this as If a turn requests tool answers, submit them from your application or the dashboard, then resume the stream after the reported sequence. See Tools and Resume a stream.Writes can return HTTP
CHECKFU_CONNECTION_FILE to the saved config.json path printed by checkfu deploy or checkfu login.quickstart.mts and run npx tsx quickstart.mts to create a Session, send a message, and stream the reply.quickstart.mts
202 before the read view catches up; waitForPending returns settled resources immediately and polls pending receipts until they are ready.Next steps
Sessions
Events, turns, mounts, and outputs.
Tools
Built-in tools, MCP servers, and custom tools.
Agents as code
Keep Agents in your repository and apply them.
Add an agent to your app
Run Sessions from your backend and stream them to users.