Git accounts
Connect GitHub, GitLab or Bitbucket with an access token so applications can clone your repositories and deploy on push.
An application that deploys from a repository needs to read that repository. Rather than asking for a token every time you create one, OSS Panel stores the token once as a Git account and lets you pick it by name afterwards. Find it under Integrations → Git in the sidebar.
Until an account is connected, the Connected accounts card shows No Git account connected, a short reminder of what the panel does with the token, and the three steps to get started. Step 1 has a button per provider, GitHub, GitLab and Bitbucket; each opens the connect form for that provider. The Connect account button opens the same dialog with the provider list first.

A public repository needs no account at all: the create form accepts a public clone URL directly. Connect an account for private repositories, and for Deploy on push, which needs permission to add a webhook.
What the panel does with the token
The panel says it itself in the dialog: it "reads your repositories and branches and adds the deploy webhook. It never pushes code." Specifically:
- it lists your repositories and their branches, so the create form can offer them;
- it clones the repository and fetches it again on every deploy;
- it adds the deploy webhook when you turn on Deploy on push, and removes it again when you turn it off.
Supported providers
| Provider | Hosted at | Extra field |
|---|---|---|
| GitHub | github.com | none |
| GitLab | gitlab.com, or your own server | Self-hosted URL (optional) |
| Bitbucket | bitbucket.org | Workspace (required) |
Those three are the whole list. Other Git hosts (Gitea, Forgejo, Codeberg, a bare SSH remote) are not selectable here.
Gitea is a different feature
Gitea and Forgejo appear in OSS Panel as application types you can host on your own server. That is unrelated to this screen: you can run Gitea, but you cannot yet deploy from it through a connected account.
Connect an account
-
Click Connect account, or one of the provider buttons in the empty state.
-
In the Connect a Git account dialog, choose where your code lives. The form that follows differs per provider, so this choice comes first.

-
Create a token at the provider with the scopes the dialog names. Each form shows exactly which boxes to tick, and Create a token on GitHub (or GitLab, or Bitbucket) opens the right page at the provider.
For GitHub, tick
repoandadmin:repo_hook. The second lets the panel add the deploy webhook for you.
For GitLab, tick
apiandread_repository, and choose Legacy token. The form explains whyapiis needed (it is the only GitLab permission that can create a webhook, and it also gives full access to your GitLab account, so create the token only for the panel and give it an expiry date). It offers the lower-access alternative:read_repositoryplusread_api, with you adding the webhook yourself.Leave Self-hosted URL empty for gitlab.com. For your own GitLab, give the base address you sign in at, for example
https://gitlab.example.com, not the address of a project.
For Bitbucket, tick
read:repository:bitbucket,read:webhook:bitbucket,write:webhook:bitbucketanddelete:webhook:bitbucket. Workspace is required and is the workspace ID from your Bitbucket address,bitbucket.org/<workspace>/<repository>, not your display name.
-
Type a Name and paste the token into Access token, then click Connect. The name is only for you: it is how the account appears in the application create form, so Work GitHub beats token 2. Change at the top of the form goes back to the provider list.
The panel checks the token with the provider before saving it, while the button reads Checking with GitHub…. Nothing is stored if the provider says no: "GitHub rejected this token. Check it was copied in full and has access to your repositories." That almost always means the token was truncated on the way over, it is missing a scope from the step above, or it has expired. Pasting a web address into the token field shows "That looks like a web address rather than a token."
When it works, the card says the account is connected, with a Create application button: choose the account as the source when you create an application, see Deploy from Git.
If you connect the same credential again, the panel does not add a second account: it says "This git account is already connected as “Work GitHub”." and leaves the existing one unchanged.
Read the account card
Each connected account is a row under Connected accounts with its name, its provider, the self-hosted address if it has one, and one of four health states:
| State | Means |
|---|---|
| Working | The provider accepted the token on the last check. |
| Not working | The provider rejected it: revoked, deleted or expired. The row then offers Replace token. |
| Could not check | The provider did not answer. Nothing is wrong with your token. |
| Not checked yet | Connected, not yet verified. |
A token that reports an expiry date warns you before it breaks, starting 14 days ahead (Expires in 7 days), and says This token has expired afterwards. GitLab reports an expiry date for its tokens; GitHub reports one for tokens that have one; Bitbucket reports none, so a Bitbucket token simply stops working on the day it lapses.
The Account details (ⓘ) hint on a row shows Access (the scopes the provider reported, or Fine-grained token: access is set per repository on GitHub, not by scope.), Workspace for Bitbucket, Last checked and Connected.
The refresh button in the card header (Check all accounts again) re-runs every check at once.
Account actions
Two buttons sit on each row:
- Check connection — ask the provider about this token now. The panel replies Work GitHub is working., or We could not check this account.
- Check repository access — go further and list repositories. It answers Repository access confirmed., or No repositories found for this account. (Create a repository, or ensure this token can access an existing one.). This catches a token that is valid but can't see anything, which is the usual result of a GitHub fine-grained token with no repositories selected.
The ⋯ menu (Account actions) holds:
- Edit — rename the account, or correct the Workspace (Bitbucket) or the Server address (self-hosted GitLab). The token is not touched.
- Replace token — paste the New token. The new one is verified first, and if it is rejected your current token keeps working.
- Disconnect — remove the account from this server.
Disconnecting does not revoke
Removing an account deletes the panel's copy of the token. The token itself stays valid at GitHub, GitLab or Bitbucket until you delete it there, and the dialog links you to Manage your GitHub tokens (or the provider's page).
A Git account that an application still uses can not be disconnected. The panel says "Cannot disconnect Work GitHub — it is still used by acme-site. Link those applications to another account first." Change the account on those applications (or delete them), then disconnect.
Limits
- One token per account. There is no OAuth sign-in flow: everything is a personal access token (or a Bitbucket API token) you create yourself. The token can be up to 500 characters.
- Account names are unique on a server and up to 100 characters. A Workspace uses letters, numbers, dots, underscores and hyphens, up to 100 characters.
- A self-hosted GitLab address must be an
https://address without a user name or password in it, up to 255 characters, and must not point to this machine (localhost,127.…) or to a link-local address such as169.254.…, which cloud providers use for metadata. A private LAN address is accepted: a GitLab on the same network is a normal setup. Errors: "Enter a valid https:// URL for the self-hosted instance.", "This address is not allowed." and "Could not reach gitlab.example.com. Check the address of your self-hosted instance." - Bitbucket is addressed per workspace. An account connected to one workspace cannot see repositories in another: connect a second account for that.
Who can do this
- Git · View shows the accounts and their health, and lets applications list repositories and branches through an account.
- Git · Manage is needed to connect, edit, replace the token, check the connection and repository access, and disconnect. Without it the buttons are disabled with "Your role does not include Git with Manage access. Ask an administrator to grant it."
Common errors
- We could not load your connected accounts. — the panel could not read the accounts. Reload.
- The list of providers could not be loaded. — Connect account stays disabled until the panel can read the provider list. Reload.
- The account could not be connected. — the panel could not save the account; look for a field message in the dialog.
- Could not reach GitHub. Please try again in a moment. — the provider did not answer; nothing is wrong with your token.
Related
- Deploy from Git — using the account to create an application.
- Integrations — the other credentials the panel stores.
Integrations
Credentials that live somewhere else — a Git account, a storage destination, a container registry login — stored once and reused by the features that need them.
Storage
Where backups are sent — the S3 buckets, FTP/SFTP servers, Google Drive accounts and local folders this server can write to.