On this page
OKX asks for an authenticator code when you log in from a new device, withdraw crypto, or change security settings. Setting up the authenticator app in the OKX security center gives you a setup key along with a QR code. Paste the key above and this page generates the current 6-digit code.
Generating the code on your computer can be quicker when you are already trading on the desktop. The key is used only by your browser to compute codes. For an exchange account, a single copy is not enough: keep the key in an authenticator app or password manager, and write it down offline if you hold significant funds.
How to find your OKX secret key
- Log in to OKX and open your profile menu → Security center (sometimes just Security).
- Find Authenticator app and select Set up or Change.
- Confirm your identity with the codes OKX sends to your email or phone.
- Copy the setup key shown with the QR code. Menu names can vary between the OKX app and website.
- Save the key securely before entering the verification code.
How to log in to OKX with the code
- Paste the OKX key into the generator above.
- Copy the 6-digit code and enter it in the authenticator field on OKX.
- Confirm the setup. When OKX later asks for an authenticator code, generate a new one here.
OKX 2FA tips
- OKX may restrict withdrawals for a period after you change security settings. Avoid changing 2FA right before you need to move funds.
- Use OKX's anti-phishing code feature so you can tell real OKX emails from imitations.
- OKX Wallet (self-custody) and your OKX exchange account are separate. This 2FA protects the exchange account, not a wallet seed phrase.
Your OKX key is processed only in this browser and is never uploaded. Keep a copy in an authenticator app or password manager as well.
OKX 2FA FAQ
Can I use Google Authenticator and this generator together for OKX?
Yes. Enter the same key in both and they will show identical codes. Having the key in an authenticator app is a good backup in case you lose access to this page or your browser.
Why does OKX reject my code?
Check device time sync, make sure you copied the complete key and use the code before it expires. If you changed the authenticator recently, the old key is no longer valid.
I lost my OKX authenticator. How do I reset it?
OKX provides a reset process within its official site or app that may include identity verification. Use only official channels and be cautious of anyone offering to reset it for you.
Does this tool store my OKX key?
No. The key stays in your browser and is not transmitted to our servers. Close the tab once you are finished if you are on a shared computer, though ideally you should only use your own device.