answered from live GitHub & Hugging Face data
How do I set up a dedicated GitHub account for Cursor to ensure its contributions are attributed correctly?
Create a machine account, and give it a commit email that is linked to it. That makes its commits show as its own work. The commits will not show as "Cursor," though, because GitHub has no separate identity for a tool.
GitHub allows one machine account per person, in addition to a personal account. A human must accept the terms for it, and that human stays responsible for it. A machine account is for automated tasks only (GitHub Terms of Service, B.3).
Steps
- Create a new GitHub account for Cursor. Use an email address you control.
- Verify the email address. Keep the account's login details in your password manager.
- Add the account to the repositories Cursor must change. Give it the lowest role that works.
- Verify the email address in the account's Settings, under Emails.
- Set that email as the commit author in the environment where Cursor runs:
git config user.email "cursor-bot@example.com" - Add a
Co-authored-bytrailer for yourself on each commit that Cursor makes with you. Use your own GitHub email address (Creating a commit with multiple authors).
What counts on the contribution graph
A commit counts only when its email is linked to the account. It must also be on the default branch of a standalone repository, not a fork. The account must be a collaborator or an organization member (Profile contributions reference).
Compare the identity options
| Option | Who the commit shows as | Token lifetime | Best for |
|---|---|---|---|
| Machine account | The account name and avatar | Set by your token type | One agent, one team |
| GitHub App | The app's bot name | User tokens expire after 8 hours by default (docs) | Many agents with separate actors |
| Your personal account | You | Your own tokens | Single user, no separation |
Recommendation
Use a machine account if Cursor works in one place for one team. Use a GitHub App if you run more than one agent. A single app shared by several agents shows as one bot, so it does not separate them. I did not check Cursor's own GitHub integration. Confirm how Cursor sets its commit author before you rely on these steps.
Choose a machine account if you want a simple, visible actor for one agent. Choose a GitHub App if you run several agents and need a separate actor for each one.
If you need a separate identity for each agent, githug does this. Each agent gets its own key. The key mints GitHub tokens that last one hour and work on one repository. Commits name the accountable human, the agent and the run. The hug CLI sets this up with hug init --repo owner/repo. It is free during the beta.