Your agent hits a login screen on a cloud simulator. Now what?
Ask it to hold, take over the session from the live view in your browser, sign in, hand it back.
Better: put a test login in your preview environment variables so it signs in on its own next time.