[GH-ISSUE #3504] [FEAT]: Provide JWT to Agent (handler.js) #2260

Open
opened 2026-02-22 18:28:52 -05:00 by yindo · 0 comments
Owner

Originally created by @brainboutique on GitHub (Mar 20, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3504

What would you like to see?

It would be desirable to have information on logged in user and context for agent logic.

Use cases (multi-user setup, of course):

  • User's country: Allows agent to tap into country specific resources
  • Authentication / Authorization: Limit access to certain backend resoures for certain users / groups / ...
  • Workspace context: Use, for example, workspace name as additional fixed parametrization for agent execution

Proposal:

  • Expose a (AnythingLLM signed - private key could be auto-created on setup or set via env / parameter) JWT token
  • Via claims, expose the user's profile (right now: Rather limited)
  • Optional: Via claims (yes, this is a slight misuse) expose context information.
Originally created by @brainboutique on GitHub (Mar 20, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3504 ### What would you like to see? It would be desirable to have information on logged in user and context for agent logic. Use cases (multi-user setup, of course): - User's country: Allows agent to tap into country specific resources - Authentication / Authorization: Limit access to certain backend resoures for certain users / groups / ... - Workspace context: Use, for example, workspace name as additional fixed parametrization for agent execution Proposal: - Expose a (AnythingLLM signed - private key could be auto-created on setup or set via env / parameter) JWT token - Via claims, expose the user's profile (right now: Rather limited) - Optional: Via claims (yes, this is a slight misuse) expose context information.
yindo added the enhancementfeature request labels 2026-02-22 18:28:52 -05:00
yindo changed title from [FEAT]: Provide JWT to Agent (handler.js) to [GH-ISSUE #3504] [FEAT]: Provide JWT to Agent (handler.js) 2026-06-05 14:45:29 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#2260