Mints GitHub App user access tokens through Device Flow from a Client ID alone, stores them in the OS keyring or another backend, and reuses or refreshes them until they expire. ghtkn exec hands the token to one command's environment, one app per variable, and writes it nowhere else.
Trade-offs
- Device Flow with only a Client ID: no private key or client secret exists to leak. Tokens can't be minted without a person approving in a browser, so CI is out of scope.
- User access tokens, not installation tokens: actions are attributed to the person and limited to what both the person and the app may do. The rate limit is the user's 5,000 requests an hour, shared.
ghtkn execputs the token only in the child's environment, never in output or logs. A command that prints its own environment still exposes it.
Q&A2
They are still issued to GitHub CLI's privileged OAuth app, which an organization can't turn off or audit, with minimum scopes of
repo, read:org and gist. And the refresh token on disk can keep minting tokens off the machine if stolen.Wrap the tool in
ghtkn exec -e GH_TOKEN -- gh …, as a shell function or a script on $PATH. The agent's transcript only ever shows the command.Links
Built by
Reviews
Loading reviews
More in Security
See all 45 →- ZeroboxDeny-by-default process sandbox with per-host secret injection
OVLTSelf-hosted OIDC server in one Rust binary, multi-tenant through Postgres RLS
PandaWardLocal application security assessment that reports what it couldn't decide
KotauthMulti-tenant OAuth2 and OIDC identity server in Kotlin, self-hosted in Docker
SnitchPer-app network monitor and outbound firewall for the desktop
ConduitSSH, Mosh and SFTP client for phones with no account and no cloud sync
More in Developer tools
See all 88 →- EpuppBrowser extension that opens a live ClojureScript REPL into any web page
ResonanceA local-first API client with no account, collections kept as YAML files
PandiaDesktop JSON editor for multi-gigabyte files, with the document held in Rust
ScalexScala code navigation for coding agents, from source and without a build
polyOne Rust binary that lints and formats about 30 languages
JDFDocument format in plain JSON that renders like a PDF and diffs in git
More in CLI tools
See all 74 →
blitcpFile copier that reads in disk order, dedupes and streams over raw SSH
jc-rsjc rewritten as one static binary that turns command output into JSON- pistachioDeclarative PostgreSQL schema management with a plan and apply workflow
quiverDump, load, copy and stream MySQL, MariaDB and TiDB from one consistent snapshot
haxMinimalist terminal coding agent written in C
roam-codeLocal code index and checks that coding agents can query