Root User Setup
TradeJS CLI defaults to --user root, so creating a valid root account is the fastest way to start.
1. Create or Update Root User
npx @tradejs/cli user-add -u root -p 'StrongPassword123!'
What this does:
- hashes password with
bcrypt - writes user record to Redis key
users:index:root - keeps account-level settings in the same Redis user record
2. Check User in Redis
redis-cli JSON.GET users:index:root
You should see at least:
userNamepasswordHashupdatedAt
After you save account settings in the UI, the same record can also contain:
BYBIT_API_KEYBYBIT_API_SECRETAI_API_KEYAI_API_ENDPOINTTG_BOT_TOKENTG_CHAT_ID
3. Sign In to the App
- Open your TradeJS sign-in page (or your API client).
- Log in with
rootand your password. - Open the account settings drawer from the gear icon in the left sidebar.
- Configure the settings you need for this user:
- Bybit API key/secret
- password rotation
- AI provider API key/endpoint
- Telegram bot token/chat id
4. Rotate Password
Set new password:
npx @tradejs/cli user-add -u root -p 'NewStrongPassword456!'
Notes:
- Password can also be rotated from the account settings drawer after sign-in.
- Secret values are stored in Redis per user and shown masked in the UI.
- Legacy passwordless
tokenfields are removed by the current account-settings API and are not accepted byuser-add.