Add a GitHub Enterprise host
You need to be an admin in KolaOS and an owner of the organization on your GitHub host that will own the app. The host must answer from the internet, because KolaOS reaches it from the Cloudflare network.1
Enter the host
Choose Add integration, then GitHub Enterprise. Enter the host URL, e.g.
https://github.acme.com or https://acme.ghe.com, and the organization on that host that will own the app. KolaOS checks that the host answers and shows its version.2
Create the app
Choose Create app on your host. Your GitHub host opens with the app’s name and permissions filled in. Create the app there, and GitHub returns its ID and key to KolaOS, which stores the key encrypted.
3
Install the app
Install the app on the organization and choose the repositories it may access. KolaOS confirms that your account can reach the installation, and the host appears under Git hosts as connected.
Use a repository from the host
Add the repository to a workspace from Repositories, where the picker groups repositories by host. Workstations clone it with a token from that host’s installation, limited to the workspace’s repositories on that host, andgh works in the repository without gh auth login.
Add a Forgejo host or Codeberg
Forgejo has no app that KolaOS can install, and its access tokens can do anything their user can do. KolaOS therefore never shares one token with the whole organization. Each member links their own account, and a workstation gets only its owner’s token.1
Enter the host
Choose Add integration, then Forgejo, and enter the host URL. KolaOS checks that the host answers and shows its version. For Codeberg, choose Codeberg and Add Codeberg.
2
Create the OAuth application
On your Forgejo host, open Settings, then Applications, and create an OAuth2 application with the redirect URI that KolaOS shows. Paste its client ID and client secret into KolaOS. Codeberg needs no application of your own.
3
Link your account
Choose Link your account and allow KolaOS on your Forgejo host. Every member does this once under Account, then Git hosts.
git in their workstation prints the same message: “Link your account on HOST in KolaOS to clone and push REPOSITORY.”
Workstations have tea, the Forgejo command line tool, signed in with the member’s linked account, so agents open pull requests with tea pr create and read them with tea pr. A member who hasn’t linked an account gets the link message from tea too.