Skip to content

wayglass git-credential

Plumbing: git credential helper that mints a read-only token per fetch.

The git credential helper ‘wayglass clone’ configures in a checkout, so plain ‘git fetch’ and ‘git pull’ keep working after the clone’s token has expired. On ‘get’ it asks the Worker for a fresh read-only token for the project’s trunk (or, with –intent, that intent’s fork) using your stored Wayglass key and answers git with it on stdout. Nothing is stored: ‘store’ and ‘erase’ do nothing, and the token is never written to disk or logged. Read only: pushes still go through ‘wayglass push’ and ‘wayglass land’.

Git runs this; you do not. In .git/config it looks like:

[credential "https://<account>.artifacts.cloudflare.net/git/<ns>/<repo>.git"]
helper =
helper = !wayglass git-credential --project <project>
Terminal window
wayglass git-credential <get|store|erase> [flags]
Terminal window
printf 'protocol=https\nhost=x.artifacts.cloudflare.net\n\n' | wayglass git-credential --project demo get
Flag Default Description
--intent string mint for this intent’s fork instead of the trunk
--project string the Wayglass project the remote belongs to
Flag Default Description
--json print a JSON envelope for agents (no colour, prompts or spinners)

Exit codes and the --json envelope are the same for every command; see For agents.

  • wayglass: Zero Trust for agentic development