# How STACK works

## Overview

An agent that has to email a supplier, pay an invoice and book a person usually needs a separate account, key and bill for each. Every key sits where the agent runs, and each provider keeps its own partial record of what the agent did.

A STACK account holds those services in one place for all of your agents. An agent connects once and calls STACK. STACK checks which agent is calling, counts the action, adds the login from the vault, sends the call to the provider and writes what happened to the record.

Every call takes this path. An agent that is stopped is therefore stopped at every provider at once, and what it spent and what it did are each in one place.

Diagram: an agent calls STACK through the API, the SDKs, the CLI or MCP. STACK checks the Passport, counts the action, asks controls when they are on, adds the login from the vault and writes the action to the record. The call then goes to the provider or to your own system.

## Passport

A Passport is the signed permission an agent presents when it acts. It identifies the agent and names the connections and actions it may use, any restrictions on the request and when access expires. The Passport also refers to the identity records behind it. Identity evidence remains encrypted outside the Passport.

STACK can add signed claims to the Passport record as the agent works. A claim can record an intention, an approval, a checkpoint, a detector finding or a result. With controls on, the audit log shows which claims applied when each event occurred.

A Passport lasts 15 minutes by default and never longer than one hour. A delegated Passport cannot exceed the access of its parent, and delegation stops after four hops. A receiving service can verify the signature without calling STACK. Requests checked by STACK also confirm that the Passport, agent, service connection and referenced identity records are still valid. Revocation blocks the next request and any Passport delegated from it. The claims and audit history are retained.

## Identity

Agent deployments rely on several forms of identity. An application may know which user connected an account, the runtime may have its own machine identity, and the agent may still call other systems with a shared API key. These records are usually held separately, making it difficult to establish which agent made a request and who or what was behind it.

STACK links an agent to identity checks from Stripe Identity, account records from Okta, Auth0 or Microsoft Entra, and workload identity from SPIFFE, SPIRE or WIMSE. The Passport carries references to those records without exposing the underlying details.

To show that an identified person stands behind the account, the owner can choose to complete an identity check with Stripe Identity. Other providers will follow.

A receiving organisation can request specific identity information when it needs it. STACK sends only what has been approved, signed and encrypted for that recipient. The recipient can verify the response itself, while the agent never sees the identity data.

A website does not receive the Passport. For websites, STACK signs the page requests an agent makes through the cloud browser and its calls through the proxy, using the Web Bot Auth standard. A site that checks for AI agents can verify the signature and look the agent up at a public address, which states who the agent is and whether it is active. The owner decides whether the answer includes the agent’s name.

## Credential access

Most agent deployments connect to external systems with API keys and access tokens. These credentials are often kept inside the agent runtime, where they can be read and reused by anything running in the same environment. The access granted to the runtime may therefore be much broader than the work assigned to the agent.

STACK keeps credentials outside the runtime and places a proxy between the agent and each connected service. Before adding the credential, the proxy checks the Passport and the request itself. The action and its parameters must fit the access the agent was given. A request outside those limits is refused before the credential is used.

You connect a service once, on a page that opens from a single-use link, so a key is never typed into a chat. Slack and Google connect by signing in. Other services take an API key or token, or sign-in through an OAuth app that you register yourself. The same service can be connected more than once.

Supported OAuth connections renew their access tokens automatically. If the service requires fresh consent, STACK asks the operator to reconnect it. For writes, a stable operation handle prevents an unchanged retry from sending the request again. STACK returns the stored permitted response when available and keeps an uncertain result marked as unknown.

Model use is handled through a separate gateway for Anthropic, OpenAI and OpenRouter. It keeps provider credentials outside the runtime and links each call to the relevant agent and Passport. Provider, model, token use and cost are recorded.

## Wake-ups

An agent normally runs only when someone starts it, so it does not notice a reply to an email it sent yesterday. A wake-up tells the agent that something happened and gives it a task.

You decide what wakes an agent. Incoming mail, texts, voicemail, payments and post wake it when you have set a rule for them. An incoming call, a calendar event, a hand-off from another agent and a schedule you set wake it without a rule.

STACK delivers the wake-up to an open MCP session, as a signed webhook to an address you give, or to a queue the agent reads, in the order you choose. The wake-up contains the task and a reference to what happened. It does not contain the message, so text written by a stranger never reaches the agent as an instruction. The agent reads the message through the account, where it has been scanned.

STACK does not run the agent. A webhook wakes an agent only when a program of yours receives it and starts the agent.

- **Events less than 60 seconds apart:** Delivered as one wake-up
- **Quiet hours:** Wake-ups are held or dropped, as you choose
- **Shortest schedule:** Every 5 minutes
- **Not delivered within 24 hours:** The wake-up expires
- **Webhook:** Signed to the Standard Webhooks format
- **Cost:** One action for each wake-up

## Drop-offs

Drop-offs are for work that needs to move from one agent to another without putting both agents in the same database, queue or conversation. An agent can hand the state of a session to the agent taking over the next shift, or pass a structured result to the next agent in a workflow.

The producer, consumer, schema and expiry are set before the transfer begins. A Drop-off accepts one payload and allows one collection. STACK rejects data that does not match the schema, encrypts accepted data while it waits and releases it only to the named consumer. A Drop-off can name several consumers, and the first to collect takes it.

The payload is deleted after collection or expiry. The transfer record remains, including its producer, consumer, timestamps and payload hash. A Drop-off can also be made in the open A2A format, between agents of the same account.

## Skills

Most specialist capabilities are built directly into the agent that uses them. Reusing one elsewhere usually means rebuilding the integration or giving another operator access to the underlying code. STACK Skills are published separately and can be used by any agent with the required access.

The publisher defines the input and output, where the Skill runs, the trust level it requires and the price of an invocation. Once STACK is connected through MCP, agents can find and use Skills directly from Claude Code, Codex or Cursor. Skills are also available through the TypeScript and Python SDKs, and operators can manage them through the CLI.

STACK checks the agent’s access and the buyer’s trust level, then validates the input and output against the publisher’s schemas. Publishers set their own prices. Paid invocations are charged to the buyer’s prepaid credit, separately from the account subscription. STACK’s commission is 15% of the listed price, the same for every publisher.

## Revocation

An operator can revoke one Passport and every Passport delegated from it without stopping the agent’s other sessions. The operator can also revoke a full session, every active Passport held by the agent, or everything in the account. STACK then rejects new calls and Passport renewals that depend on that access.

A Passport is a separate signed authorisation. A session links the original Passport to any replacements and delegated Passports created during the same run. Blocking the agent revokes every active Passport and prevents another from being issued until a human unblocks it. Revoked Passports remain revoked.

STACK denies the next checked request before it reaches the external service. We measured a median of 10 milliseconds in a local benchmark using the real Redis path. If an identity claim becomes invalid, STACK revokes the Passport chain that depends on it. A service that verifies only the Passport signature must check revocation separately or wait for the Passport to expire.

Blocking an agent or closing the account also ends a phone call in progress. An order already placed with a supplier and a letter already posted are not recalled. Revocation works when the balance is empty and when the subscription has lapsed.

Every action of every account is written to an append-only record, and each entry carries a hash of the one before it. The record is kept for 365 days. Reading and exporting it requires controls. When controls are turned on, the whole record is available, including the entries written before.

## Teams and interfaces

A STACK account can be shared without giving every person the owner’s access. Each member has their own sign-in, role and list of approved services, so administrators can decide which connected systems they may use. A service can use one connection shared across the account, or a separate connection for each member. With separate connections, STACK routes each person’s requests through their own credential. Their actions remain attributed to them after access is removed.

Teams can use an existing OIDC provider, including Okta or Microsoft Entra, for SSO. Members receive a default STACK role on first sign-in and use their company identity. Removing a member disables their access and revokes their live OAuth sessions without deleting the earlier record.

Agents and applications can use the same account through MCP, the CLI, the TypeScript or Python SDK, or the REST API. Claude and ChatGPT can also add STACK from their own directories. Per-agent signing keys keep the operator credential out of the agent runtime.

## See every service the account includes.
