glean-install-auth

Featured

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".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Glean Install & Auth ## Overview 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`. ## Prerequisites - Glean enterprise account with admin access - API token from Glean Admin > API Tokens - Your Glean deployment domain (e.g., `company-be.glean.com`) ## Instructions ### Step 1: Obtain API Tokens 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` | ### Step 2: Configure Environment Variables ```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 ``` ### Step 3: Install SDK and Verify ```bash npm install @anthropic-ai/glean-indexing-api-client # Or use fetch directly ``` ```typescript const 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: { ...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category