GitHub Sign-Up and Device Verification Code by Email

Short answer: GitHub sends two different codes by email. At sign-up you get "Your GitHub launch code", an 8-digit code that confirms your address. Later, when you sign in from a new browser or device on an account without two-factor authentication, you get "[GitHub] Please verify your device", a 6-digit device verification code. GitHub's documentation says the device code is valid for one hour. The launch code is short-lived too, so enter both as soon as they arrive.

This guide is for students and developers opening a personal account, whether you are in India, Bangladesh, Pakistan, Indonesia, France or anywhere else. It walks through sign-up with a rented Gmail inbox, explains the device code, and covers what to set up so you never get locked out. If you are building a machine user or a CI account, see rent Gmail for GitHub: machine users and CI instead.

GitHub's email codes at a glance

Email When it is sent Code What to do
Your GitHub launch code At sign-up, after the puzzle 8 digits Enter it on the sign-up page
[GitHub] Please verify your device Sign-in from a new browser, device or profile, without 2FA 6 digits Enter it on the sign-in page, valid for one hour
Email verification link You add an address under Settings, then Emails A button Open it to confirm that address

Knowing which one you are waiting for saves a lot of confusion. A launch code never comes during a sign-in, and a device code never comes at sign-up.

Sign up for GitHub with a rented Gmail, step by step

A rented inbox on OTPGmail is a real @gmail.com or @icloud.com address. GitHub treats it like any other real mailbox, so it passes the domain check that blocks many throwaway domains.

  1. Open the rent page with GitHub selected. Choose Gmail or iCloud as the inbox type. iCloud is usually cheaper and works the same way for GitHub. Press Rent now.
  2. Copy the address from your order.
  3. On GitHub's sign-up page, use the email form, not "Continue with Google". A rented inbox has no Google password to sign in with.
  4. Paste the address, choose a strong password and a username, and solve the puzzle.
  5. Watch your order. The launch code usually shows within about 1 minute. You never sign in to the inbox.
  6. Type the 8 digits on GitHub's page. The account is now live.

Over the last 30 days, 89% of GitHub orders on OTPGmail received a code. If nothing arrives within 25 minutes, the order cancels itself and refunds 100% to your balance. Prices and stock are on the GitHub inbox page.

The device verification code: when it appears

GitHub asks you to verify a device the first time you sign in from somewhere it does not recognize. That includes:

The code goes to every email address on your account, primary and backup. That detail matters. If you add your own address after sign-up, device codes will reach it too, even after the rented inbox stops receiving mail. If you have GitHub Mobile, GitHub may send the request to the app instead, and you can still ask for an email code.

GitHub skips device verification when the account has two-factor authentication turned on, or when you sign in with a passkey. That is the cleanest way to stop these emails for good.

If you expect a device code soon after sign-up, for example because you will sign in on a second laptop, do it while your order can still receive codes. Extra codes cost nothing within the order period when the service sends more than one; the limit and time window are shown before you rent.

After sign-up: your own email and 2FA

Treat the rented address as the sign-up step only. Within your first session:

  1. Go to Settings, then Emails, and add an email you will keep. GitHub sends a verification link to it. If the link does not come, use the resend option on the same page.
  2. Make that address your primary email.
  3. Go to Settings, then Password and authentication, and turn on two-factor authentication with an authenticator app or a passkey.
  4. Download your recovery codes and store them somewhere safe.

Students: the GitHub Student Developer Pack checks your school status separately, usually with a school-issued email or proof of enrollment. A rented Gmail does not replace that. Add your school email under Settings, then Emails, and apply from there.

Common errors and how to fix them

GitHub allows one free personal account per person. Extra accounts should be machine users or belong to a client or organization. OTPGmail is not responsible for accounts that break GitHub's terms.

API note: read GitHub codes in CI

If you test sign-up or login flows in CI, you can skip the web page. With your API key, create an order with POST /v1/orders and the body { "service": "git" }, then poll GET /v1/orders/{orderId} every 3 to 5 seconds until the otp array has a code. If no code comes, POST /v1/orders/{orderId}/cancel refunds the order. Send an Idempotency-Key header when you create orders, and keep within the rate limits, which are 20 requests per second by default. The Gmail OTP API overview and the API docs have full request and response examples.

Frequently asked questions

How do I rent Gmail OTP for GitHub?

Open the rent page, choose GitHub and an inbox type, and press Rent now. Paste the address into GitHub's email sign-up form, then read the launch code on your order page. You pay only when an address is issued, and an order with no code is refunded in full.

How long is the GitHub device verification code valid?

GitHub's documentation says one hour. The launch code at sign-up is short-lived as well, so enter either code as soon as it arrives.

Can I verify my email on GitHub later?

The launch code has to be entered during sign-up. Addresses you add later under Settings, then Emails, are confirmed with a link, and that page offers a resend if the first link is lost.

Why does GitHub keep asking me to verify my device?

You are signing in from a browser or device GitHub does not recognize, often after clearing cookies or using a private window. Turn on two-factor authentication or sign in with a passkey, and GitHub stops asking.

Is a rented Gmail enough for a GitHub student account?

For opening the account, yes. For the Student Developer Pack, no. GitHub checks your school status with a school email or documents, so add your school address to the account before you apply.

Related guides

Get your verification code now

Sign up free. You are only charged when an inbox is issued. No code within 25 minutes — 100% refunded automatically.

Can't find the service you need? Use Add service on the rental page and we will add it if our infrastructure supports it.

Need a Gmail account you can sign in to, not just a code? See buy short-lived Gmail accounts · Refund and warranty