Read Config password from macOS Keychain

Is there a command line tool which can read a password from the keychain? If so then pass the command line to --password-command, eg --password-command "magic-macos-keyring-comand password-for-rclone -some-other-arg"