Short answer: pick what the token is for, tap Open on GitHub, and GitHub’s own “New fine-grained token” form opens already filled in with the minimum permissions. The one thing GitHub can’t pre-fill is the repository: on the form, choose Only select repositories and pick your vault repo. This page only builds a link. It never sees, creates or stores a token.
Build your token link
Your link
What this token allows
One step left on GitHub: under Repository access choose Only select repositories and pick your vault repository. The link can’t do that for you.
Last checked: November 22, 2026, against GitHub Docs: Managing your personal access tokens and the GitHub changelog on template URLs for fine-grained tokens. Parameters used here: name (40 characters or fewer), description (1024 or fewer), target_name, expires_in (1–366 or none; GitHub’s default is 30 days) and permission names with read or write. write includes read, metadata is read-only and workflows is write-only.
Which preset?
- Obsidian Git plugin:
contents=write,statuses=write,metadata=read. The Obsidian Git docs list read access to metadata and read/write access to contents and commit status as the minimum for mobile. - Sync a repo in a Git app:
contents=write(plusmetadata=read, which GitHub grants anyway). Enough to fetch, pull and push over HTTPS. - Read-only clone or backup:
contents=read. Pushes will be refused. - Publish a site with GitHub Actions: adds
workflows=write. You only need it if you edit files in.github/workflows/; for ordinary note edits, the Obsidian Git preset is enough. See publishing Obsidian notes with Quartz from your iPhone.
After you open the link
- Check the pre-filled name, description, owner and expiration on GitHub’s form.
- Under Repository access, choose Only select repositories and pick your vault repository.
- Check the permissions list matches what you chose here, then tap Generate token.
- Copy the token right away. GitHub shows it once.
Where to paste it
- Obsidian Git plugin: the Password/Personal access token field in the plugin’s settings. Step-by-step on iPhone.
- GitSync.md: choose the personal access token option when you add GitHub. The app also supports GitHub sign-in, so a token is optional there. See cloning a GitHub repository on iPhone and syncing Obsidian with GitHub.
Keep the token safe
- Never paste it into a note: the note gets committed and pushed.
- Exclude plugin data from Git before you enter it. The .gitignore generator and the .gitignore guide show how.
- If it is exposed, revoke it on GitHub and create a replacement.
- GitHub removes tokens that go unused for a year, according to its docs.
- If a token expires, generate a new one with this page and enter it again. See Obsidian Git not working on iPhone.
Fine-grained vs classic
| Fine-grained | Classic | |
|---|---|---|
| Repository scope | Chosen repositories only | Every repository your account can reach, by scope |
| Link pre-fill | Yes, via URL parameters | Not documented, so this tool doesn’t offer it |
| Organizations | Owner must allow them; approval may apply | Organization SSO authorization may apply |
Source: GitHub Docs.
Frequently asked questions
Does this tool see my token?
No. It only assembles a URL in your browser. The token is created on github.com after you open the link. The page makes no network requests and stores nothing.
Why can’t it pick my repository?
GitHub’s documented URL parameters cover the name, description, owner, expiration and permissions, not the repository selection. Choose Only select repositories on the form yourself.
Which permissions does Obsidian Git need?
Read access to metadata and read/write access to contents and commit statuses, per the plugin’s docs. That is the first preset.
Can I use SSH instead?
Yes, if your Git client supports SSH keys, which avoids tokens. See SSH Git on iPhone. Note the Obsidian Git plugin’s mobile limits in its setup guide.
