Cli transport question

Anyone have any thoughts on how a network module could provide for both the CLI transport as well as the local transport? For instance, if the remote device has both a web service and a console that it could be configured from.

Thanks,
tim