github-auth

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

Updated Jul 10, 2026
One-click install
npx skills add https://github.com/AvaTar-ArTs/.Agent-skills --skill github-auth-avatar-arts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/AvaTar-ArTs/.Agent-skills/tree/main/skills/github/github-auth
Command: npx skills add https://github.com/AvaTar-ArTs/.Agent-skills --skill github-auth-avatar-arts

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Setting up GitHub authentication on a new machine or headless server is error-prone: password auth is disabled, tokens need the right scopes, and SSH keys require manual configuration. This Skill walks an agent through detecting the current auth state and configuring a working method without requiring sudo or the gh CLI. ## Core Features & Use Cases - Auth Detection Flow: Checks for git, gh CLI, existing credentials, and environment tokens, then picks the right setup path automatically. - Multiple Auth Methods: Supports HTTPS personal access tokens with credential helpers, SSH key generation and configuration, and gh CLI login (browser or token-based). - API Access Without gh: Shows how to call the GitHub REST API with curl using a token extracted from git credentials or environment files. - Use Case: On a fresh headless Linux server with no root 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 use the GitHub API.

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 without a password?

GitHub disabled password authentication, so use a personal access token as the password with the git credential helper set to store or cache. Alternatively, configure SSH key authentication or use gh auth login if the gh CLI is installed.

How to set up GitHub authentication on a headless server without sudo?

Use the git-only method: create a personal access token at github.com/settings/tokens with repo and workflow scopes, then run git config --global credential.helper store and perform any git operation to cache the token. No root access or gh CLI installation is needed.

Can I use the GitHub API without the gh CLI?

Yes, call the REST API directly with curl using an Authorization header containing your personal access token. The token can be exported as GITHUB_TOKEN or extracted from the ~/.git-credentials file if git credentials are already stored.

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

GitHub removed password authentication for git operations, so you must use a personal access token instead of your account password. Also verify that git config --global credential.helper is set to store or cache so credentials persist between sessions.

What scopes does a GitHub personal access token need for git operations?

A classic token needs the repo scope for full repository read, write, and push access, plus workflow scope to trigger GitHub Actions. Add read:org if you work with organization repositories.