Sourcegraph logo
ConnectorSourcegraph

Sourcegraph integration for Claude and Codex

Create a Sourcegraph connection, then control which Spaces can use its approved tools and data without pasting credentials into prompts or threads.

Use Sourcegraph from Claude

Add the Sourcegraph connection to a Space that runs Claude, then use it from every channel in that Space.

Use Sourcegraph from Codex

Add the Sourcegraph connection to a Space that runs Codex, then use it from every channel in that Space.

Use Sourcegraph from Sidekick

Connect your own OpenClaw to Sidekick while Type provides the conversations, permissions, connections, skills, and automations.

Developer Tools & IT

What the Sourcegraph connector can do

Sourcegraph is a code intelligence platform that enables developers to search, understand, and manage code across large codebases.

One connection, many Spaces

Connect Sourcegraph once, then decide which Spaces can use it in threads, skills, automations, and coding work.

Representative actions

  • Check Site Settings Edit Permission

    Tool to check whether site settings can be edited through the API. Use when you need to confirm the API allows site settings edits before attempting configuration changes.

  • Compare Commits

    Tool to compare two commits in a repository and retrieve their file diffs. Use after confirming the repository name and commit SHAs to inspect differences.

  • Get Commit Details

    Get detailed information about a specific commit in a repository.

  • Get Current User

    Tool to retrieve information about the currently authenticated user. Use when needing confirmation of identity via Sourcegraph GraphQL API.

  • Get File Contents

    Tool to fetch the contents of a specified file on the default branch. Use when you need raw file text without cloning the repo or using a slower code-host API.

Connection

API and auth details

Sourcegraph integrations can query code search and code intelligence data, automate repository and organization workflows, and use GraphQL/REST APIs for metadata, search, and administrative operations. Public docs cover API access patterns, tokens, and enterprise deployment surfaces.

FAQ

Questions people ask before connecting Sourcegraph

Can Claude use Sourcegraph?

Yes. Add a Sourcegraph connection to a Space that runs Claude, then use its approved tools and data from any channel in that Space.

Can Codex work with Sourcegraph through Type?

Yes. Add a Sourcegraph connection to a Space that runs Codex, then use its approved tools and data from any channel in that Space.

Is this the same as a Sourcegraph MCP server?

Not exactly. Type uses connectors and connections to give selected Spaces access to approved app tools and data. Some connectors use hosted MCP, while others use OAuth, API keys, service accounts, or custom APIs.

More developer tools & it connectors