ghapp
为您的 AI 代理和自动化提供自己的 GitHub(应用程序)身份。使用 GitHub Apps 进行身份验证,以便每次提交、PR 和操作都归因于机器人,而不是您的个人帐户。
安装 / 下载方式
TotalClaw CLI推荐
totalclaw install totalclaw:totalclaw~rmorse-ghappcURL直接下载,无需登录
curl -fsSL https://skills.taituai.com/api/skills/totalclaw%3Atotalclaw~rmorse-ghapp/file -o rmorse-ghapp.md## 概述(中文) 为您的 AI 代理和自动化提供自己的 GitHub(应用程序)身份。使用 GitHub Apps 进行身份验证,以便每次提交、PR 和操作都归因于机器人,而不是您的个人帐户。 ## 原文 # ghapp Use `ghapp` to authenticate as a GitHub App so `git` and `gh` commands use installation tokens. Requires a GitHub App with App ID, Installation ID, and a private key (.pem). Setup - `ghapp setup` — interactive wizard: enter App ID, Installation ID, key path, then configure auth - `ghapp auth configure` — configure git + gh authentication (if skipped during setup) - `ghapp auth status` — show current auth config and diagnostics Commands - `ghapp --help` — list all commands and flags - `ghapp token` — print an installation token (cached; `--no-cache` for fresh) - `ghapp auth configure [--gh-auth shell-function|path-shim|none]` — configure how git/gh authenticate - `ghapp auth status` — check auth health - `ghapp auth reset [--remove-key]` — undo all auth config - `ghapp config set`, `ghapp config get [key]`, `ghapp config path` — manage config - `ghapp update` — self-update to latest release - `ghapp version` — print version gh auth modes (passed to `auth configure`) - `shell-function` — auto-authenticates gh commands via shell integration (recommended) - `path-shim` — wrapper binary for CI/containers - `none` — static token in hosts.yml Notes - After setup, `git clone/push/pull` and `gh` work without manual tokens. - Commits are attributed to the app's bot account (e.g., `myapp[bot]`). - Tokens are cached locally and auto-refreshed. - Config stored at `~/.config/ghapp/config.yaml`.