Maybe I am being dense but you want to reside in Canada and work for a US company remotely which is no problem at all or you want to reside in the US and work for a Canadian company remotely. With the latter of course you will need to watch that you maintain your residency obligation in Canada.