Skip to content

[Bug]: npm create-user can't create users without interaction if provided with password #10202

Description

@hpckurt

What happened?

I'm trying to set up an automated script for launching and running Librechat. However, I've run into an issue when trying to create users. Each time I try to auto-create a user using npm create-user, it forces me to interact with it.

The expected output is for Librechat to create the user without any interaction needed by the user.

Version Information

36f0365

Steps to Reproduce

  1. Run npm create-user with a password
  2. Librechat requires email verification interaction

What browsers are you seeing the problem on?

No response

Relevant log output

$ npm run create-user testing@test.com hello tester testing123 --email-verified=True

> LibreChat@v0.8.0 create-user
> node config/create-user.js testing@test.com hello tester testing123

Warming up the engines...
2025-10-21 10:42:15 info: Mongo Connection options
2025-10-21 10:42:15 info: {
  "bufferCommands": false,
  "autoIndex": false,
  "autoCreate": false
}
--------------------------
Create a new user account!
--------------------------
Warning: password passed in as argument, this is not secure!
Email verified? (Y/n, default is Y):

If `y`, the user's email will be considered verified.
      
If `n`, and email service is configured, the user will be sent a verification email.

If `n`, and email service is not configured, you must have the `ALLOW_UNVERIFIED_EMAIL_LOGIN` .env variable set to true,
or the user will need to attempt logging in to have a verification link sent to them.
>

Screenshots

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛 bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions