Fails to login to iCloud with multiple authentication ways used

What is the problem you are having with rclone?

I wanted to use rclone to connect to my iCloud however I cannot authenticate myself

Run the command 'rclone version' and share the full output of the command.

rclone v1.74.0-DEV

  • os/version: arch (64 bit)
  • os/kernel: 6.19.11-arch1-1 (x86_64)
  • os/type: linux
  • os/arch: amd64
  • go/version: go1.26.2-X:nodwarf5
  • go/linking: dynamic
  • go/tags: none

Which cloud storage system are you using? (eg Google Drive)

iCloud

The command you were trying to run (eg rclone copy /tmp remote:tmp)

rclone config reconnect iCloud: -vv --header "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4 Safari/605.1.15" \
  --header "Origin: https://www.icloud.com"

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[iCloud]
type = iclouddrive
apple_id = XXX
password = XXX
cookies = 

A log from the command that you were trying to run with the -vv flag

2026/04/12 12:07:35 DEBUG : rclone: Version "v1.74.0-DEV" starting with parameters ["rclone" "config" "reconnect" "iCloud:" "-vv" "--header" "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4 Safari/605.1.15" "--header" "Origin: https://www.icloud.com"]
2026/04/12 12:07:35 DEBUG : Using config file from "~/.config/rclone/rclone.conf"
2026/04/12 12:07:35 DEBUG : iCloud: config in: state="", result=""
2026/04/12 12:07:35 DEBUG : icloud: Authenticating as [THE EMAIL ADDRESS]
2026/04/12 12:07:36 DEBUG : iCloud: config out: out=<nil>, err=authSRPComplete: sign in failed: 401 
Error: authSRPComplete: sign in failed: 401