Save the credentials in the agent too