Guides for AI agents in production
How to let AI agents act on production systems safely: credentials, tool permissions, approvals, idempotency and stopping an agent. Each guide gives the answer first, then the code.
Acting for your users
6 pages
How to let your AI agent act in your users' accounts
Each user connects their own HubSpot, Slack or Notion. Your agent acts there under that user's limit, asks for their yes on risky steps, and keeps a receipt.
Can a prompt make your AI agent act as another user?
Not through Anlyon's tools when your server binds the user. How forUser, tools with no user field and a confirmed connect flow stop a confused deputy.
Let your users approve an AI agent's action inside your app
Your agent asks, your user says yes in your app, and the exact request they saw is what runs. One end_user policy, two Next.js routes, a React card.
Deleting a user from your AI agent: connections, limit counters and receipts
What endUsers.erase removes when a user deletes their account: OAuth grants revoked, approvals cancelled, counters cleared, receipts kept under a hash.
OAuth for AI agents: what per-user tokens, refresh, revocation and deletion take to build
A build checklist for per-user OAuth in an AI agent: consent, redirects, forwarded links, encrypted tokens, refresh, revocation, OAuth apps and deletion.
Per-user limits for AI agents: one rule, counted for each user
Cap what your AI agent does in each user's account: one limit with scope end_user, reserved before each call. One user hitting it never blocks the others.
Approvals
4 pages
What happens when an AI agent's approval expires or the request changes before it runs
Where an approved agent action stops when its preview or approval expires, the request or action version changes, or the provider's state moves on, and how to recover without reusing an outdated decision.
Show reviewers the operation that will run
Build an action review screen around exact targets, changes, impact, expiry and provider evidence rather than an agent-written summary.
How to bind human approval to the action an AI agent executes
Prevent approval substitution: show the exact operation, bind its target and version, check freshness, and separate a decision from a verified outcome.
What counts as a distinct approver?
Design multi-approver policies without confusing separate API credentials with separate human reviewers.
Architecture
4 pages
How should an AI agent tool report pending, refused and unknown results so the model does not retry?
Map every action result to an explicit state and next step in the tool's return value, so an agent waits on approvals, observes pending work and never recreates an operation that may already have happened.
What is an execution layer for AI agents?
How an agent execution layer differs from authentication, authorization, orchestration and an LLM gateway, with Anlyon's supported paths, receipt grades and shared limits.
Build an action approval service yourself?
Evaluate the engineering responsibilities behind request-bound review, shared limits, credential custody and uncertain outcomes.
Make a read-back prove the intended change
Design declared HTTP action verification around operation-specific evidence rather than generic endpoint health or pre-existing state.
Claude Agent SDK
1 page
Coding agents
1 page
Comparison
8 pages
Agent auth platforms compared, 2026: Arcade, Composio, Nango, Scalekit, Pipedream, Auth0, Paragon, Merge and Anlyon
Nine ways to let an AI agent act in your users' accounts, compared on who holds the token, per-user limits, end-user approvals, receipts and erase.
Auth0 for AI Agents (Token Vault) vs Anlyon: tokens, and what the agent may do with them
Auth0 Token Vault stores your users' tokens and CIBA asks them to approve. Anlyon makes the call: a per-user limit, an approval bound to the request, a receipt.
Merge Agent Handler alternative for AI agents acting in users' accounts
Merge Agent Handler connects agents to 190+ tools over MCP with DLP. Anlyon adds a per-user write limit, the user's bound yes in your app, and a graded receipt.
Nango alternative for AI agents that write in your users' accounts
Nango vs Anlyon, sourced and dated: Nango's 1,000+ API auth and functions, Anlyon's per-user limits, user approvals and graded receipts on every write.
Paragon ActionKit alternative for AI agents acting in users' accounts
Paragon ActionKit gives your agent a long list of tools in your users' apps. Anlyon adds a per-user limit, the user's bound yes, and a graded receipt per write.
Pipedream Connect alternative for AI agents
Pipedream Connect vs Anlyon, sourced and dated: 10,000+ tools from 3,000+ APIs, against per-user write limits, user approvals and graded receipts.
Scalekit Agent Auth alternative: per-user limits and approvals
Scalekit AgentKit vs Anlyon, sourced and dated: 614 connectors and per-user tokens, against per-user limits, user approvals and graded receipts on writes.
AI agent tool execution: Anlyon, Arcade, Composio or build it yourself?
Choose by credential custody, approval enforcement, supported integrations and recovery. Includes framework HITL and AWS AgentCore Policy, with primary sources.
Credentials
2 pages
How to let Claude Code or Cursor call a production API through MCP without the MCP server holding the key
Why a typical MCP server holds your raw API key, what env-var keys, remote OAuth servers and an execution layer each change, and how to connect Claude Code or Cursor to Anlyon so the agent names an action and Anlyon attaches the credential.
AI agent secrets management: how to keep API keys away from the model
Where AI agents leak API keys (context window, tool arguments, environment, MCP config, logs), the four ways to hold a credential for an agent, and how to give an agent API access without it ever holding the key.
Glossary
10 pages
AI agent actions glossary: execution layer, bound approval, shared limit and receipt grades
One-sentence definitions of the terms used when AI agents act on production systems: execution layer, credential custody, governed action, bound approval, approval drift, shared limit, idempotency key, action receipt, unknown outcome, halt, end user, connect link and per-user limit.
What is an idempotency key for AI agent tool calls?
An idempotency key names one operation, so repeating an agent's tool call returns the first result instead of running it twice. How to choose one, what it does not stop, and how Anlyon uses it.
What is an action receipt for an AI agent, and what do its grades mean?
An action receipt records what happened when an agent's action was sent, with a grade for how the outcome was established: confirmed, acknowledged, unknown, failed, refused or denied.
What is approval drift in AI agent tool calls?
Approval drift is the gap between the request a reviewer approved and the request that runs. Where it comes from, the three ways it is caught, and what a bound approval does not cover.
What is a bound approval for an AI agent action?
A bound approval ties a human decision to the exact request it was given for. What it binds, how it differs from an approval flag, and where its protection stops.
What does "the agent never holds the key" mean? Credential custody for AI agents
Credential custody means the provider API key lives with the system that makes the call, not with the agent. What the agent holds instead, what it protects against, and where it stops applying.
What is a governed action for an AI agent?
A governed action is an agent action that Anlyon puts under a shared limit, a bound approval and a graded receipt. What makes an action governed, how it differs from a plain hosted action, and what it does not cover.
What is an AI agent kill switch (halt)?
A halt is one switch that stops every agent in an environment from acting, including calls that were already approved. What it stops, what keeps working, and what it cannot recall.
What is a shared limit (impact limit) for AI agents?
A shared limit is one allowance every agent, session and key draws from, reserved before an action is sent. How it differs from a token budget or a per-key quota, with an example of two agents racing for the last $100.
What is an unknown outcome for an AI agent action?
An unknown outcome is an action that may or may not have happened at the provider, because no usable response came back. Why it is not a failure, why it must not be retried blindly, and how it settles.
Guardrails
2 pages
A permission control framework for AI agents: allow, limit, approve or forbid
A practical permission framework for AI agents: classify each action by risk and reversibility, then allow, limit, require approval or forbid. With TypeScript.
AI agent tool permissions: least privilege for every tool call
How to design tool permissions for AI agents in production: narrow tools instead of generic ones, validated inputs, fixed destinations, scoped keys, policies and approvals. What each layer stops, and what it does not.
HubSpot
1 page
Impact limits
1 page
Incident prevention
1 page
LangGraph
1 page
MCP servers
3 pages
What an MCP gateway is, how it differs from a proxy, and how to choose one
An MCP gateway puts one endpoint in front of many MCP servers and holds their credentials. What it solves, gateway vs proxy vs aggregator, and what to check.
How MCP server authentication works: OAuth 2.1, client registration and API keys
How a remote MCP server signs a client in: OAuth 2.1, protected resource metadata, client registration and API-key headers, and what breaks in practice.
How to put a remote MCP server behind Anlyon and govern each tool your agent calls
Register a remote MCP server, adopt the tools your agent may call, require approval on the risky ones, let each of your users sign in with their own account, and see a changed tool refused before it runs.
Operations
3 pages
How to safely resume an AI agent after halting it in an incident
An incident runbook for AI agent actions: halt the environment, take stock of what already left, roll back the definitions that caused it, correct what can be corrected, and resume with one observed operation.
How to resume an AI agent after a crash without repeating a refund or email
Persist a business operation key before an agent acts, recover unfinished work from that record on restart, and handle multi-step tasks so a crash never turns one refund or email into two.
How to rotate an API key used by an AI agent without breaking pending actions
Rotate or revoke the provider key behind an AI agent's actions: what happens to approved requests waiting to run, to unresolved outcomes that still need a read-back, and to the agent's own Anlyon key.
Outcomes
2 pages
AI agent action timed out: how to tell whether it happened, and reconcile it
When an agent's refund, email or file update loses its response, record it as unknown, keep its allowance held, and settle it from provider evidence, a same-key replay or an operator's labelled resolution.
Investigate one consequential agent action
Connect business intent, approval, action version and provider evidence without mistaking a trace for proof of an external effect.
Provider workflows
1 page
Python
1 page
Receipts
1 page
Reliability
1 page
Slack and Linear
1 page
Vercel AI SDK
1 page
