anything-llm icon indicating copy to clipboard operation
anything-llm copied to clipboard

[FEAT]: Enable User Tracking for OpenRouter Requests

Open thoughtlabs-nz opened this issue 3 months ago • 2 comments

What would you like to see?

OpenRouter has user tracking features to map submissions to users - this is a core part of identifying usage in a multi user system. AnythingLLM clearly captures this and could be amended to pass this detail to the OpenRouterAPI by mapping the user parameter.

https://openrouter.ai/docs/use-cases/user-tracking

If this could be enabled - then AnythingLLM linked to OpenRouter would be able to fully leveraged as a multiuser LLM service for business.

Is this something that we could please add?

Thanks

Tim

thoughtlabs-nz avatar Sep 30 '25 20:09 thoughtlabs-nz

would like to work on this @thoughtlabs-nz @timothycarambat

Guru6163 avatar Oct 08 '25 06:10 Guru6163

Thank you - this is awesome news - I am happy to assist if any help is needed.

Having the ability to pass the username is really important when tracking usage in 3rd party systems - we only need to allow a mapping between the AnythingLLM username and pass this in the call made to OpenRouter.

Kind regards

Tim

thoughtlabs-nz avatar Oct 09 '25 06:10 thoughtlabs-nz

Resolved by https://github.com/Mintplex-Labs/anything-llm/pull/4668

timothycarambat avatar Nov 20 '25 20:11 timothycarambat