Skip to content

wayglass login

Store the Worker URL and your Wayglass key.

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.

Terminal window
wayglass login [flags]
Terminal window
printf %s "$KEY" | wayglass login --worker https://wayglass.<you>.workers.dev --key-stdin
Flag Default Description
--agent string name recorded in the audit log for this machine (default user@host)
--key-stdin read the key from standard input
--no-verify store without checking the key against the Worker
--worker string Wayglass Worker URL (https)
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.