GitHub Token
/install github-token
GitHub PAT
Interact with GitHub using Personal Access Tokens. User controls access via PAT scopes.
Setup
User provides their PAT:
1. Create PAT at github.com/settings/tokens
2. Select scopes (repo for full, public_repo for public only)
3. Provide token to agent
Store in TOOLS.md or pass via --token.
Commands
# List repos you have access to
python3 scripts/gh.py repos [--token TOKEN]
# Clone a repo
python3 scripts/gh.py clone owner/repo [--token TOKEN]
# Create branch
python3 scripts/gh.py branch \x3Cbranch-name> [--repo owner/repo]
# Commit and push
python3 scripts/gh.py push "\x3Cmessage>" [--branch branch] [--repo owner/repo]
# Open a pull request
python3 scripts/gh.py pr "\x3Ctitle>" [--body "description"] [--base main] [--head branch]
# Create an issue
python3 scripts/gh.py issue "\x3Ctitle>" [--body "description"] [--repo owner/repo]
# View repo info
python3 scripts/gh.py info owner/repo
Security Model
- User controls access via PAT scopes
- No OAuth - no "allow full access" prompts
- Least privilege - user creates PAT with minimal needed scopes
- Fine-grained PATs supported for specific repo access
Token Storage
Agent stores token in TOOLS.md under ### GitHub section. Never expose in logs or messages.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install github-token - After installation, invoke the skill by name or use
/github-token - Provide required inputs per the skill's parameter spec and get structured output
What is GitHub Token?
Interact with GitHub using Personal Access Tokens. Secure, user-controlled access - no OAuth, no full account access. Clone, push, branch, PR, issues. Use when user wants to work with GitHub repos. It is an AI Agent Skill for Claude Code / OpenClaw, with 1699 downloads so far.
How do I install GitHub Token?
Run "/install github-token" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is GitHub Token free?
Yes, GitHub Token is completely free (open-source). You can download, install and use it at no cost.
Which platforms does GitHub Token support?
GitHub Token is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created GitHub Token?
It is built and maintained by Danny Shmueli (@dannyshmueli); the current version is v1.0.0.