Skip to content
Tinbox

Product · Agents

Your agent gets the inbox, not the keys to everything.

MCP, an SDK, and a CLI generated from one tool manifest — each call behind a scoped key and one authorization gate, and one rule: agents draft; a person sends.

Paper-cut highlights reveal intent, identity, and dates within one message.

One manifest, three doors

MCP, SDK, CLI — the same tools everywhere.

Every capability is declared once as a tool. The in-app assistant, the /mcp endpoint, the SDK's tools.* calls, and the tinbox CLI all expose the same manifest, so a tool behaves identically wherever it's called.

MCP

Point the Claude app, Claude Code, Cursor, or any MCP client at /mcp. One-click OAuth from the Claude app, or a bearer token. A read-only search_docs tool lets the agent read these docs at action time.
MCP reference

SDK

tinbox/sdk: a Resend-style emails API, the manifest as typed tinbox.tools.* calls, and the full typed API underneath — for your own apps and automations.
SDK reference

CLI

Every command takes --json and returns meaningful exit codes; destructive commands refuse without --yes. A coding agent or a cron job can work the mail.
CLI reference
# Mint a scoped, inbox-bound token (shown once)
tinbox tokens create --inbox support --role agent --ttl 30d --json

# Point Claude Code at your deployment's MCP endpoint
claude mcp add -t http tinbox https://mail.acme.com/mcp \
  --header "Authorization: Bearer tbx_…"
tinbox search "invoice overdue" --inbox support --json
tinbox threads --unanswered --json
tinbox draft create --thread thr_… --text "On it, sending today." --json
tinbox send --to ada@example.com --subject "Update" --text "..." --json
import { Tinbox } from "tinbox/sdk";
const tinbox = new Tinbox({ host: "https://mail.acme.com", apiKey: process.env.TINBOX_API_KEY });

// Every manifest tool, generated 1:1 as a typed call
const queue = await tinbox.tools.listReviewQueue({ campaignId: "oc_123", stage: "drafted" });
// tinbox.config.ts
import { defineConfig } from "tinbox/cf";
import { defineAgents } from "tinbox/cf/agents";

export default defineConfig({
  // …org, domains, auth
  autopilot: {
    enabled: true,
    instructions: "Triage overnight; draft replies; never send.",
    tools: ["search_emails", "summarize_thread"],
    principal: { tokenEnv: "AUTOPILOT_TOKEN" }, // a least-privilege tbx_ key
  },
  // Per-inbox agents run from Settings → Agents today; syncing this
  // declared block to them is on the roadmap.
  agents: defineAgents({
    supportBot: {
      inboxId: "inbox_support",
      name: "Support Bot",
      systemPrompt: "You are a helpful support agent…",
      tools: ["search_emails", "create_draft"], // drafts only — a person sends
    },
  }),
});

Safe by construction

Scoped keys, one gate, and a Review queue.

Scoped keys

Each agent holds its own revocable tbx_ key: a role per inbox (viewer, agent, admin) with an expiry, or a send key limited to one identity or domain. A read-only key can never send; an expired one fails closed.
Tokens and roles

One authorize() gate

Chat, MCP, CLI, and SDK calls all pass the same check against the caller's grants as a human click. The assistant adds no new data-access path.

The Review queue

One queue for what needs a person: questions agents ask you, campaigns behind their approval lock, outreach batches, and contact merges. Reply drafts wait on their threads for a person to send.
Read-only vs destructive is in the manifest. Tools that send are flagged destructive: chat and MCP clients confirm before running them, the CLI requires --yes, and Autopilot never runs them on its own.

Four surfaces

From a chat turn to an agent that owns an inbox.

They all stand on the same tool manifest; they differ in who drives and when they run.

Assistant

The interactive agent you drive turn by turn — in the app, over MCP, or from the CLI — running with your own grants.
Automation & agents

Autopilot

The assistant on a schedule with a standing brief. It runs only reversible tools — search, summarize, draft, tag — and holds anything that sends. On/off, brief, and tool list change in Settings, no redeploy; Recent activity shows what each run touched.
Autopilot and its principal

Agents

Dedicated agents, each bound to one inbox, with their own prompt and tool allowlist. Set one up for support@ (Settings → Agents) and it wakes on every inbound email to triage and draft — reversible tools only, so it can't send on its own.
Give your agent an email

Agentic skills

The tools the three above call — an agenticSkill() you write with a Zod schema, a secrets gate, and a host allowlist. Mark it acting and Autopilot holds it for approval.
Write an agentic skill

Policy, not prompts

Tell every agent the rules once.

The Handbook

Plain-language org policy every agent surface honors — “never quote a discount over 15% without asking.”
Three scopes of reply logic

An address of its own

Give an agent a real mailbox on your domain so people and services can reach it — with the inbox as its memory and the token as its boundary.
Agent identity

Your model keys

Bring Anthropic, OpenAI, OpenRouter, or Cloudflare Workers AI keys and pick the model per job. MCP works even with no in-app AI key set.
Connect Claude and agents

Or we build it for you

Want your agents wired up for you?

We connect your agents over MCP, write the skills that reach your own systems, set the keys and approval rules, and train your team on the Review queue.
Talk to us about it →

Hand your agent an inbox.

Free to install and use, even commercially — the CLI, SDK, and worker ship in one npm package. Your tools, your keys, your approval rules — on your own Cloudflare account.