Skip to content

Latest commit

 

History

History
58 lines (36 loc) · 1.88 KB

File metadata and controls

58 lines (36 loc) · 1.88 KB

BYOT Setup for GitHub in @knighted/develop

This guide explains how to create and use a fine-grained GitHub Personal Access Token (PAT) for repository and pull-request workflows in @knighted/develop.

What BYOT does in the app

BYOT controls are available by default. The token is used to:

  • authenticate GitHub API requests
  • load repositories where you have write access
  • let you choose which repository to work with
  • use PR context features (Open PR / Push Commit flows)

AI chat no longer uses the GitHub PAT. Chat uses a separate OpenRouter API key.

Privacy and storage behavior

  • Your token is stored only in your browser localStorage.
  • The token is never sent to any service except the GitHub endpoints required by the feature.
  • You can remove it at any time using the delete button in the BYOT controls.

Create a fine-grained PAT

Create a fine-grained PAT in GitHub settings and grant the permissions below.

Repository PAT permissions

Repository permissions

  • Contents: Read and write
  • Pull requests: Read and write
  • Metadata: Read-only (required)

Repository access scope

Use either of these scopes depending on your needs:

  • Only select repositories
  • All repositories

@knighted/develop will only show repositories where your token has write access.

Recommended setup flow

  1. Create token with the permissions above.
  2. Open @knighted/develop.
  3. Paste token into the BYOT input and click add.
  4. Verify repository list loads.
  5. Select your target repository.
  6. Use PR and repository workflows after connecting your token.

Screenshots

The screenshots above show the recommended repository and account permission settings.