github-auth

Configures GitHub authentication via HTTPS tokens, SSH keys, or gh CLI login.

Updated Jun 17, 2026
One-click install
npx skills add https://github.com/i-bebsi/hermes-agent --skill github-auth-i-bebsi
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/i-bebsi/hermes-agent/tree/main/hermes-config/skills/github/github-auth
Command: npx skills add https://github.com/i-bebsi/hermes-agent --skill github-auth-i-bebsi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Setting up GitHub authentication for an agent or developer environment is error-prone: password auth is disabled, tokens need correct scopes, SSH keys must be registered, and headless servers lack browser login. This Skill detects the available tooling and walks through the correct authentication path. ## Core Features & Use Cases - Auth Detection: Automatically checks whether gh CLI is installed and authenticated, whether git credential helpers are configured, and selects the right setup method. - Git-Only Setup: Configures HTTPS personal access tokens with credential caching or SSH key authentication without requiring sudo or gh CLI installation. - gh CLI Login: Supports interactive browser login on desktops and token-based login for headless servers, plus git credential integration via gh auth setup-git. - API Fallback: Extracts tokens from git credentials or the Hermes .env file to make authenticated GitHub API calls with curl when gh is unavailable. - Use Case: On a fresh server with only git installed, use this Skill to generate a personal access token, configure the credential store, set git identity, and verify push access in minutes. ## Quick Start Set up GitHub authentication on this machine so I can clone, push, and manage repositories without repeated credential prompts.

Frequently Asked Questions about github-auth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I authenticate git with GitHub using a personal access token?▼

Create a token at github.com/settings/tokens with repo and workflow scopes, then run git config --global credential.helper store and perform any git operation, entering the token as the password. Credentials are saved and reused for all future operations.

How do I set up SSH key authentication for GitHub?▼

Generate an ed25519 key with ssh-keygen, add the public key at github.com/settings/keys, then test with ssh -T git@github.com. Optionally configure git to rewrite HTTPS URLs to SSH using the insteadOf config option.

Can I use the GitHub API without installing gh CLI?▼

Yes, use curl with an Authorization header containing your personal access token. The token can be exported as GITHUB_TOKEN or extracted from the git credential store at ~/.git-credentials.

Why does git push keep asking for a password on GitHub?▼

GitHub disabled password authentication for git operations. Use a personal access token as the password instead, or switch to SSH key authentication to avoid repeated prompts.

What should I do when gh CLI is not installed and I have no sudo access?▼

Use the git-only authentication method, which requires no installation or root access. Configure an HTTPS personal access token with the credential helper, or set up SSH keys, both working entirely in userspace.