wayglass login
Store the Worker URL and your Wayglass key, or sign in as a person.
Stores the Worker URL and key in ~/.config/wayglass/credentials.yaml (mode 0600). The key is the Worker’s admin key or an agent key from ‘wayglass keys create’; an agent key fixes the name the audit log records for you. The key is read from WAYGLASS_KEY or, with –key-stdin, from standard input, never from a flag, so it stays out of shell history and the process list. WAYGLASS_URL and WAYGLASS_KEY override the stored values on every command.
With –human, a person signs in through Cloudflare Access instead: the browser opens the Worker’s Access-protected sign-in page, and the Worker hands back a human key bound to your email that expires in 12 hours. The key comes back to a one-time listener on 127.0.0.1 in a POST body, never in a URL. The URL is also printed, for machines without a browser. Agents keep using keys; the Worker’s admin turns Access on (docs/SELF-HOSTING.md).
wayglass login [flags]Examples
Section titled “Examples”printf %s "$KEY" | wayglass login --worker https://wayglass.<you>.workers.dev --key-stdinwayglass login --human --worker https://wayglass.<you>.workers.dev| Flag | Default | Description |
|---|---|---|
--agent string |
name recorded in the audit log for this machine (default user@host) | |
--human |
sign in as a person through Cloudflare Access (opens a browser; the key expires) | |
--key-stdin |
read the key from standard input | |
--no-browser |
with –human: only print the sign-in URL | |
--no-verify |
store without checking the key against the Worker | |
--worker string |
Wayglass Worker URL (https) |
Global flags
Section titled “Global flags”| 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.
See also
Section titled “See also”wayglass: Zero Trust for agentic development