Error: Socket Exception while trying to access kmd

One solution is to use BIP39.
You can see one implementation for Algorand there:

Disclaimer: I have nor reviewed this implementation. Algorand makes no representations regarding the functioning or security of wallets, exchanges, or tools mentioned in the answer above, and disclaims any liability therefor.