Access GitHub via the GitHub API with OAuth authentication. Manage repositories, issues, pull requests, commits, branches, releases, and workflows.
This skill uses ClawLink for hosted connection flows and credentials so you do not need to configure GitHub API access yourself.
| Step 1: Install | Step 2: Pair Account | Step 3: Connect GitHub |
|---|---|---|
| :---: | :---: | :---: |
| !Install | !Pair | App-specific connection GIF coming soon |
| Run the install command in OpenClaw | Sign in and approve the device | Open the dashboard and connect GitHub |
┌─────────────────┐ ┌──────────────┐ ┌──────────────────┐
│ OpenClaw │────▶│ ClawLink │────▶│ GitHub API │
│ (User Chat) │ │ (OAuth) │ │ (REST/GraphQL) │
└─────────────────┘ └──────────────┘ └──────────────────┘
│ │ │
│ 1. Install Plugin │ │
│ 2. Pair Device │ │
│ 3. Connect GitHub │ │
│ │ 4. Secure Token │
│ │ 5. Proxy Requests │
│ │ │
▼ ▼ ▼
┌──────────┐ ┌──────────┐ ┌──────────┐
│ SKILL │ │ Dashboard│ │ GitHub │
│ File │ │ Auth │ │ Repos │
└──────────┘ └──────────┘ └──────────┘
Install the verified ClawLink plugin from ClawHub. After the user confirms, complete the full setup so ClawLink tools are visible in the next OpenClaw chat.
openclaw plugins install clawhub:clawlink-plugin
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json
openclaw gateway restart
Then tell the user: "OpenClaw has been restarted. Send /new as a standalone message to start a fresh chat, then ask for GitHub again."
# List repositories for the authenticated user
clawlink_call_tool --tool "github_list_repositories_for_the_authenticated_user" --params '{}'
# Get a specific repository
clawlink_call_tool --tool "github_get_a_repository" --params '{"owner": "owner", "repo": "repo-name"}'
# List issues in a repository
clawlink_call_tool --tool "github_list_issues_for_a_repository" --params '{"owner": "owner", "repo": "repo-name", "state": "open"}'
All GitHub tool calls are authenticated automatically by ClawLink using the user's connected GitHub account.
No API key is required in chat. ClawLink stores the OAuth token securely and injects it into every GitHub API request on the user's behalf.
clawlink_begin_pairing if it is not configured yet.clawlink_list_integrations to verify the connection is active.clawlink_list_integrations
Response: Returns all connected integrations. Look for github in the list.
clawlink_list_tools --integration github
Response: Returns the live tool catalog for GitHub.
If GitHub tools are missing or the connection shows an error:
clawlink_list_integrations to verifyclawlink_list_tools --integration github| Tool | Description | Mode |
|---|---|---|
| ------ | ------------- | ------ |
github_list_repositories_for_the_authenticated_user | List all repos for the authenticated user | Read |
github_get_a_repository | Get repository details | Read |
github_create_a_repository | Create a new repository | Write |
github_update_a_repository | Update repository settings | Write |
github_delete_a_repository | Delete a repository | Write |
github_list_repository_collaborators | List repo collaborators | Read |
| Tool | Description | Mode |
|---|---|---|
| ------ | ------------- | ------ |
github_list_issues_for_a_repository | List issues with filtering | Read |
github_get_an_issue | Get issue details | Read |
github_create_an_issue | Create a new issue | Write |
github_update_an_issue | Update issue fields (labels, assignee, state) | Write |
github_add_labels_to_an_issue | Add labels to an issue | Write |
github_add_assignees_to_an_issue | Add assignees to an issue | Write |
| Tool | Description | Mode |
|---|---|---|
| ------ | ------------- | ------ |
github_list_pull_requests | List PRs in a repository | Read |
github_get_a_pull_request | Get PR details | Read |
github_create_a_pull_request | Create a new PR | Write |
github_update_a_pull_request | Update PR fields | Write |
| Tool | Description | Mode |
|---|---|---|
| ------ | ------------- | ------ |
github_list_commits | List commits in a repository | Read |
github_get_a_commit | Get commit details | Read |
github_list_branches | List branches in a repository | Read |
github_create_a_branch | Create a new branch | Write |
| Tool | Description | Mode |
|---|---|---|
| ------ | ------------- | ------ |
github_list_repository_workflows | List workflows in a repo | Read |
github_list_workflow_runs | List workflow runs | Read |
github_get_a_workflow_run | Get workflow run details | Read |
github_cancel_workflow_run | Cancel an in-progress workflow run | Write |
| Tool | Description | Mode |
|---|---|---|
| ------ | ------------- | ------ |
github_list_releases | List releases in a repository | Read |
github_get_a_release | Get release details | Read |
github_create_a_release | Create a new release | Write |
clawlink_call_tool --tool "github_list_issues_for_a_repository" \
--params '{
"owner": "owner",
"repo": "repo-name",
"state": "open",
"sort": "created",
"direction": "desc"
}'
clawlink_call_tool --tool "github_create_an_issue" \
--params '{
"owner": "owner",
"repo": "repo-name",
"title": "Bug: Login fails on mobile",
"body": "Steps to reproduce: 1. Go to login 2. Enter credentials 3. Error shown",
"labels": ["bug", "high-priority"]
}'
clawlink_call_tool --tool "github_add_labels_to_an_issue" \
--params '{
"owner": "owner",
"repo": "repo-name",
"issue_number": 123,
"labels": ["needs-review", "bug"]
}'
clawlink_call_tool --tool "github_create_a_pull_request" \
--params '{
"owner": "owner",
"repo": "repo-name",
"title": "Fix login bug",
"head": "fix/login-bug",
"base": "main",
"body": "Fixes #123 - Login fails on mobile devices"
}'
clawlink_list_integrations to confirm GitHub is connected.clawlink_list_tools --integration github to see the live catalog.clawlink_search_tools with a short query and integration github.┌─────────────────────────────────────────────────────────────┐
│ READ OPERATIONS (Safe) │
│ list → get → search → describe → call │
│ │
│ Example: List issues → Get issue → Show details │
└─────────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────────┐
│ WRITE OPERATIONS (Require Confirmation) │
│ list → get → describe → preview → confirm → call │
│ │
│ Example: Describe tool → Preview issue → User approves │
│ → Execute create │
└─────────────────────────────────────────────────────────────┘
clawlink_describe_tool first.whenToUse, askBefore, safeDefaults, examples, and followups to shape the call.clawlink_preview_tool first.clawlink_call_tool. Pass confirmation only after the preview matches the user's intent.owner/repo format for owner and repo parameters.| Status / Error | Meaning |
|---|---|
| ---------------- | --------- |
| Tool not found | The tool name does not exist in the current catalog. Verify with clawlink_list_tools --integration github. |
| Missing connection | GitHub is not connected. Direct the user to https://claw-link.dev/dashboard?add=github. |
404 Not Found | Repository, issue, or PR does not exist. Verify owner, repo, and number. |
403 Forbidden | Rate limit exceeded or insufficient permissions. |
422 Unprocessable | Invalid request body or missing required fields. Verify tool schema. |
| Write rejected | User did not confirm a write action. Always confirm before executing writes. |
```bash
openclaw plugins list
```
/new as a standalone message to reload the catalog.```bash
openclaw config set tools.alsoAllow '["clawlink-plugin"]' --strict-json
openclaw gateway restart
```
/new again and retry.github.clawlink_describe_tool to verify parameter names and types before calling.clawlink_preview_tool first.Powered by ClawLink — an integration hub for OpenClaw
共 2 个版本