Set up the Glean plug-in in Claude Code
Install the Glean plug-in for your Claude Code account or add it to a repository for everyone who works there.
Prerequisites
Ask your Glean administrator to complete the Glean plug-in prerequisites.
Install for yourself
Run these commands in Claude Code:
/plugin marketplace add gleanwork/claude-plugins
/plugin install glean@glean-plugins
/reload-plugins
Confirm that /glean_run is available after the plug-in installs.
Install for a repository
To make the plug-in available to everyone who works in a repository, add the marketplace and plug-in to .claude/settings.json. Merge these settings with any existing configuration:
{
"extraKnownMarketplaces": {
"glean-plugins": {
"source": {
"source": "github",
"repo": "gleanwork/claude-plugins",
"ref": "main"
}
}
},
"enabledPlugins": {
"glean@glean-plugins": true
},
"env": {
"USE_CLAUDE_PROJECT_DIR": "1"
}
}
enabledPlugins is optional and installs the plug-in automatically for everyone who works in the repository. Setting USE_CLAUDE_PROJECT_DIR to 1 prevents repeated file-read permission requests during local project workflows.
The plug-in can create files inside the repository during local workflows. Add its working path to .gitignore:
# Glean plug-in local files
.claude/tmp/
For administrator guidance, see Deploy the Glean plug-in in Claude Code.
For current Claude Code requirements and commands, see Glean Plugin for Claude Code on the Developer Portal.
Next steps
Return to Use the Glean plug-in to authenticate, verify the setup, and run your first request.