I'd prefer to limit the number of dotfiles in my $HOME, so I'd like to move ~/.localhost/ to a different path, possibly ~/.local/state/localhost/ or similar.
That could be done following the XDG standard ($XDG_STATE_HOME seems appropriate), or support a specific environment variable, like $LOCALHOST_AUTHORTIY_PATH.
What do you think?