Agents & Workflows

An agent is an autonomous process funded with a TOKE budget. A workflow is the multi-step task an agent executes — often spanning payments, compute, and other agents.

Deploying an agent

const agent = await tokelio.agents.deploy({
  name: "ops-runner",
  budget: 500,                 // TOKE
  policy: {
    maxPerTask: 40,
    dailyCap: 200,
    allow: ["inference:*", "data:signals"],
  },
});

Spending policy

A spending policy is the guardrail that lets an agent transact without human approval while staying inside limits:

FieldPurpose
maxPerTaskCap the cost of any single task
dailyCapCap total spend per day
allowWhitelist of task types the agent may pay for

Agent-to-agent coordination

Agents can discover and pay one another. When Agent A lacks a capability, it finds Agent B, escrows payment, and releases on delivery — see the Agent-to-Agent guide.

Recurring workflows

Subscriptions and scheduled jobs settle automatically. An agent can hold a recurring service (a data feed, a monitoring task) and settle it every cycle without re-authorization.