Nothing reaches the command line, so your shell history and the process table
see key names at most. The parent stays in front to read the output, and
carries the command's exit status and signals back as its own.
A secret is one keychain item on macOS, filed under the service monkeys, and
one Secret Service item on Linux. monkeys keeps nothing of its own anywhere,
so there is no database to back up or leak.
Anything running as you can read that vault, the same way it can read your
shell startup files. This takes secrets out of the repository, not out of
reach; the caveats say where that line falls.