Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Install and configure Glean API authentication with indexing and client tokens. Use when setting up custom datasource indexing, configuring search API access, or initializing the Glean developer SDK for enterprise search. Trigger: "install glean", "setup glean", "glean auth", "glean API token".
.claude/skills/jeremylongshore-glean-install-auth/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -18% | 0% |
| case-02 | ✗→✓ | ▲ Improved | -2% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -45% | 0% |
| case-04 | ✗→✓ | ▲ Improved | -30% | 0% |
| case-05 | ✗→✓ | ▲ Improved | -25% | 0% |
Configure Glean API authentication for enterprise search and knowledge management. Glean has two APIs: the Indexing API (push content into search) and the Client API (search and retrieve). Each uses separate tokens. Base URL: https://<domain>-be.glean.com/api.
company-be.glean.com)Navigate to Glean Admin Console > Settings > API:
| Token Type | Purpose | Required Header | |------------|---------|----------------| | Indexing API token | Push documents into search index | Authorization: Bearer <token> | | Client API token | Search, chat, user-scoped queries | Authorization: Bearer <token> + X-Glean-Auth-Type: BEARER |
bash# .env (NEVER commit) GLEAN_DOMAIN=company-be.glean.com GLEAN_INDEXING_TOKEN=glean_idx_... GLEAN_CLIENT_TOKEN=glean_cli_... GLEAN_DATASOURCE=custom_app # Your custom datasource name
bashnpm install @anthropic-ai/glean-indexing-api-client # Or use fetch directly
typescriptconst GLEAN_BASE = `https://${process.env.GLEAN_DOMAIN}/api`; // Verify indexing API access async function verifyIndexingAccess() { const res = await fetch(`${GLEAN_BASE}/index/v1/getdatasourceconfig`, { method: 'POST', headers: { 'Authorization': `Bearer ${process.env.GLEAN_INDEXING_TOKEN}`, 'Content-Type': 'application/json', }, body: JSON.stringify({ datasource: process.env.GLEAN_DATASOURCE }), }); const config = await res.json(); console.log(`Connected. Datasource: ${config.name}`); } // Verify client API access async function verifySearchAccess() { const res = await fetch(`${GLEAN_BASE}/client/v1/search`, { method: 'POST', headers: { 'Authorization': `Bearer ${process.env.GLEAN_CLIENT_TOKEN}`, 'X-Glean-Auth-Type': 'BEARER', 'Content-Type': 'application/json', }, body: JSON.stringify({ query: 'test', pageSize: 1 }), }); const results = await res.json(); console.log(`Search works. Found ${results.results?.length ?? 0} results.`); }
| Error | Code | Cause | Solution | |-------|------|-------|----------| | Unauthorized | 401 | Invalid token | Regenerate in Admin > API Tokens | | Forbidden | 403 | Token lacks scope | Use correct token type (indexing vs client) | | Not Found | 404 | Wrong domain | Verify GLEAN_DOMAIN includes -be suffix |
After auth, proceed to glean-hello-world for your first index and search.
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | fail→pass | 18,548 | 14,481 | -22% | 1 | 1 | 0% | 3,747 | 3,087 | -18% | 0 | 0 | — |
case-02 | fail→pass | 21,596 | 11,381 | -47% | 1 | 1 | 0% | 3,685 | 3,606 | -2% | 0 | 0 | — |
case-03 | fail→pass | 37,034 | 11,993 | -68% | 1 | 1 | 0% | 6,474 | 3,545 | -45% | 0 | 0 | — |
case-04 | fail→pass | 13,102 | 4,738 | -64% | 1 | 1 | 0% | 2,543 | 1,768 | -30% | 0 | 0 | — |
case-05 | fail→pass | 14,360 | 8,142 | -43% | 1 | 1 | 0% | 2,040 | 1,539 | -25% | 0 | 0 | — |
case-06 | pass→fail | 11,217 | 14,645 | +31% | 1 | 1 | 0% | 2,337 | 2,969 | +27% | 0 | 0 | — |
case-07 | fail→pass | 14,582 | 5,322 | -64% | 1 | 1 | 0% | 2,202 | 1,964 | -11% | 0 | 0 | — |
case-08 | pass→pass | 10,333 | 9,805 | -5% | 1 | 1 | 0% | 1,117 | 1,248 | +12% | 0 | 0 | — |
case-09 | pass→pass | 8,013 | 5,488 | -32% | 1 | 1 | 0% | 1,505 | 2,063 | +37% | 0 | 0 | — |
case-10 | pass→pass | 13,059 | 7,622 | -42% | 1 | 1 | 0% | 1,766 | 1,438 | -19% | 0 | 0 | — |
case-11 | pass→pass | 14,785 | 11,391 | -23% | 1 | 1 | 0% | 1,938 | 2,177 | +12% | 0 | 0 | — |
case-12 | pass→pass | 12,880 | 10,962 | -15% | 1 | 1 | 0% | 1,548 | 2,127 | +37% | 0 | 0 | — |
case-13 | fail→pass | 22,830 | 2,007 | -91% | 1 | 1 | 0% | 3,581 | 1,250 | -65% | 0 | 0 | — |
case-14 | fail→pass | 16,875 | 3,993 | -76% | 1 | 1 | 0% | 2,114 | 1,536 | -27% | 0 | 0 | — |
case-15 | fail→fail | 11,377 | 2,353 | -79% | 1 | 1 | 0% | 1,034 | 1,197 | +16% | 0 | 0 | — |
case-16 | pass→pass | 18,540 | 9,494 | -49% | 1 | 1 | 0% | 1,985 | 1,634 | -18% | 0 | 0 | — |
case-17 | pass→pass | 10,597 | 8,967 | -15% | 1 | 1 | 0% | 1,774 | 1,608 | -9% | 0 | 0 | — |
case-18 | pass→pass | 11,496 | 9,529 | -17% | 1 | 1 | 0% | 1,109 | 1,610 | +45% | 0 | 0 | — |
case-19 | fail→pass | 12,162 | 13,924 | +14% | 1 | 1 | 0% | 1,938 | 2,590 | +34% | 0 | 0 | — |
case-20 | pass→pass | 11,422 | 8,211 | -28% | 1 | 1 | 0% | 1,067 | 1,502 | +41% | 0 | 0 | — |
case-21 | pass→pass | 12,278 | 16,639 | +36% | 1 | 1 | 0% | 2,286 | 3,242 | +42% | 0 | 0 | — |
case-22 | pass→pass | 18,728 | 21,321 | +14% | 1 | 1 | 0% | 2,364 | 3,862 | +63% | 0 | 0 | — |
case-23 | pass→pass | 14,144 | 16,374 | +16% | 1 | 1 | 0% | 1,723 | 2,921 | +70% | 0 | 0 | — |
case-24 | pass→pass | 22,460 | 10,153 | -55% | 1 | 1 | 0% | 2,722 | 2,841 | +4% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 24 cases were attempted. The headline lift of +33 percentage points is the difference between those two pass rates over the 24 comparable cases. 1 case got worse with the skill loaded, and it is included in that figure.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.