Human-in-the-loop approval for AI agents, in your app

Human-in-the-loop approval means a risky step your AI agent takes waits for a yes before it runs. With Anlyon the yes can come from the user the agent acts for: they approve the exact request inside your app, Anlyon makes the call on that yes, and the audit record shows who decided. You build no approval backend.

A few lines on your server, then connect a user.

  1. 1.Set the ruleOne policy on the action: a person must approve, decided by the end user.
  2. 2.The call waitsYour agent gets an approval id instead of a result. Nothing is sent.
  3. 3.The user decidesIn your app, on the exact request: what, where and for whom.
  4. 4.Anlyon sends itThe request that was shown goes out on the yes, with a receipt.

A confirm step your agent draws is a step your agent can skip. With Anlyon the call cannot leave until the user's yes is recorded, so there is nothing to skip.

Less risk

A risky write can't leave until the user it touches has said yes to that exact request.

Less cost

No approval table, notification job, expiry sweep or decision API to build and keep secure.

Less effort

One policy and one component. The call returns an approval id and the component does the rest.

Between the ask and the call. The right person decides the exact request.

And the agent that asked can never answer it.

Approvals inside your product, not your team's inbox

Set a policy to Decided by: End user and the approval goes to the user the call acts for. Put ApprovalPrompt under the chat message that asked, or ApprovalInbox on a settings page, from @anlyonhq/react (beta). A short-lived session token keeps your API key on your server.

  • Shows the action in words, its input and the preview
  • Approve or decline, with an optional note
  • A session token decides only that user's own approvals

The agent can't approve itself

The credential that asked can never be the one that decides. No scope grants it and no policy relaxes it, so no prompt talks the agent into waving its own request through.

  • The approval belongs to the user the call acts for
  • Who decided, and when, is in the audit record
  • Filter approvals by user in the console

The yes sends exactly what was shown

On the yes, Anlyon runs the parked call itself, against the request frozen when it was asked for. Editing the action while it waits refuses the dispatch with action_changed. Your agent waits on one id.

  • Destination bindings are checked again at dispatch
  • An approval that expires undecided is graded refused
  • The key stays with Anlyon the whole time

Calls that are yours to decide go to your team

Some steps belong to you, not the user: a refund from your own Stripe account, a change to your own repository. Those land in the console inbox with the full request, or as a Slack message with Approve and Deny. Nobody approves their own agent's request while another member can decide it.

  • Approver and viewer roles, set per environment
  • One switch halts every call in the environment

A call on your server. A prompt in your app.

Your server names the user and invokes the action. When it comes back pending, your app shows the prompt for that approval, and the call runs on the user's yes.

approve.tsx
// On your server: act for the signed-in user.const { data } = await anlyon  .forUser(session.userId)  .actions.invoke("add-note", note);if (data.pendingApproval) {  return { status: "awaiting_user", approvalId: data.approvalId };}// In your app: the user decides this exact note.<ApprovalPrompt approvalId={approvalId} onDecided={refresh} />

Public reports say a coding agent deleted a production database and its backups in nine seconds, with no pause for a human and a token far beyond its task. For an action routed through Anlyon, a policy can hold the call for a person, and the key never leaves Anlyon.

Read the teardown25 April 2026

Human oversight and logging. Controls you get because Anlyon makes the call.

The EU AI Act's high-risk obligations apply from December 2027 and August 2028. Article 14 asks for human oversight, including a way to stop the system. Article 12 asks for automatic logging. Both act at the point a side effect leaves, and for an action routed through Anlyon that point is on our side.

  • Article 14(4): human oversight

    A person must be able to understand, override, and intervene or stop the system.

    Anlyon makes the call, so it can hold it. A gated action parks for a human. Policy routes what needs review, and a rule can require N distinct approvers. N counts distinct credentials for API-key deciders and distinct users for dashboard and OAuth deciders. Halt stops the agent acting and stops anything leaving. A request another server already accepted is not recalled.

  • Article 12: record-keeping

    Automatic logging of events relevant to risk identification and traceability.

    Every run is a trace: model calls, invocations Anlyon made on the agent's behalf, approval waits and decisions, who decided, when, under which policy version. Exportable as OpenTelemetry, so your records outlive any vendor.

  • Article 9: risk management

    Identify and control the risks the system poses in production.

    Environment isolation bounds the blast radius: a staging key can't resolve to production. A protected environment needs explicit confirmation to change. Budgets cap the Anlyon operations a key may perform. Versioned action definitions let you pin what an agent version shipped with, and a rollback puts the previous definitions back for what happens next.

Anlyon provides oversight and logging capabilities. Whether your system is in scope and compliant is a determination for your counsel.

Let your agent act for your users, safely.

A few lines of server code, then send a user a connect link. Nothing to host.

$ claude mcp add --transport http anlyon https://api.anlyon.com/mcp