Skip to main content
In about five minutes you will deploy Checkfu, create an Agent, and talk to it from the CLI and from TypeScript. You need Node.js 22 or later, a Cloudflare account on Workers Paid with R2 enabled, and an API key for Anthropic, OpenAI, or OpenRouter. To try Checkfu without Cloudflare, start it locally, run 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.)
Run 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

Start a Session and talk to it

A Session is one conversation. It keeps its history and /workspace files between turns.
Ask the agent to write a file in /workspace and read it back. Run connect again later to pick up where you left off, or watch the Session in the Dashboard.
4

Do the same from TypeScript

Install the SDK and set CHECKFU_CONNECTION_FILE to the saved config.json path printed by checkfu deploy or checkfu login.
Save this as quickstart.mts and run npx tsx quickstart.mts to create a Session, send a message, and stream the reply.
quickstart.mts
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 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.