OAuth 2.0 token exchange (RFC 8693) lets a client trade one security token for another, usually narrower or for a different audience, at an authorization server.
RFC 8693, OAuth 2.0 Token Exchange, defines a request to an authorization server's token endpoint with the grant type urn:ietf:params:oauth:grant-type:token-exchange. The client presents a subject_token (whose authority is being used) and optionally an actor_token (who is acting), and asks for a new token for a stated audience, resource or scope. The server applies its policy and returns a new token. The RFC separates two cases. In impersonation, the new token simply represents the subject. In delegation, it records both, and the act claim names the party acting on the subject's behalf, so a service can see that "agent B is acting for user A". For AI agents this is the standard building block for task-scoped tokens: instead of holding a person's long-lived key, an agent exchanges a short-lived token for one that works only at one service, for one task, and expires with the session. Keycard uses token exchange to narrow permissions each time work passes between agents. The trade-off is that the target service must accept OAuth tokens from that authorization server; many APIs still take only static keys, which is where a credential broker or credential proxy fits. BotPassword does not issue exchanged tokens today; it brokers the credentials a provider already issues.