Ideally, this would be a shell environment where the end user can execute both remote and local shell commands, and the shell will use whichever is more appropriate.