Connect Sourcegraph to Cowork
Search and navigate your codebase with Sourcegraph from Cowork.
What Cowork can do with Sourcegraph
- ● Search across your codebase
- ● Find code references and definitions
- ● Analyze code patterns and dependencies
- ● Navigate multiple repositories
- ● Get intelligent code insights
How to connect
1
Open Cowork settings
Click the connector icon in the Cowork sidebar.
2
Select Sourcegraph
Find Sourcegraph in the connector list and click Connect.
3
Authorize access
Sign in to Sourcegraph and grant Claude permission to access your data.
4
Start using it
Ask Cowork to help you search and understand your code.
Default permissions
- ● Search your repositories
- ● Access code files and history
- ● Analyze code relationships
- ● All actions logged in the Cowork activity log
Frequently asked questions
What you need to know about connecting Sourcegraph to Claude Cowork.
- What can Claude Cowork do with Sourcegraph?
- Once connected, Claude can search your codebase, find definitions and references, and help you understand code patterns directly from Cowork.
- Is the Sourcegraph connector free in Claude Cowork?
- The connector is included with Cowork, which comes with Claude's paid plans (Pro, Max, Team, and Enterprise). You connect your own Sourcegraph instance.
- What permissions does Claude need for Sourcegraph?
- You authorize access through Sourcegraph's standard connection flow. You can revoke access at any time through your Sourcegraph account settings.
- How do I connect Sourcegraph to Claude Cowork?
- Open Claude Settings, go to Connectors, find Sourcegraph, authorize the connection, and start using it in any Cowork conversation.
Related connectors
More guides for connecting your tools to Claude Cowork.