Connections Management
The Connections page allows you to manage your code host integrations.
Accessing Connections
Section titled “Accessing Connections”Navigate to the Connections page:
http://localhost:3000/connectionsRead-Only Mode
Section titled “Read-Only Mode”When connections_readonly is enabled in the configuration, connections are managed via the config file. The UI will show a warning banner and disable create/update/delete operations.
Connection List
Section titled “Connection List”The main view shows all configured connections:
| Column | Description |
|---|---|
| Name | Connection identifier |
| Type | Code host type (GitHub, GitLab, etc.) |
| URL | API endpoint |
| Status | Exclude archived setting |
Available Actions
Section titled “Available Actions”- Test - Verify connection credentials
- Repos - Expand to view synced repositories
- Menu (⋮) - Sync, Edit, Delete
Adding a Connection
Section titled “Adding a Connection”-
Click Add Connection button (not available in read-only mode)
-
Fill in the connection name
-
Select the code host type
-
Enter the URL (defaults are provided)
-
Enter your access token
-
Choose whether to exclude archived repos
-
Click Create Connection
Connection Form Fields
Section titled “Connection Form Fields”| Field | Description |
|---|---|
| Name | Unique identifier for the connection |
| Type | GitHub, GitHub Enterprise, GitLab, Gitea, or Bitbucket |
| URL | API endpoint (defaults provided for cloud services) |
| Access Token | Personal access token with repo read permissions |
| Exclude Archived | Skip archived repositories during sync |
Supported Code Hosts
Section titled “Supported Code Hosts”- URL:
https://github.com(default) or your Enterprise URL - Token: Personal access token with
repoandread:orgscopes
- URL:
https://gitlab.comor your self-hosted URL - Token: Personal access token with
read_apiandread_repositoryscopes
- URL: Your Gitea instance URL
- Token: Access token with
read:repositoryandread:organizationscopes
- URL:
https://bitbucket.orgor your Server URL - Token: App password with repository read permissions
Testing Connections
Section titled “Testing Connections”Click the Test button to verify connection credentials:
- Success: “Connection validated successfully”
- Failure: Error message with details
Syncing Repositories
Section titled “Syncing Repositories”Click the menu (⋮) and select Sync Repos to:
- Fetch repositories from the code host
- Queue indexing jobs for each repository
- Track progress in the indexing status bar
Sync Progress
Section titled “Sync Progress”During sync, you’ll see:
- Progress bar showing indexing status
- Count of running and completed jobs
- Any failed job notifications
Viewing Repositories
Section titled “Viewing Repositories”Click the Repos button to expand the repository list:
| Field | Description |
|---|---|
| Name | Repository path (org/repo) |
| Status | indexed, indexing, pending, failed, or excluded |
Repository Status Indicators
Section titled “Repository Status Indicators”| Status | Indicator | Description |
|---|---|---|
| indexed | ● | Ready for search |
| indexing | ◐ | Currently being indexed |
| pending | ○ | Waiting in queue |
| failed | ✗ | Indexing failed |
| excluded | — | Excluded from indexing |
Editing Connections
Section titled “Editing Connections”- Click the menu (⋮) on a connection
- Select Edit
- Modify the configuration
- Leave token empty to keep existing
- Click Update Connection
Deleting Connections
Section titled “Deleting Connections”- Click the menu (⋮) on a connection
- Select Delete
- Confirm deletion
Troubleshooting
Section titled “Troubleshooting”Connection Errors
Section titled “Connection Errors”| Error | Cause | Solution |
|---|---|---|
| 401 Unauthorized | Invalid token | Regenerate and update token |
| 403 Forbidden | Insufficient permissions | Check token scopes |
| 404 Not Found | Wrong URL/org name | Verify configuration |
| Timeout | Network issues | Check connectivity |
Token Permissions
Section titled “Token Permissions”Ensure your tokens have the required scopes:
Required scopes:
repo(for private repos)read:org(for organization repos)
Required scopes:
read_apiread_repository
Required scopes:
read:repositoryread:organization
Next Steps
Section titled “Next Steps”- Repositories - Managing repositories
- Jobs - Monitoring background jobs