CloudairyCloudairy
Cloudairy
Templates
Get startedBuildArtifactsAgentsConnectAdministerHelp
Connect
Connect AI apps to CloudairyConnect Claude or another AI appManage connected AI apps
IntegrationsWhich connection do I need?
Connect Google Drive or OneDriveSave an export to your driveImport a file from your drive
Git SyncCreate a GitHub token for Git SyncConnect a repositorySync a wiki to GitHub
Ways to importImport a file into a new artifactImport data into a project boardImport docs into a wikiImport inside an open artifact
Export formatsExport a canvas or ERDExport a docExport everything else
Public linksEmbed Cloudairy in other sitesEmbed other tools in Cloudairy
Ask Support
Connect›Git sync
View as Markdown View this page as plain text

Create a GitHub token for Git Sync

Git Sync signs in to GitHub with a fine-grained personal access token. The token lets Cloudairy write to one repository and nothing else. It takes about two minutes to make.

Before you start

  • The repository must already exist on GitHub. It can be empty, or hold only a README.
  • You need write access to it.
  • If the repository belongs to an organization, the organization must allow fine-grained tokens. Some organizations also require an owner to approve each token. See If your organization approves tokens.

Create the token

In Cloudairy, open your wiki, click Git Sync, and pick GitHub as the provider. Under Access token, click Create a fine-grained token. GitHub opens New fine-grained personal access token.

You can also go there yourself: on GitHub, click your picture › Settings › Developer settings › Personal access tokens › Fine-grained tokens › Generate new token.

Under Token name, type a name you'll recognise later, for example cloudairy-wiki-docs.

Under Resource owner, pick the account that owns the repository. For a company repository that's the organization, not your own name. Type the organization's name in the search box to find it.

Picking the organization as the resource owner
Pick the organization that owns the repository, not your own name.

Under Expiration, pick how long the token works. When it expires, the sync stops until you paste a new one.

Token name, resource owner and expiration filled in
Name the token, check the owner, and choose when it expires.

Under Repository access, choose Only select repositories, open Select repositories, and tick the repository the wiki will sync with.

Under Permissions, click Add permissions, tick Contents, then set it to Access: Read and write. Metadata is added as Read-only on its own. Leave it that way.

One repository selected, Contents set to Read and write
Select only the docs repository, then set Contents to Read and write.

Click Generate token.

GitHub shows the token once. Click the copy button next to it. If you lose it, you'll have to make a new one.

A token is a password. Paste it only into the Access token box in Cloudairy. Don't send it in chat or email, and don't save it in a document.

Paste it into Cloudairy

Back in the wiki's Git Sync page, paste the token into Access token.

Fill in Repository (owner/repository), Branch and Direction, then click Connect repository.

The card shows Connected. Cloudairy keeps the token and never shows it again: the box reads Saved — leave blank to keep it.

Next: Sync a wiki to GitHub.

If your organization approves tokens

When an organization requires approval, the token is made but stays pending until an organization owner approves it. Git Sync can't use it until then.

An organization owner approves it on GitHub: the organization's Settings › Personal access tokens › Pending requests.

If something goes wrong

What you see What to do
The repository isn't in Select repositories The Resource owner is wrong. Pick the account or organization that owns the repository. Two organizations can have very similar names.
The organization isn't in Resource owner The organization doesn't allow fine-grained tokens yet. Ask an organization owner to allow them in the organization's settings.
Connect repository fails Check that Contents is Read and write, that the token is still valid, and that the repository name is exactly owner/repository.
Syncs stop working after a while The token expired. Make a new one and paste it into Access token, then click Save.

GitLab instead

On GitLab, make a personal access token with the api, read_repository and write_repository scopes. If the branch is protected, you also need the Maintainer role on the project. In Cloudairy, pick GitLab as the provider and click Create a token to open GitLab's token page.

Next steps

  • Sync a wiki to GitHub
  • Connect a repository
  • Git Sync

Last updated November 26, 2026

Was this helpful?
PreviousGit SyncNextConnect a repository
On this page
Before you startCreate the tokenPaste it into CloudairyIf your organization approves tokensIf something goes wrongGitLab insteadNext steps
Was this helpful?
© 2026 Cloudairy

Product

CloudairyTemplatesPricing