Account Overview
Mullvad accounts are identified by a unique account number rather than email addresses or usernames. This privacy-focused approach means:- No personal information is required
- Account numbers are randomly generated
- You’re responsible for saving your account number securely
- Account time is purchased in advance (prepaid model)
Creating a New Account
You can create a new Mullvad account directly from the CLI, which automatically logs you in.Create Account
Use the This command:
account create command to generate a new account:- Generates a new random account number via
CreateNewAccountRPC - Automatically logs you into the new account
- Creates a device entry for your current machine
- Displays your account information
Save Your Account Number
After creation, you’ll see output like:Important: Save this account number securely. You’ll need it to log in on other devices.
Add VPN Time
New accounts come with limited trial time. Add more time using:
- Vouchers (see Voucher Redemption)
- Payment on the Mullvad website
Logging In
Log into an existing Mullvad account on your device.Interactive Login
Run the login command without an account number to be prompted:You’ll be prompted:Type or paste your 16-digit account number.
What Happens During Login
TheLoginAccount RPC performs several operations:
- Validates the account number with Mullvad’s API
- Creates or retrieves a device entry for your machine
- Generates a WireGuard keypair for secure connections
- Registers the device with your account
- Stores authentication credentials locally
Each device is assigned a random name (e.g., “Happy Seagull”, “Brave Dolphin”) for easy identification. See Device Management for details.
Viewing Account Information
Check your current account status and details.Basic Information
Verbose Output
Get detailed account and device information:The
GetAccountData RPC retrieves account expiration time from the API. The daemon calls UpdateDevice internally to ensure device information is current.Account States
Your account can be in one of three states:Logged In
You’re authenticated with a valid account number and active device. TheDeviceState is LOGGED_IN.
Logged Out
No account is configured on this device. TheDeviceState is LOGGED_OUT.
Revoked
Your device was removed from the account (manually or due to device limits). TheDeviceState is REVOKED.
Logging Out
Remove your account from the current device and delete its device entry.What Happens During Logout
TheLogoutAccount RPC:
- Removes the device entry from your account on the API
- Deletes the WireGuard keys for this device
- Clears stored account credentials locally
- Frees up a device slot for your account
Voucher Redemption
Vouchers add VPN time to your account. Purchase vouchers from authorized resellers or use promotional codes.Obtain a Voucher
Vouchers are alphanumeric codes (e.g.,
ABCD-1234-EFGH-5678) that can be purchased from:- Mullvad’s website
- Authorized resellers
- Promotional campaigns
Redeem the Voucher
Use the The command automatically strips hyphens and non-alphanumeric characters, so these formats all work:
account redeem command:Voucher Validation
The daemon validates vouchers through the API. Common errors:- Invalid voucher: Code doesn’t exist or was mistyped
- Already used: Voucher has been redeemed on another account
- Expired: Voucher is past its expiration date
Account History
The daemon maintains a local history of accounts you’ve logged into on this device.View Account History
TheGetAccountHistory RPC retrieves the most recent account number:
Clear Account History
Remove stored account history from local settings:Account history is stored locally only. Clearing it doesn’t affect your account on Mullvad’s servers.
Web Authentication Tokens
Get a temporary token to authenticate with Mullvad’s web interface.Generate Auth Token
TheGetWwwAuthToken RPC generates a short-lived token:
- Viewing detailed account information
- Managing payment methods
- Reviewing connection history
- Downloading invoices
Related Topics
- Device Management - Managing devices and device limits
- Authentication - WireGuard key rotation and security
CLI Reference
| Command | Description |
|---|---|
mullvad account create | Create and log into a new account |
mullvad account login [ACCOUNT] | Log into an existing account |
mullvad account logout | Log out and remove device from account |
mullvad account get | Display current account information |
mullvad account get -v | Display verbose account and device details |
mullvad account redeem <VOUCHER> | Redeem a voucher code |
gRPC Service Reference
The management interface provides these account-related RPCs:| RPC | Request | Response | Description |
|---|---|---|---|
CreateNewAccount | Empty | StringValue | Generate new account and return number |
LoginAccount | StringValue (account) | Empty | Authenticate with account number |
LogoutAccount | StringValue (reason) | Empty | Remove device from account |
GetAccountData | StringValue (account) | AccountData | Retrieve account expiration and ID |
GetAccountHistory | Empty | AccountHistory | Get most recent account number |
ClearAccountHistory | Empty | Empty | Clear stored account history |
GetWwwAuthToken | Empty | StringValue | Generate web authentication token |
SubmitVoucher | StringValue (voucher) | VoucherSubmission | Redeem voucher code |