Its fairly simple to run an AI locally (assuming the game was altered to allow changing the API endpoint) - look at Pinochio