Thanks for the recommendation. This is very close to what I am looking for, at least with regards to the CLI.
The networking part I can fix with a second docker container and network_mode I think.
The centralised key and permission management and agent dashboarding is severly lacking though. But that's for now my least worry I think.