The openport client is fully open-source. You can find the source here
You need to have docker installed.
To compile the code, run
docker_compile_all.sh
Once that is done, you can run
./openport-<my-arch> <port>