Skip to content

Add agent information to UserAgent#1803

Open
xavdid-stripe wants to merge 1 commit intomasterfrom
RUN_DEVSDK-2249
Open

Add agent information to UserAgent#1803
xavdid-stripe wants to merge 1 commit intomasterfrom
RUN_DEVSDK-2249

Conversation

@xavdid-stripe
Copy link
Member

Why?

It's becoming more common that an AI agent interacting with Stripe data on behalf of a user will write a little script before executing it. We want to be able to identify that usage, so we're adding simple telemetry around that usage.

What?

  • adds function to check the environment for agent-related keys
  • add that info, if found, to the UserAgent string and X-Stripe-Client-User-Agent dict
  • tests

See Also

@xavdid-stripe xavdid-stripe requested a review from a team as a code owner February 27, 2026 23:33
@xavdid-stripe xavdid-stripe requested review from prathmesh-stripe and removed request for a team February 27, 2026 23:33
@xavdid-stripe xavdid-stripe enabled auto-merge (squash) February 27, 2026 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant