cf-promises and cf-agent need sudo

Both cf-... commands failed for me until I added sudo.
Error messages:
cf-promises "Can't open file /var/cfengine/masterfiles/promises.cf for parsing"
and
cf-agent "Couldn't find a private key (/home/vagrant/.cfagent/ppkeys/localhost.priv) - use cf-key to get one"