> ## Documentation Index
> Fetch the complete documentation index at: https://sanvex.narayan-dhakal.com.np/llms.txt
> Use this file to discover all available pages before exploring further.

# Setup

# GitHub setup

Install: `composer require sanvex/github`

[GitHub configuration](./configuration) · [Integration guide](../../getting-started/integration)

## API key (fastest)

```bash theme={null}
php artisan sanvex:setup github --api-key="ghp_..."
```

Tenant-scoped:

```bash theme={null}
php artisan sanvex:setup github --api-key="ghp_..." \
  --owner-type=App\\Models\\User --owner-id=1
```

## OAuth

Implement GitHub OAuth in your app, then store tokens via `GitHubKeyBuilder::setOAuthToken()`. See [configuration](./configuration).

## Usage

[Resources](./resources)
