
Sourcegraph
Let AI connect your sources for you
Skip the manual setup — run this in your project and the wizard auto-detects your databases and APIs and connects them to PostHog.

Connect Sourcegraph to PostHog to sync your data into the PostHog data warehouse for analysis and modeling.
Enter your Sourcegraph instance URL and an access token to pull your Sourcegraph data into the PostHog Data warehouse.
You can create an access token in Sourcegraph under Settings > Access tokens.
The users and organizations tables require a token created by a site admin; repositories works with any user's token.
Configuration
| Option | Type | Required |
|---|---|---|
Sourcegraph URL | text | Yes |
Access token | password | Yes |
Linking Sourcegraph to PostHog
- Go to the Data pipeline page in PostHog
- Click New source and select Sourcegraph
- Fill in the required configuration fields
- Click Next, select the tables you want to sync, and then press Import