# Can you have two GitHub accounts?

> You can have two GitHub accounts if one is a machine account: the terms allow one free personal account and one free bot account per person.

Source: https://mosaicbrowser.com/guides/can-you-have-two-github-accounts

## Can you have two GitHub accounts?

Yes, within limits. GitHub's Terms of Service let one person keep one free personal account plus one free machine account, and the machine account may only run automated tasks; a work account your employer creates under Enterprise Managed Users is a third case.

![1 + 1: One free personal account, one machine account, beside a screenshot: mosaic API keys: one per script or tool, each revocable on its own](https://mosaicbrowser.com/covers/can-you-have-two-github-accounts.webp)

Can you have two GitHub accounts? Yes, if the second one is a bot or a work account your employer manages. Section B.3 of GitHub's Terms of Service has the rule in two sentences: "You may maintain no more than one free machine account in addition to your free Personal Account. One person or legal entity may maintain no more than one free Account (if you choose to control a machine account as well, that's fine, but it can only be used for running a machine)." ([Terms of Service](https://docs.github.com/en/site-policy/github-terms/github-terms-of-service), effective 27 April 2026, read 2 November 2026.) A second account that is another you is not allowed.

Mosaic keeps accounts you are entitled to run apart; it does not change what a platform allows. On GitHub that is one free personal account per person, so most of this page is about what to use in its place.

## What GitHub's terms allow, account by account

Three kinds of user account come up when people ask this, and the terms treat them differently.

| Account | Who makes it | What GitHub allows |
| --- | --- | --- |
| Personal account | You, at sign-up | One free one per person or legal entity |
| Machine account | You, for a bot | One free one on top, "used exclusively for performing automated tasks" |
| Managed user account | Your employer, in GitHub Enterprise Cloud | Exists alongside your personal account; it cannot create public content |

The same section says "You must be a human to create an Account" and that accounts registered by bots "are not permitted". A machine account is the exception, and it has an owner: a human who accepts the terms for it, gives a valid email address and "is responsible for its actions". Several people may direct it; the owner still answers for it.

The [Acceptable Use Policies](https://docs.github.com/en/site-policy/acceptable-use-policies/github-acceptable-use-policies) close the other door. Section 4 lists "inauthentic interactions, such as fake accounts and automated inauthentic activity" and "rank abuse, such as automated starring or following" as activity GitHub does not allow. A second account to star your own repositories is both.

Mosaic is a desktop app

Email yourself the link and open it on your computer.

[How it works: Logins and 2FA codes](https://mosaicbrowser.com/features/logins-and-2fa)

## Can you have two GitHub accounts for work and personal?

The usual reason for a second account is a new job. GitHub's answer is the opposite of a second login. Its page on [types of accounts](https://docs.github.com/en/get-started/learning-about-github/types-of-github-accounts) says many people use one personal account for open source and paid employment alike, and "if you're currently using more than one personal account that you created for yourself, we suggest combining the accounts."

That works because an organisation is not something you sign in to. Your employer invites your personal account to its organisation, and every action you take there is attributed to you. One account can belong to several organisations at once.

The exception is a company on Enterprise Managed Users. There, the employer creates a managed user account for you, and you have to sign in to it to reach the company's repositories. It can't contribute to public projects, so open source work stays on your personal account ([Personal account management](https://docs.github.com/en/account-and-profile/concepts/account-management)). Two accounts are expected in that set-up, and GitHub built tools for it.

## Bots and CI: a machine account, or no account at all

A machine account suits a CI job that needs to push, comment or open pull requests as a named user. You get one free one. Before making it, read GitHub's page on [when to build a GitHub App](https://docs.github.com/en/apps/creating-github-apps/about-creating-github-apps/deciding-when-to-build-a-github-app). An App has fine-grained permissions and short-lived tokens. It is not tied to a user and doesn't take a seat, and it keeps working when the person who installed it leaves. A personal access token on your own account covers API testing and short scripts.

## Using two GitHub accounts on one computer

GitHub gives you three tools for the set-ups it allows.

1. The account switcher. Click your profile picture, then **Add account**, and sign in. It handles a personal account beside a machine account or a managed user account, and the sessions stay on that computer and browser ([Switching between accounts](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/switching-between-accounts)).
2. Git over two protocols. One account's credentials for HTTPS, the other's SSH key, chosen by how you clone.
3. Per-repository credentials. Run `git config --global credential.https://github.com.useHttpPath true` and give each account its own personal access token, so Git caches a token per remote URL ([Managing multiple accounts](https://docs.github.com/en/account-and-profile/how-tos/account-management/managing-multiple-accounts)).

GitHub's own warning comes with all three: "Management of two or more accounts can increase the chance of mistakenly leaking internal code to the public."

## If you already have two personal accounts

GitHub's merge is a set of steps, not a button ([Merging multiple personal accounts](https://docs.github.com/en/account-and-profile/how-tos/account-management/merging-multiple-personal-accounts)). Transfer the repositories to the account you keep (issues, pull requests and wikis go with them), update the remote URLs in your clones, delete the other account, then add the email you committed with to the account you keep.

The [personal account reference](https://docs.github.com/en/account-and-profile/reference/personal-account-reference) lists what stays behind. Organisation and repository permissions don't transfer, so an owner has to invite the kept account. Commits made with a GitHub noreply address can't be moved, and issues, pull requests, discussions and achievements are not re-attributed.

## Where a separate browser profile fits

We make Mosaic, a browser that gives each account its own profile with its own cookies, fingerprint and proxy. It does not turn a second free personal account into an allowed one, and the account switcher already covers a machine account for most people.

Where a profile helps is the rest of the work around that machine account or managed account: the cloud consoles, package registries and dashboards it signs in to. Each one then lives in its own cookie jar, away from your personal sessions. What a site uses to tie two sessions to one person is set out in [how websites detect multiple accounts](https://mosaicbrowser.com/guides/how-do-websites-detect-multiple-accounts). A profile's vault holds that account's password and its TOTP code, which Mosaic [types into the page with real keystrokes](https://mosaicbrowser.com/features/logins-and-2fa), so your bot's 2FA is not sitting in your phone's authenticator.

![The Mosaic companion inside a profile browser: a note, saved logins and a live two-factor code](https://mosaicbrowser.com/shots/companion.png)
*One account's login and 2FA code, inside its own profile*

The bot itself can run there too. On Pro, a Mosaic profile starts over the local REST API and hands back a CDP endpoint that Playwright and Puppeteer attach to, which is how [automating several browser profiles](https://mosaicbrowser.com/guides/automate-multiple-browser-profiles) works.

![Driving a Mosaic profile from Playwright over the local API](https://mosaicbrowser.com/shots/api-automation.png)
*Start a profile over the API and attach Playwright*

LinkedIn draws the line differently, with no machine account at all; the rule and its alternatives are in [can you have two LinkedIn accounts](https://mosaicbrowser.com/guides/can-you-have-two-linkedin-accounts).

## Sources

1. [GitHub Terms of Service (effective 27 April 2026), section B.3 Account Requirements](https://docs.github.com/en/site-policy/github-terms/github-terms-of-service), read November 2, 2026
2. [GitHub Acceptable Use Policies, section 4 Spam and Inauthentic Activity](https://docs.github.com/en/site-policy/acceptable-use-policies/github-acceptable-use-policies), read November 2, 2026
3. [GitHub Docs: Types of GitHub accounts](https://docs.github.com/en/get-started/learning-about-github/types-of-github-accounts), read November 2, 2026
4. [GitHub Docs: Personal account management](https://docs.github.com/en/account-and-profile/concepts/account-management), read November 2, 2026
5. [GitHub Docs: Merging multiple personal accounts](https://docs.github.com/en/account-and-profile/how-tos/account-management/merging-multiple-personal-accounts), read November 2, 2026
6. [GitHub Docs: Personal account reference](https://docs.github.com/en/account-and-profile/reference/personal-account-reference), read November 2, 2026
7. [GitHub Docs: Switching between accounts](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/switching-between-accounts), read November 2, 2026
8. [GitHub Docs: Managing multiple accounts](https://docs.github.com/en/account-and-profile/how-tos/account-management/managing-multiple-accounts), read November 2, 2026
9. [GitHub Docs: Deciding when to build a GitHub App](https://docs.github.com/en/apps/creating-github-apps/about-creating-github-apps/deciding-when-to-build-a-github-app), read November 2, 2026

## Questions

### Is a second free GitHub account for work allowed?

Not as a second free personal account. The Terms of Service limit one person to one free account, and GitHub's docs recommend one personal account for personal, open source and paid work, joined to your employer's organisation.

### What is a GitHub machine account?

An account a human sets up and is responsible for, used only for automated tasks such as CI. GitHub's terms allow one free machine account in addition to your free personal account.

### Can I merge two GitHub accounts?

Not in one click. GitHub's steps are to transfer the repositories to the account you keep, update the remotes in your clones, delete the other account and add its commit email to the one you keep. Organisation access, issues and achievements do not move.

### Can I be signed in to two GitHub accounts in one browser?

Yes. The account switcher under your profile picture holds a personal account and a machine account, or a personal account and a managed user account, without signing in again each time.

## Related

[How do websites detect multiple accounts?](https://mosaicbrowser.com/guides/how-do-websites-detect-multiple-accounts): Websites detect multiple accounts by what two accounts share: cookies, the IP address, the browser fingerprint, payment and phone details, and habits.

[Can you have two LinkedIn accounts?](https://mosaicbrowser.com/guides/can-you-have-two-linkedin-accounts): LinkedIn's User Agreement allows one account per person, in your real name. A business gets a Page, and a duplicate account is merged or closed.

[How to automate multiple browser profiles](https://mosaicbrowser.com/guides/automate-multiple-browser-profiles): Automate multiple browser profiles by giving each account a persistent profile, starting each from a script and attaching Playwright or Puppeteer over CDP.

[Anti-detect browser for AI agents](https://mosaicbrowser.com/use-cases/ai-agents): An anti-detect browser for AI agents gives each account the agent works in its own profile. Mosaic's MCP server and REST API let it drive them on your computer.

[2FA codes per browser profile, with a login vault each](https://mosaicbrowser.com/features/logins-and-2fa): Mosaic keeps 2FA codes per browser profile: each profile has its own login vault with TOTP codes, shown with a countdown and typed with real keystrokes.

[Action block: when a platform stops one thing you do](https://mosaicbrowser.com/glossary/action-block): An action block is a temporary stop on one kind of action, such as following, liking or commenting, that a platform applies when activity looks automated.

[Set up a proxy for each browser profile automatically](https://mosaicbrowser.com/guides/set-up-a-proxy-for-each-browser-profile-automatically): How to set up a proxy for each browser profile automatically: save your seller's proxy line once so every profile gets its own session, or deal a list out.

[How to create browser profiles in bulk, each one its own](https://mosaicbrowser.com/guides/create-browser-profiles-in-bulk): Chrome makes profiles one at a time. Mosaic creates up to 500 in one batch, each with its own fingerprint and, from a provider, its own proxy session.

## Run this guide on your own accounts

Every Mosaic profile is a fingerprint, a proxy IP and a cookie jar that agree with each other, kept on your computer. Free covers 3 profiles with no card, and Pro is $25 a month for any number of them.

Mosaic is a desktop app

Email yourself the link and open it on your computer.
