- Keep the vault in a private Bitbucket Cloud repository.
- Create an API token with scopes:
read:repository:bitbucketandwrite:repository:bitbucket. - Username = your Bitbucket username, not your email. Password = the API token.
- Clone the vault on each device, then pull, commit and push.
If your push or pull stopped working and you only ever used an app password, jump to the error table. If you’re starting fresh, read on. Get GitSync.md for iPhone and iPad → · Get it on Google Play →
What changed: app passwords to API tokens
Atlassian’s phase 2 announcement says Bitbucket Cloud stopped allowing new app passwords from September 9, 2025, and that all remaining app passwords would be permanently disabled on June 9, 2026. The earlier transition post and the community deprecation notice describe the move to API tokens.
For Git, that means an API token with scopes is what you use now. A token without scopes isn’t enough: Atlassian says tokens used for Git commands must have scopes.
Typical symptoms of a setup that still uses an app password: an HTTP 410 or an “app passwords are deprecated” message on push or pull, an “Invalid credentials” or authentication failure, or a desktop credential helper that keeps sending the old app password. Atlassian’s pages don’t quote exact error text, so match on the cause, not the wording: if the secret you’re sending is an app password, replace it.
Create the Bitbucket repository
- In Bitbucket Cloud, create a new repository and keep it private. A vault is personal notes.
- Decide on a
.gitignorebefore the first push. Obsidian rewrites.obsidian/workspace.jsonas you move around, which would create a commit every session. The Obsidian .gitignore generator builds one, and the .gitignore guide explains each line. - Push the vault from your computer so the repository root is the vault root, the folder that contains
.obsidian.
Note the repository’s workspace and name. They appear in the URL as bitbucket.org/{workspace}/{repository}, and the workspace slug is a common source of “repository not found” errors.
Create an API token with scopes
These steps follow Atlassian’s Create an API token page. Menus can change, so use that page if yours differs.
- Select your profile in the upper-right corner of Bitbucket’s top bar, then Account settings.
- On the Atlassian account page, open the Security tab and choose Create and manage API tokens.
- Choose Create API token with scopes.
- Give the token a name and an expiry date, for example
obsidian-vault, then Next. - Select Bitbucket as the app, then Next.
- Select the scopes, review, and choose Create token.
- Copy the token now. Atlassian says it’s only displayed once and can’t be retrieved later.
Which scopes, per Using API tokens:
| You want to | Scopes |
|---|---|
| Clone and pull only | read:repository:bitbucket |
| Clone, pull and push (a synced vault) | read:repository:bitbucket and write:repository:bitbucket |
A synced vault needs both. Because the token expires on the date you chose, set a calendar reminder a few days before it, so a sudden authentication failure later isn’t a mystery. Never paste the token into a note: it would be committed with the vault.
Which username?
This is where forum advice conflicts. Atlassian’s Using API tokens page says the username in Git commands is your Bitbucket username, that it’s case sensitive, and that it must match what your account’s Settings page shows. It isn’t your email address. Alternatively you can use the static username x-bitbucket-api-token-auth or x-token-auth. In every case the password is the API token.
Desktop: clone, or fix an existing vault
To clone on a computer, put your Bitbucket username in the URL and nothing else:
git clone https://{bitbucket_username}@bitbucket.org/{workspace}/{repository}.git
Git asks for a password. Paste the API token there. Don’t put the token in the URL: it would be saved in plain text in the repository’s .git/config and printed by git remote -v, and it can leak into shell history.
Fix a vault that worked with an app password
- Run
git remote -vand check the URL. It should point atbitbucket.org/{workspace}/{repository}.git. If an old app password or your email is embedded in it, replace the remote with the username-only form usinggit remote set-url origin. - Clear the stale stored credential. Git can ask its credential helper to forget it:
Or open your system’s credential store, such as the macOS Keychain or Git Credential Manager, and delete theprintf 'protocol=https\nhost=bitbucket.org\n\n' | git credential rejectbitbucket.orgentry. - Run
git pull. When prompted, enter your Bitbucket username and the new API token. The helper stores it for next time.
For the Obsidian Git plugin’s own settings and commands, see the plugin guide.
iPhone and iPad with GitSync.md
GitSync.md runs real Git and treats Bitbucket as an ordinary remote over HTTPS or SSH, so the GitHub sign-in doesn’t apply: you add the repository by URL.
Add the repository by URL
Tap Add Repository, then Enter URL Manually, and paste the HTTPS URL, for example https://bitbucket.org/{workspace}/{repository}.git. Under Authentication, choose HTTPS Token/Password. Username: your Bitbucket username. Password: the API token. Set your author name and email, which go on every commit. Credentials are stored in the iOS Keychain.
Choose the vault folder
Set the save location to On My iPhone → Obsidian (on iPad, On My iPad → Obsidian), so Obsidian can open the cloned folder as a vault.
Clone, then pull, commit and push
Start the clone. After that, pull before editing, then commit and push your changes from GitSync.md. If the push fails with a scope error, see the table.
For the general flow, see Obsidian Git on iPhone and iPad and cloning a repository on iPhone. The clone steps are the same for any remote.
Android
Use the same credentials. On the first screen, choose SSH, token or another host to open Any Git host, paste the HTTPS URL, choose Token, and enter your Bitbucket username and the API token. Then use Test & clone. The vault needs to land in a folder Obsidian can open; the Android guide covers the folder and storage steps. GitSync.md is on Google Play.
SSH instead of tokens
SSH avoids token expiry. GitSync.md supports SSH remotes on iPhone, iPad and Android.
- Create an Ed25519 key. On Android, GitSync.md can make a key and copy its public half. See self-hosted Git with SSH on iPhone and iPad for the in-app key and host-key steps.
- Add the public key in your personal Bitbucket settings. Never upload the private key. Atlassian’s SSH configuration page and its per-system key guides cover this.
- Use the SSH remote URL that Bitbucket shows for the repository, and in GitSync.md choose SSH Private Key (iPhone, iPad) or SSH key (Android).
- On first connect, GitSync.md shows the server’s SHA-256 fingerprint. Compare it with the bitbucket.org fingerprints Atlassian publishes on the same SSH page before you tap Trust Host. Trust it only if it matches.
Error lookup table
| Symptom | Likely cause | Fix |
|---|---|---|
| HTTP 410, “app passwords are deprecated” | The remote or credential helper still sends an app password, which Atlassian has disabled | Create an API token with scopes, clear the stored credential, and enter the token as the password |
| 401 / authentication failed / “Invalid credentials” | Wrong username, your email used instead of your Bitbucket username, a token without scopes, a missing scope, or an expired token | Use your case-sensitive Bitbucket username (or x-bitbucket-api-token-auth), and a token with the scopes above. Make a new token if it has expired |
| 403 on push, clone works | The token has only read:repository:bitbucket | Create a token with read:repository:bitbucket and write:repository:bitbucket and update it in the app |
| “Repository not found” | Wrong workspace slug or repository name in the URL, or the account has no access to it | Compare the URL with the one shown on the repository page, and confirm you can open it in a browser while signed in |
| Host key mismatch (SSH) | The server’s key differs from the one trusted earlier | Treat it as a security event. GitSync.md blocks the connection. Compare the new fingerprint with Atlassian’s published list before trusting it |
If the phone fails but the desktop works, start with Obsidian Git not working on iPhone.
Bitbucket, GitHub or GitLab for a vault?
All three host private repositories and work as ordinary Git remotes in GitSync.md. Pick the one you or your team already use. GitHub has the quickest setup in the app, because GitSync.md can sign in and browse your repositories: see Sync Obsidian with GitHub on every device. GitLab uses a personal access token or SSH key: see Sync Obsidian with GitLab. Check each host’s current terms for storage and limits.
FAQ
Do old app passwords still work?
Atlassian’s announcement says all remaining app passwords were to be permanently disabled on June 9, 2026. Use an API token with scopes.
Does Bitbucket Data Center or Server work the same way?
This guide covers Bitbucket Cloud. Data Center and Server use different token types, so don’t assume these steps apply. For SSH and HTTPS remotes on a self-hosted server, see the self-hosted guide.
Can I use the token in the remote URL to avoid prompts?
It works mechanically, but it stores the token in plain text in the repository’s config. Let the credential helper or the app’s keychain store it instead.
Can I share the vault with a teammate?
Yes, by giving them access to the Bitbucket repository. The Git collaboration caveats, such as conflicts and shared settings in .obsidian, are the same on any host: see sharing an Obsidian vault with Git.
Recap
App passwords are gone. Create a private repository, make an API token with read:repository:bitbucket and write:repository:bitbucket, use your Bitbucket username (not your email), and clear any stale stored credential.
Clone your Bitbucket vault on iPhone, iPad or Android with GitSync.md → · Android on Google Play → Free to download, $9.99 once to unlock.
