agent-zero icon indicating copy to clipboard operation
agent-zero copied to clipboard

Agent zero requests me to set the username and password -- but doesn't provide me with a means to do so

Open factor3 opened this issue 10 months ago • 4 comments

I am running Agent 0 within my Intranet. Unfortunately, when I attempt to access it, I get a message box with the following connection error message:

Origin http://192.168.2.100:3000 not allowed when login is
disabled. Set login and password or add your URL to 
ALLOWED_ORIGINS env variable. Currently allowed origins:
 *://localhost:*,*://127.0.0.1:*,*://0.0.0.0:*

I don't mind requiring enabled login and authentication credentials -- except that the system doesn't allow me to set them!

According to your documentation, I can add a username and password using the Settings → Authentication → Set username and password for web interface access. The problem is that when I click on Settings, I get the same connection error.

Interestingly enough, I did set the environment variable ALLOWED_ORIGINS to my IP address. Now, however, I am getting the following connection error:

Origin http://192.168.2.100:3000 not allowed when login is 
disabled. Set login and password or add your URL to 
ALLOWED_ORIGINS env variable. Currently allowed origins:
 192.168.2.100:3000

Obviously, there is either another way to set up an Agent 0 instance so that I can start it up with login enabled, or your system has a bug in it that does not allow anyone to access it when using other than localhost.

Of course, I could start it up from localhost -- except that I am running it on a Zimablade that is running Ubuntu server -- not exactly an environment where I can actually use a browser on localhost!

Can someone tell me how I can access this application so that I can actually enable the login and put in some credentials???

factor3 avatar Feb 04 '26 00:02 factor3

https://github.com/agent0ai/agent-zero/issues/832

rolsch avatar Feb 06 '26 09:02 rolsch

Closing due to inactivity of 90 days.

github-actions[bot] avatar May 08 '26 04:05 github-actions[bot]

Still happening in v2.7. Even after setting in in env.

bimg21 avatar Jul 28 '26 11:07 bimg21

Still happening in v2.7. Even after setting in in env.

I managed to get around it by doing this: docker stop agent-zero2 && docker rm agent-zero2

docker run -d -p 20000:80 --name agent-zero2
-v a0_v2_usr:/a0/usr
-e ALLOWED_ORIGINS="http://IP-ADDRESS-THAT-NEEDS-TOBE-ADDED:20000"
agent0ai/agent-zero:latest

then I used http://localhost:20000

alexlegasg-afk avatar Aug 11 '26 14:08 alexlegasg-afk