github-auth

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

5|2|Updated May 26, 2026
One-click install
npx skills add https://github.com/perasyudha/Nyxora --skill github-auth-perasyudha
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/perasyudha/Nyxora/tree/main/packages/core/playbooks/github/github-auth
Command: npx skills add https://github.com/perasyudha/Nyxora --skill github-auth-perasyudha

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 machines lack browser login. This Skill detects the available tooling and walks through the correct authentication path. ## Core Features & Use Cases - Multi-Method Authentication: Supports HTTPS personal access tokens with git credential helpers, SSH key generation and registration, and gh CLI login for both interactive and headless environments. - Environment Detection: Ships a shell script that detects the active auth method (gh, curl with token, or none), resolves the GitHub username, and extracts the current repo owner/name from git remotes. - API Fallback Access: Shows how to call the GitHub REST API with curl when the gh CLI is unavailable, including extracting tokens from the git credential store. - Use Case: On a fresh headless server with no sudo access, use this Skill to configure a personal access token with the git credential store, set git identity, and verify push access to a repository. ## Quick Start Set up GitHub authentication on this machine so I can clone, push, and open pull requests without being prompted for credentials.

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 like git ls-remote. Enter your username and paste the token as the password; it is saved for future operations.

How do I set up SSH keys for GitHub authentication?

Generate a key with ssh-keygen -t ed25519, then add the public key content at github.com/settings/keys. Test with ssh -T [email protected] and optionally configure git to rewrite HTTPS URLs to SSH using url.insteadOf.

Can I use the GitHub API without the gh CLI installed?

Yes, use curl with an Authorization header containing your personal access token, for example curl -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/user. The token can also be extracted from the ~/.git-credentials file if git credentials are already stored.

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

GitHub disabled password authentication for git operations. You must use a personal access token as the password or switch to SSH key authentication, and ensure a credential helper like store or cache is configured.

How do I authenticate gh CLI on a headless server without a browser?

Use token-based login by piping the token into gh: echo "<token>" | gh auth login --with-token. Then run gh auth setup-git to configure git credentials through gh, and verify with gh auth status.