Hey!
First of all, thanks for this amazing framework
I’m trying to figure out a way how to allow multiple different users to authenticate and then use my Agent in the open-source agent-ui
playground.
I’m a Python developer, so I can implement my own proxy Auth layer. I’m already passing user_id
to my Agent and have different memories / storage tables / sessions with different user_id
for my Agent (currently hardcoded).
Although it would be great to get an advice on how to approach the agent-ui
Playground, because as far as I understand, it only listens to single uvicorn
instance on a single port.
My ideas would be:
- As far as I understand, I would need to launch a single agent for a single user?
- How to figure out the port problem? Maybe it’s possible to somehow dynamically inject or remove new Agents from the same Playground instance? I’d hide the agent selections from the FE and would implement user validation.
- Another idea would be to dynamically spin up an
agent-ui
instance for every user and dynamically asign a random port to this instance, but this is not really scalable? I’d somehow need to manage NGINX configs etc. - Any other ideas to get me on a right path?
I’d be also happy to contribute to this library with my solution if needed.