Activate the Admin Token for Vaultwarden

Hello there.
I am trying to activate the token admin thingy for vaultwarden but it’s without succes so far.
Keep getting : “The admin panel is disabled, please configure the ‘ADMIN_TOKEN’ variable to enable it”
According to those topics : Enabling admin page - Help - Vaultwarden Forum (formerly Bitwarden_RS)
How to enable admin page on vaultwarden? · tteck/Proxmox · Discussion #250 · GitHub
I have tried to locate “conf.json” to change it, can not find it. Found many other forums/topics with more or less the same answers but same result.
Went in to /home/umbrel/umbrel/app-data/vaultwarden but no config file or anything usefull.
Could not find anything on this forum too :slightly_frowning_face:

I run out of ideas to do, anyone could activate it ?
I’m basically trying to set up SMTP and would like to change/verify the settings.

Hi Cheffy,

you can achieve this by injecting the variable via docker exec. You need to restart Vaultwarden / Vaultwarden Container afterwards. I hope this is helpful.

Add Variable:
docker exec -i <your_container_id> /bin/bash -c “export ADMIN_TOKEN=<your_admin_token>”

1 Like

I spent days trying to make this work, even with the tip from @patimwep However, what really worked was adding the ADMIN_TOKEN variable within the docker-compose.yml file within /home/umbrel/umbrel/app-data/vaultwarden/docker-compose.yml

ADMIN_TOKEN: '$$argon2id$$v'
1 Like

Hi guys.

Thank you for the effort but those didn’t worked, unfortunatly.

@patimwep : This does nothing at all.
It looks like there is 2 containers, I tried with both but nothing.

@edsonsbj : your solution simply kill the container and can not do anything.
After deleting the variable it works fine again.
I added it at the end of the file, should it be somewhere else ?