Git credentials
Save a token once and every agent can work with your private Git repositories on GitHub, GitLab, Bitbucket, or your own Git server.
Add a credential
- Open Git credentials in the panel.
- Enter the server (for example
github.com; add a port if your server needs one). - Enter the username and an access token from your Git provider, with the permissions your agents need.
- Save.
Each server has one credential, shared by all current and future agents. You can disable or edit it later. When editing, leave the token empty to keep the saved one.
Use it
Ask an agent to clone a repository with its HTTPS address, for example:
sh
git clone https://SERVER/OWNER/REPOSITORY.gitFetch, pull, and push use the same credential. Local MCP packages that install from Git also use it.
Good to know
- Changes take effect immediately, even for agents that are working. An operation that already started may finish with the old token.
- Credentials are used only for Git over HTTPS. Direct downloads (for example GitHub API calls or ZIP archives) don't use them.
- Commit author name and email are set with normal Git configuration.
- Don't put tokens in repository addresses or in chat messages.
WARNING
All agents can read these credentials. Give tokens only the permissions you're comfortable sharing with every agent. See Security.