Multilogin partner 50MAM browser · MAMOFF minutes — 50% off Get 50% off

MLX · Basic automation

How to Enable 2FA (Two-Factor Authentication) in CLI

Lock operator accounts with 2FA before you distribute API tokens across a team.

Updated 2026-07-28 · 1 min read

Why 2FA before automation

API tokens inherit the blast radius of the operator account that created them. Enabling 2FA reduces account-takeover risk when laptops, chat logs, or screenshots leak.

High-level CLI flow

Exact flags follow your installed Multilogin / MLX CLI version. Conceptually:

  1. Authenticate the CLI against your account.
  2. Start or open the 2FA enrollment command.
  3. Scan or enter the TOTP secret in your authenticator app.
  4. Confirm with a verification code.
  5. Store recovery codes offline (not in the repo).
  6. Re-auth CLI and confirm privileged commands still work.
# Illustrative — check `mlx --help` / vendor CLI docs for current verbs
mlx auth login
mlx account 2fa enable
mlx account 2fa verify --code 123456

Team policy

Rule Detail
Mandatory 2FA All users who can create tokens
No shared authenticators One human → one TOTP factor
Recovery codes Sealed storage; rotate after use
Offboarding Revoke tokens and remove 2FA device access paths

After 2FA

Continue with the workspace ID and token setup runbook, then Postman automation setup or script runner.

Multilogin plans with partner discount: 50MAM / MAMOFF.

Partner disclosure

Apply your Multilogin code after validation.

Commission may apply via /go/multilogin. Final totals always confirm on official checkout.

Antidetect browser

50% off · code 50MAM

Pro, Business & team profiles with API automation.

Minutes packs

50% off · code MAMOFF

Cloud mobile & pay-as-you-go minute packs.