github-auth

Configures GitHub authentication using HTTPS tokens, SSH keys, or the gh CLI.

5|2|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/AjayRajan05/VoiceOS --skill github-auth-ajayrajan05
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: github-auth
Source: https://github.com/AjayRajan05/VoiceOS/tree/main/skills/bundled/community/github/github-auth
Command: npx skills add https://github.com/AjayRajan05/VoiceOS --skill github-auth-ajayrajan05

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve? Setting up GitHub authentication is a common blocker before any repository work can begin, and the right method varies depending on whether the gh CLI is installed, whether you have sudo access, and whether you prefer HTTPS tokens or SSH keys. This Skill detects the available tooling and walks through the correct authentication path so git operations, API calls, and CI workflows work without repeated credential prompts. ## Core Features & Use Cases - Automatic auth detection: Checks for gh CLI, existing gh sessions, git credential helpers, and stored tokens, then picks the right setup path. - Git-only authentication: Configures HTTPS personal access tokens with credential caching or SSH keys with URL rewriting, requiring no root access or extra installs. - gh CLI authentication: Handles interactive browser login or token-based headless login, plus git credential integration via gh auth setup-git. - API fallback with curl: Extracts tokens from the git credential store or VoiceOS env file so other GitHub skills can call the REST API without gh. - Use Case: On a fresh headless Linux server with no sudo, use this Skill to configure a personal access token with the git credential store, set your commit identity, and verify push access in minutes. ## Quick Start Set up GitHub authentication on this machine so I can clone, push, and work with my repositories.

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; git saves it for all future operations.

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

Generate a key with ssh-keygen -t ed25519, add the public key at github.com/settings/keys, then test with ssh -T git@github.com. You can also configure git to rewrite HTTPS URLs to SSH using git config url.insteadOf.

Can I use GitHub without installing the gh CLI?▼

Yes, git alone handles cloning, pushing, and pulling using HTTPS tokens or SSH keys with no installation or sudo required. For API access, call the GitHub REST API directly with curl and an Authorization header containing your token.

Why does git push keep asking for my GitHub password?▼

GitHub disabled password authentication, so you must use a personal access token as the password or switch to SSH keys. Also verify a credential helper is configured with git config --global credential.helper store so credentials persist between sessions.

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

Use token-based login by piping your token into gh auth login --with-token, then run gh auth setup-git to configure git credentials. Verify the setup with gh auth status, which shows the authenticated account and token scopes.