Agent-to-Wallet Protocol for Digital Credentials
Agent-to-Wallet Protocol for Digital Credentials (A2WP), draft-senarath-a2wp-01, is an individual Internet-Draft for AI Agents acting for people and organizations when they meet credential offers and presentation requests. [1] The Agent passes an offer or request to a Wallet via Submit (Submit takes a submission and returns an operation; Get takes an operation id and returns the operation; Cancel takes an operation id and returns the operation). [1] status is a REQUIRED string (pending, completed, failed, or cancelled), and while an operation is pending, the Agent SHOULD keep calling Get until it is terminal. [1] draft-senarath-a2wp-01 by T. S. Senarath is an Internet-Draft with intended status Standards Track and expires 20 April 2027. The document type is Active Internet-Draft (individual), published 17 October 2026 (2026-10-17). [1][2]
Problem and scope
An AI Agent can be misled by the content it processes, so it should not possess credentials or keys, or decide what to disclose. [1] The Agent finds the offer or request and passes it to a Wallet exactly as it received it. The Wallet decides whether to act, asks the Principal when its policy requires, and runs OpenID4VCI or OpenID4VP with the Issuer or Verifier. The Agent sees only the operation's status, any link it must pass to the Principal, and the continuation. [1] The Wallet MUST NOT return to the Agent private keys, credentials, or the presentations it sends. [1] The specification defines the messages and calls between an Agent and a Wallet, and how OpenID4VCI and OpenID4VP requests map onto them. Bindings, meaning how the calls are carried and how the Wallet authenticates the Agent, are out of scope. Wallet policy, the interaction user interface, credential formats and contents, delegation mechanisms, and Wallet internals, such as storage and key management, are out of scope. [1]
Completed presentation operation with continuation
{
"id": "op_x2p9E4",
"status": "completed",
"continuation": "https://tickets.example/cb?response_code=091535f699ea575c7937fa5f0f454aee"
}
Submit, Get, Cancel, and the operation lifecycle
draft-senarath-a2wp-01 defines the messages and calls between an Agent and a Wallet. Messages are JSON objects. Recipients MUST ignore members they do not recognize. The Wallet MUST NOT return to the Agent private keys, credentials, or the presentations it sends. The Wallet MUST scope operations to the Agent that submitted them, and MUST use credentials it acquired for an Agent only in that Agent's operations. [1]
- Unmodified request string:
requestis a REQUIRED string, the request exactly as the Agent received it. The Agent MUST NOT modify the request and MUST NOT dereference it or anything in it. If an Agent submits a request string it has submitted before, the Wallet MUST return the most recent operation for it, unless that operation ended before its commit point; the Wallet then MUST create a new operation. [1] - Operation members:
idis unique among the Wallet's operations for the Agent.statusispending,completed,failed, orcancelled.interactionis present only while status is pending and the Wallet needs the Principal.continuationis present only when status is completed or failed. [1] - Poll, terminal status, and Cancel:
pendingis the only nonterminal status. While an operation is pending, the Agent SHOULD keep calling Get until it is terminal. Cancel before the commit point stops the operation and returns it ascancelled. After the commit point, or once the operation is completed or failed, Cancel is rejected withnot-cancellable. [1] - Interaction URI and continuation: When the Wallet needs the Principal, the operation stays pending and carries an interaction object. The Agent SHOULD relay the
urito the Principal. The Wallet MUST obtain any secret the external protocol needs from the Principal through interaction, never from the Agent. If the counterparty returns a continuation, the Wallet MUST put it in the operation unchanged, whether the operation completed or failed. [1]
OpenID4VCI and OpenID4VP mappings, errors, and agent limits
A2WP does not replace OpenID4VCI or OpenID4VP. The Wallet speaks those protocols; A2WP only connects the Agent to the Wallet. A mapping fixes, for one external protocol, what the Agent can observe. The specification maps OpenID4VCI and OpenID4VP. [1]
- OpenID4VCI issuance row: The OpenID4VCI request is a Credential Offer with a pre-authorized code. The operation is
issuance. The commit point is redeeming the pre-authorized code. The operation is completed when every requested credential is obtained, validated and kept. Continuation isnone. [2] - OpenID4VP presentation row: The OpenID4VP request is an Authorization Request. The operation is
presentation. The commit point is sending the presentation. The operation is completed when the Verifier accepts the Authorization Response. The continuation is the redirect URI the Verifier returns. [2] - Error codes that bind the Agent: Other requests are
unsupported-request. An Agent treats an unrecognized code asprocessing-error. A Wallet MAY reportdeniedin place ofno-matching-credential. Afteroutcome-unknown, the Agent MUST NOT submit a request for the same transaction again without the Principal's agreement; the issuance or presentation may already have happened. [1] - Manipulated agents and relayed requests: An AI Agent can be steered by instructions hidden in the content it processes. A2WP limits the damage: the Agent never receives credentials, presentations or keys. The Agent does decide which requests to submit, and so, indirectly, what of its credentials is disclosed and to whom. Wallet policy and Principal approval bound those choices; a Wallet that approves every request automatically lets a manipulated Agent disclose anything its trust list allows. A page can show a request taken from another party's session with the same Verifier; presenting then completes that other session. For relayed requests from another party's session, the continuation defends against session fixation only when the Verifier completes a session once the continuation is redeemed in the session that showed the request. [1]
Adoption and ecosystem
See also
- Present protocols — Category index for
presentstandards.
References
- T. S. Senarath, Agent-to-Wallet Protocol for Digital Credentials (A2WP) (draft-senarath-a2wp-01), checked 2026-10-31 — https://www.ietf.org/archive/id/draft-senarath-a2wp-01.txt
- T. S. Senarath, Agent-to-Wallet Protocol for Digital Credentials (A2WP) (draft-senarath-a2wp-01 HTML), checked 2026-10-31 — https://datatracker.ietf.org/doc/html/draft-senarath-a2wp-01
- T. S. Senarath, draft-senarath-a2wp — Agent-to-Wallet Protocol for Digital Credentials (A2WP) (IETF Datatracker), checked 2026-10-31 — https://datatracker.ietf.org/doc/draft-senarath-a2wp/
- OpenID Foundation, OpenID for Verifiable Credential Issuance 1.0, fetched 2026-11-12 — https://openid.net/specs/openid-4-verifiable-credential-issuance-1_0.html
- OpenID Foundation, OpenID for Verifiable Presentations 1.0, fetched 2026-11-12 — https://openid.net/specs/openid-4-verifiable-presentations-1_0.html
- mme (ag-ui-protocol/ag-ui), AG-UI 1.0 is officially released, created 2026-09-18 — https://github.com/ag-ui-protocol/ag-ui/discussions/2792
- Agentic AI Foundation, A2A joins AAIF's open agentic stack, published 2026-08-17; modified 2026-09-24 — https://aaif.io/blog/a2a-joins-aaif
- Google (google-agentic-commerce), Agentic Payment Protocol (v0.2), fetched 2026-10-30 — https://raw.githubusercontent.com/google-agentic-commerce/AP2/main/docs/ap2/specification.md