hello and welcome to the forum,
what operating system on the pi?
if you run a command as sudo, it runs as root user, and that user would have a different config file, then a non-sudo user.
that is how it works on my pi
ubuntu@ubuntu:~$ rclone config file
Configuration file is stored at:
/home/ubuntu/.config/rclone/rclone.conf
ubuntu@ubuntu:~$ sudo rclone config file
2021/06/10 16:54:46 NOTICE: Config file "/root/.config/rclone/rclone.conf" not found - using defaults
Configuration file doesn't exist, but rclone will use this path:
/root/.config/rclone/rclone.conf
you can choose the location of the config file with
https://rclone.org/docs/#config-config-file