github-auth

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

1|Updated Aug 6, 2026
One-click install
npx skills add https://github.com/agtktID/indagis-agent --skill github-auth-agtktid
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/agtktID/indagis-agent/tree/main/skills/github/github-auth
Command: npx skills add https://github.com/agtktID/indagis-agent --skill github-auth-agtktid

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Setting up GitHub authentication on a new machine is error-prone: password auth is disabled, tokens need the right scopes, SSH keys must be registered, and headless servers lack browser login. This Skill walks through detection and setup so git operations and GitHub API calls work without repeated credential prompts. ## Core Features & Use Cases - Auth Detection: Checks for existing gh CLI sessions, GITHUB_TOKEN environment variables, and git credential stores before configuring anything. - Multiple Auth Methods: Supports HTTPS personal access tokens with credential helpers, SSH ed25519 keys, and gh CLI login for both desktop and headless environments. - API Access Without gh: Provides curl-based fallback patterns and a script to extract tokens from the git credential store for direct GitHub API calls. - Use Case: On a fresh VPS with no sudo access, use this Skill to configure a personal access token with the git credential store, set commit 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 using a personal access token?▼

Generate 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 future operations.

How to 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 [email protected]. 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 a 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 credential store.

Why does git push ask 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 resolve the prompt.

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

Pipe a personal access token into gh auth login --with-token, then run gh auth setup-git to configure git credentials through gh. Verify the setup with gh auth status.