Skip to content

Commit 37d6159

Browse files
committed
docs: update login instructions to use random initial password for first-time users
1 parent 989cc0d commit 37d6159

14 files changed

Lines changed: 22 additions & 22 deletions

File tree

docs/en/deploy/astrbot/cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ If there are no errors, you will see a log message similar to `🌈 Dashboard st
8686
> [!TIP]
8787
> If you are deploying AstrBot on a server, you need to replace `localhost` with your server's IP address.
8888
>
89-
> The default username and password are `astrbot` and `astrbot`.
89+
> New users must use the random password printed in the startup logs to log in for the first time. Use the username shown in the logs (usually `astrbot`) and change it after first login.
9090
9191

9292
Next, you need to deploy any messaging platform to use AstrBot on that platform.

docs/en/deploy/astrbot/compshare.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ You can find the public IP in Console -> Basic Network (Public).
3535
3636
![WebUI](https://www-s.ucloud.cn/2025/07/7e9fc6edc1dfa916abc069f4cecc24cf_1753940381771.png)
3737

38-
Login with username `astrbot` and password `astrbot`.
38+
Use the random password printed in startup logs for first-time login, and use the username shown in the logs (usually `astrbot`). Change it immediately after login.
3939

4040
After logging in, you can reset your password and continue setup.
4141

docs/en/deploy/astrbot/docker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ If there are no errors, you will see a log message similar to `🌈 Dashboard st
8484
> [!TIP]
8585
> Since Docker isolates the network environment, you cannot use `localhost` to access the dashboard.
8686
>
87-
> The default username and password are `astrbot` and `astrbot`.
87+
> New users must use the random password printed in the startup logs to log in for the first time. Use the username shown in the logs (usually `astrbot`) and change the password after first login.
8888
>
8989
> If deployed on a cloud server, you need to open ports `6180-6200` and `11451` in the cloud provider's console.
9090

docs/en/deploy/astrbot/kubernetes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,4 +194,4 @@ Edit the `02-deployment.yaml` file and add `volumes` and `volumeMounts` under `s
194194

195195
After deploying and exposing the service, you can access the AstrBot admin panel through the corresponding IP and port.
196196

197-
> The default username and password are `astrbot` and `astrbot`.
197+
> New users must use the random password printed in the startup logs for the first login. Use the username shown in the logs (usually `astrbot`) and change it after logging in.

docs/en/deploy/astrbot/launcher.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ If everything works, you will see AstrBot logs.
6666
Without errors, you should see a log like `🌈 Management panel started, accessible at` with several URLs. Open one URL to access AstrBot WebUI.
6767

6868
> [!TIP]
69-
> Default username and password: `astrbot` / `astrbot`.
69+
> First-time logins use the random password generated on startup and printed to logs. Use that password (and the username shown in the logs, usually `astrbot`) to log in, then change it immediately.
7070
>
7171
> If WebUI returns 404:
7272
> Download `dist.zip` from [release](https://github.com/AstrBotDevs/AstrBot/releases), extract it into `AstrBot/data`, then restart the computer if needed.

docs/en/dev/astrbot-config.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ The default AstrBot configuration is as follows:
116116
"dashboard": {
117117
"enable": True,
118118
"username": "astrbot",
119-
"password": "77b90590a8945a7d36c963981a307dc9",
119+
"password": "<your_password_md5>",
120120
"jwt_secret": "",
121121
"host": "0.0.0.0",
122122
"port": 6185,
@@ -492,11 +492,11 @@ List of addresses that bypass the proxy. E.g., `["localhost", "127.0.0.1"]`.
492492

493493
AstrBot WebUI configuration.
494494

495-
Please do not change the `password` value arbitrarily. It is an `md5` encoded password. Change the password in the control panel.
495+
Please do not change the `password` value arbitrarily. It is an `md5` encoded password generated from the random initial password. Check the startup logs for that initial password on first run, then change it in the control panel.
496496

497497
- `enable`: Whether to enable the AstrBot WebUI. Default is `true`.
498-
- `username`: Username for the AstrBot WebUI. Default is `astrbot`.
499-
- `password`: Password for the AstrBot WebUI. Default is the `md5` encoded value of `astrbot`. Do not modify directly unless you know what you are doing.
498+
- `username`: Username for the AstrBot WebUI.
499+
- `password`: Password for the AstrBot WebUI. It is initialized from a random password generated on first startup (logged at startup). Do not modify directly unless you know what you are doing.
500500
- `jwt_secret`: JWT secret key. AstrBot generates this randomly at initialization. Do not modify unless you know what you are doing.
501501
- `host`: Address the AstrBot WebUI listens on. Default is `0.0.0.0`.
502502
- `port`: Port the AstrBot WebUI listens on. Default is `6185`.

docs/en/use/webui.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ After starting AstrBot, you can access the admin panel by visiting `http://local
1313
1414
## Login
1515

16-
The default username and password are both `astrbot`.
16+
For first-time login, AstrBot generates a random initial password and prints it in startup logs. Please read the startup log line containing the WebUI credential and use that password to log in (username is usually `astrbot`).
1717

1818
## ChatUI
1919

docs/zh/deploy/astrbot/cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ python main.py
8585
> [!TIP]
8686
> 如果你正在服务器上部署 AstrBot,需要将 `localhost` 替换为你的服务器 IP 地址。
8787
>
88-
> 默认用户名和密码是 `astrbot``astrbot`
88+
> 首次登录请使用启动日志中打印的随机初始密码(用户名通常为 `astrbot`)。登录后请立即修改密码
8989
9090

9191
接下来,你需要部署任何一个消息平台,才能够实现在消息平台上使用 AstrBot。

docs/zh/deploy/astrbot/compshare.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Both services started in the background.
3434
3535
![WebUI 界面](https://www-s.ucloud.cn/2025/07/7e9fc6edc1dfa916abc069f4cecc24cf_1753940381771.png)
3636

37-
使用用户名:astrbot 和密码 astrbot 进行登录
37+
首次登录时请使用启动日志内的随机初始密码(用户名通常是 astrbot),登录后请立即修改密码
3838

3939

4040
登录成功后,可以重新设置密码,并进入 AstrBot 的页面。
@@ -86,4 +86,4 @@ AstrBot 支持接入优云智算提供的模型 API。
8686

8787
## 更多功能
8888

89-
更多功能请参考 [AstrBot 官方文档](https://docs.astrbot.app)
89+
更多功能请参考 [AstrBot 官方文档](https://docs.astrbot.app)

docs/zh/deploy/astrbot/docker.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ sudo docker logs -f astrbot
9898
> [!TIP]
9999
> 由于 Docker 隔离了网络环境,所以不能使用 `localhost` 访问管理面板。
100100
>
101-
> 默认用户名和密码是 `astrbot``astrbot`
101+
> 首次登录请使用启动日志中打印的随机初始密码(用户名通常为 `astrbot`)。登录后请立即修改密码
102102
>
103103
> 如果部署在云服务器上,需要在相应厂商控制台里放行对应端口。
104104

0 commit comments

Comments
 (0)