For the complete documentation index, see llms.txt. This page is also available as Markdown.

Connect GitHub

This guide walks you through authenticating your Genie server with GitHub so you can clone repos, push code, create pull requests, and use the GitHub CLI directly from your terminal.


Prerequisites

  • A Genie account with a running server

  • A GitHub account


Step 1: Run gh auth login

Open the terminal in your Genie dashboard and run:

gh auth login
Terminal with gh auth login command

Step 2: Select Account Type

Choose GitHub.com (or GitHub Enterprise Server if your organization uses it).

Select GitHub.com or GitHub Enterprise Server

Step 3: Choose Git Protocol

Select HTTPS as your preferred protocol for Git operations.

Choose HTTPS or SSH protocol

Step 4: Confirm Git Credentials

When asked "Authenticate Git with your GitHub credentials?", type Y and press Enter.

Confirm Git credential authentication

Step 5: Choose Authentication Method

Select Paste an authentication token. The CLI will show you the minimum required scopes: repo, read:org, workflow.

Choose authentication method — paste a token

Step 6: Generate a Personal Access Token

  1. Open github.com/settings/tokens in your browser.

GitHub Personal Access Tokens page
  1. Click Generate new token and select Generate new token (classic).

Token generation dropdown — select classic
  1. Fill in the details:

    • Note — a description (e.g. "Genie server")

    • Expiration — choose a duration

    • Scopes — select at minimum: repo, read:org, workflow

Click Generate token.

New personal access token form with scopes

Step 7: Copy the Token

Your token is displayed once. Copy it immediately — you will not be able to see it again.

Token created — copy it now

Step 8: Paste Token in Terminal

Go back to the Genie terminal and paste the token at the prompt.

Pasting the token in the terminal

Step 9: Verify Authentication

You should see a confirmation message: "Logged in as <your-username>".

Authentication successful — logged in

You can now use git and gh commands with full access to your GitHub account.


Tips

  • Minimum required token scopes: repo, read:org, workflow

  • You can re-authenticate anytime by running gh auth login again

  • To check your current auth status: gh auth status

  • The token is stored on your Genie server — keep your server credentials secure

  • If your token expires, generate a new one and re-authenticate

Last updated