← All integrations

Sourcegraph

8 operations0 webhooks

Code intelligence platform for searching, navigating, and understanding large codebases.

Supported operations

  • Compare CommitsRead-only

    Compare two commits and list file diffs

  • Get Commit DetailsRead-only

    Get details for a commit, branch, or tag

  • Get File ContentsRead-only

    Fetch file contents on the default branch (HEAD)

  • ListRead-only

    List repositories on the Sourcegraph instance

  • List FilesRead-only

    List files and directories in a repository path

  • List LanguagesRead-only

    List languages used in a repository

FAQ

Install corsair and @corsair-dev/sourcegraph, add the Sourcegraph plugin, and connect with an API key. Then call methods like corsair.sourcegraph.api.repository.compareCommits() from your app. Corsair syncs data per tenant.

Yes. Sourcegraph requires an API key from your Sourcegraph account or developer dashboard. Create credentials with access that matches what you automate, then paste them into Corsair or connect through managed auth in Hub.

Yes. One Corsair client can hit Sourcegraph, GitHub, Notion, Stripe, and the rest. Trigger Sourcegraph from a webhook, push updates to Slack, or chain actions across plugins. Same tenant context across integrations, plain TypeScript.

Teams use Corsair for code intelligence platform for searching, navigating, and understanding large codebases. Common builds include sync jobs, admin tooling, and agents that call Sourcegraph APIs from your backend. Local DB entities let you query synced Sourcegraph records without hitting the API on every read.

The SDK is open source. Self-host and you pay Corsair nothing for the integration layer. Hub bills for hosted auth and execution, not per Sourcegraph API call. Hub has a generous free tier. For hobby projects you can probably run the whole thing on free. Paid plans start to matter with more tenants or heavier traffic.

We maintain @corsair-dev/sourcegraph in the open repo. When Sourcegraph ships API changes, upgrade the package. Your call sites stay typed. You should not need to rewrite the integration layer each time.

No. Corsair does not read your Sourcegraph data or hold individual access credentials. Credentials stay in your database. API calls run on your instance. We do not store Sourcegraph data on your behalf.