A direct agent can be converted into a proxy agent, and a proxy agent can be converted into a direct agent. A proxy agent can be moved from one proxy server to another.

You can find the migration scripts in the following location in the OpsRamp console. Automation > Scripts > OpsRamp Agent

There are separate scripts for migrating Linux and Windows agents. The scripts are self-explanatory and you can use them to migrate agents.