GitHub PAT Integration for Openclaw

A secure, token-based interface for managing GitHub repositories, pull requests, and issues without the complexity of OAuth.

dannyshmueli
v1.0.0
Jan 28, 2026
1
2.7k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install github-pat

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install github-pat using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is GitHub PAT Integration?

The GitHub PAT skill provides a robust and secure way for AI agents to interact with GitHub environments through user-defined Personal Access Tokens. As a core part of the Openclaw Skills library, it emphasizes user sovereignty and the principle of least privilege. By bypassing complex OAuth flows, developers can grant specific, scoped access to their codebases, allowing the agent to perform essential version control tasks while maintaining strict security boundaries.

This skill is designed for developers who need to automate their workflow within Openclaw Skills without granting full account access. It acts as a bridge between the local development environment and GitHub's powerful API, facilitating seamless code management through a simplified CLI interface.

GitHub PAT Integration Use Cases

  • Automating code synchronization and repository cloning in isolated environments.
  • Streamlining the creation of pull requests and issues during the development lifecycle.
  • Managing multiple GitHub accounts or enterprise repositories via specific scoped tokens.
  • Integrating version control workflows into Openclaw Skills based automation pipelines.

How GitHub PAT Integration Works

  1. The user generates a Personal Access Token on GitHub with specific scopes such as repo for full access or public_repo for public access.
  2. The token is provided to the agent and stored securely in the TOOLS.md file or passed via command-line arguments.
  3. The agent utilizes the gh.py script to authenticate API requests directly with GitHub servers using the provided token.
  4. The agent executes high-level git operations such as branching, pushing, and pull request creation using the authenticated session.
  5. All interactions are managed within the security parameters defined by the PAT's scope, ensuring the agent never exceeds its authorized access.

GitHub PAT Integration Setup

To integrate this functionality into your Openclaw Skills environment, follow these steps:

  1. Navigate to github.com/settings/tokens and generate a new Personal Access Token.
  2. Select the necessary scopes based on your requirements (e.g., repo for private access).
  3. Provide the token to the agent or store it in your TOOLS.md file under a ### GitHub section.

You can also pass the token directly in CLI commands:

python3 scripts/gh.py repos --token YOUR_GITHUB_TOKEN

GitHub PAT Integration Data Schema & Taxonomy

The skill organizes interaction data and configuration through the following schema:

Component Description Persistence
PAT Token Primary authentication credential TOOLS.md or CLI flag
Repository Metadata Information about cloned or queried repos Local API cache
Command Context Current branch and repository targets CLI Arguments
Security Scopes User-defined permission levels GitHub API Side

GitHub PAT Integration Advanced Features

  • Support for Fine-grained Personal Access Tokens for granular repository-level permissions.
  • Seamless integration with other Openclaw Skills for end-to-end DevOps automation.
  • Multi-repository management capabilities via a single command interface.
  • Security-first design that strictly prevents token exposure in logs or user-facing messages.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*