Sign up

Connect GitHub

Connect GitHub through your company’s own App, or as a person with GitHub authorization or a fine-grained personal access token.

On Apps, search for GitHub and choose Add or Connect. The question is Connect GitHub. Pick one of the two.

Create your company’s GitHub App

An administrator opens Set up your company’s GitHub App. Create on GitHub is offered first: enter your GitHub organization, or leave it blank for your personal GitHub account. GitHub asks you to confirm the company’s suggested App name, such as Acme Agents. Return to Studio: the App credentials are stored encrypted automatically, without copying secrets. Then install it on repositories. Creating, replacing or removing an App requires a fresh second step.

Set it up by hand

Manual instructions and the exact URLs for your company are always available in the GitHub sheet under Set it up by hand. Follow those URLs if your company uses its own Studio address. Use separate Apps for dev and production.

  • Organization: open GitHub → your organization → Settings → Developer settings → GitHub Apps → New GitHub App (organization owner required). Personal account: GitHub → Settings → Developer settings → GitHub Apps → New GitHub App, at https://github.com/settings/apps/new.
  • Name: your company name followed by Agents (edit it if taken). Description: Agents working with our GitHub repositories. Homepage: your Studio’s HTTPS origin. Do not use the service operator’s brand.
  • User authorization callback URLs: your Studio origin + /auth/apps/github/install and /auth/apps/github/user. The sheet fills in the full HTTPS URLs for your Studio.
  • Enable Expire user authorization tokens and Request user authorization (OAuth) during installation. Leave device flow off. Setup URL becomes unavailable with OAuth during installation; leave it blank. The /auth/apps/github/install callback finishes installation. The manifest redirect is /auth/apps/github/manifest; the one-click flow fills it automatically.
  • Enable Webhook. Use the exact company webhook URL shown in the sheet: your Studio origin + /api/v0/hooks/github/<company ID>. Generate a random webhook secret in your password manager and paste the same value in GitHub and Studio.
  • Repository permissions: Metadata read-only; Contents, Issues, Pull requests, Checks read and write. All other repository, organization and user permissions: No access. Do not grant administration, secrets or workflows write permissions.
  • Events: Push, Issues, Pull request, Check run, Check suite. GitHub also sends installation and installation repositories events automatically. Signed lifecycle events remove revoked connections; selecting events does not create workflows or grants.
  • Where can this GitHub App be installed? Only on this account. Click Create GitHub App. Copy App ID, Client ID, and the slug from the public App URL. Generate a new client secret and copy it once. Under Private keys choose Generate a private key; upload the downloaded .pem or paste it in Studio’s hidden field.
  • Save all six fields in Studio: App ID, Client ID, App slug, client secret, webhook secret, private key. Secrets are write-only; Studio never shows them again. Choose As the company → Install the GitHub App, select the organization/account, Only select repositories, and the required repositories, then approve. People can choose Sign in with GitHub or Paste a token independently.

Replace company App and Remove company App disconnect the installations and personal GitHub sign-ins backed by that App. Pasted tokens remain independent. Revocation at GitHub is best effort; local access stops immediately. If the operator configured a shared App, removing your company App returns to Use the shared app. Without either App, OAuth is hidden and Paste a token still works. No live provider-account qualification is implied by setup.

The operator’s optional shared App uses one webhook URL for all companies: the Studio origin + /api/v0/hooks/github/shared. Signed lifecycle deliveries reach matching shared-App connections. Company-owned Apps keep their company-specific webhook URL.

As the company

As the company keeps working when people leave. An organization owner installs the GitHub App and picks the repositories. Choose Install the GitHub App. The account is marked GitHub App.

As a person

As a person stops working when you leave Studio or are removed. Choose Sign in with GitHub when an App is set up, or Paste a token. Personal sign-ins and their refresh tokens are kept encrypted; disconnect removes them and asks GitHub to revoke the user token. GitHub authorization connects an account; it never signs you into Studio.

  • The field is Fine-grained personal access token.
  • Make a token on GitHub opens GitHub so you can create one. Limit it to the repositories you want and to the permissions the panel lists under Permissions it needs.
  • Paste the token only in that field. It must start with github_pat_. Otherwise the page says Paste a token that starts with github_pat_.
  • Choose Connect. The token is kept encrypted and is never shown again. Do not paste it into Ask Studio.

If a choice is not available, the page says why. If an install could not be finished, start again from Apps.