iMac locking immediately after remote connection via Anydesk or Chrome Remote
I have used Amphetamine with the chrome desktop app and it did work great.
My settings: Launch and start session (turned on).
2 screen saver off
3. Display sleep off
4. duration: 12 hours or 24 hours (Indefinitely setting didn't work for me)
All other default energy saver settings were off.