Plug in your tools

Connect MCP servers and APIs once. Credentials stay in a vault, out of every sandbox.

  1. Store tokens in a vault

    Tokens live in the Vault's Connection Durable Object, never inside the sandbox.

    Read the docs
    const vault = await client.waitForPending(  await client.vaults.create({ display_name: "Support tools" }),)
  2. Attach MCP and OpenAPI tools

    Set per-tool approval rules. Calls pause for approval by default unless allowed.

    Read the docs
    const agent = await client.waitForPending(  await client.agents.create({    name: "Docs helper",    model: "claude-sonnet-5-5",    mcp_servers: [{ type: "url", name: "docs", url: "https://mcp.example.com/mcp" }],    tools: [      {        type: "mcp_toolset",        mcp_server_name: "docs",        default_config: { permission_policy: { type: "always_allow" } },        configs: [{ name: "delete_page", permission_policy: { type: "always_ask" } }],      },    ],  }),)
  3. Answer custom tools in your app

    When an agent calls a custom tool, the turn pauses at zero compute until you post the result.

    Read the docs
    for await (const event of await client.sessions.events.stream(session.id)) {  if (event.type === "session.status_idle" && event.stop_reason.type === "requires_action") {    await client.sessions.events.send(session.id, {      events: [        {          type: "user.custom_tool_result",          custom_tool_use_id: event.stop_reason.event_ids[0]!,          content: [{ type: "text", text: "Order 1042 shipped." }],        },      ],    })    break  }}

Managed agents for any harness

Pick the harness and model. Checkfu runs everything around them.