In cahoots is recorded in the early 19th century, in the south and west of the USA, in the sense of partnership. The origin of cahoot is uncertain. It may come either from the French word cahute meaning a hut or from cohort.
1998 - Spectator - Labour knows that. So do the Tories and that's why the two of them are in cahoots.