Client identity metadata for shared WebUI and mobile app setups #5237
promptclickrun
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I’d like to propose first-class support for passing client or user identity from mobile/WebUI clients into the WebUI backend and agent context.
The problem
A single WebUI server can be shared by multiple people or devices, but the agent has no reliable way to know who is sending a message.
Example setup:
Without identity metadata, the agent has to guess or assume one default user. That gets awkward fast in household, family, team, or shared workspace scenarios.
Proposed solution
Support optional client identity metadata on every chat request.
For headers:
Or equivalent JSON in the request body:
{ "client_identity": { "name": "Person A", "id": "person-a-ios", "session_key": "household:person-a:ios" } }The WebUI backend could inject this into hidden runtime context for the agent:
This should not appear as a visible fake user message. It should be internal context for that turn.
Mobile app support
The mobile app could expose this per saved server or connection, or pass the existing Display Name field forward:
Then every chat request includes the identity metadata automatically.
WebUI behavior
Suggested behavior:
Why this matters
This would support:
Profiles are useful when people need real isolation. But for many setups, the desired behavior is one shared assistant that simply knows who is speaking.
Minimal version
The smallest useful implementation would be:
X-Hermes-Client-NameandX-Hermes-Session-Key/api/chat/startThat would unlock the core multi-user use case without changing the visible chat model or requiring separate backend profiles.
All reactions