The OpenRouter API supports User Tracking through the optional user parameter, allowing you to track your own user IDs and improve your application’s reporting capabilities.
User tracking enables you to specify an arbitrary string identifier for your end-users in API requests. This optional metadata helps OpenRouter understand your sub-users.
Simply include a user parameter in your API requests with any string identifier that represents your end-user. This could be a user ID, email hash, session identifier, or any other stable identifier you use in your application.
Use consistent, stable identifiers for the same user across requests:
user_12345, customer_abc123, account_xyz789When using user identifiers, consider privacy implications:
Use the same user identifier format throughout your application: