技能/Skills

GitHub Tokens

Note

A GitHub token is optional. You do not need one to search the registry, view skill info, or install from the official Kenji registry.

When a token is useful

Kenji accesses GitHub directly for repo, tree URL, blob URL, and raw file installs. GitHub limits unauthenticated API requests per IP. A token raises that limit significantly.

A token is recommended if you:

  • Install frequently from GitHub repos or folders
  • Work with private repositories
  • Install large repos or repos with many files

Setting a token

Set the KENJI_GITHUB_TOKEN environment variable. Kenji also reads GITHUB_TOKEN as a fallback.

shell
# Bash
echo 'export KENJI_GITHUB_TOKEN="ghp_xxxxxxxxxxxx"' >> ~/.bashrc
source ~/.bashrc

# Zsh
echo 'export KENJI_GITHUB_TOKEN="ghp_xxxxxxxxxxxx"' >> ~/.zshrc
source ~/.zshrc

Generate a token at github.com/settings/tokens. A token with no scopes is sufficient for public repos.