Yeah, OpenInterpreter does this (you are not limited to OpenAI only):
https://github.com/OpenInterpreter/open-interpreter
I wrote a wrapper around it that works in a web browser (you'll need an OpenAI API key): https://github.com/uhsealevelcenter/IDEA