There are three counties in Idaho with no building codes, (Idaho Bonner, and Boundary) but......
When they say building codes that means on the structure (and only the structure), and the variability of those structures is horrific,
In Idaho county a
straw bale building collapsed after heavy rains, on its occupants a few years ago and sagging roof lines and crumbling foundations are far from uncommon.
However, the State requires Electrical, Plumbing, and HVAC, inspections statewide, no matter what they try to tell you, failure to procure those inspections leaves you open to varying penalties depending on the jurisdiction, ranging from: having the title clouded with a notice that the building has no certificate of occupancy, and is therefore not suitable for human habitation, to having the power removed if the installation is deemed hazardous.
There is no limit to the Inspectors right to inspect if hazardous conditions are reported.
While access may be denied, it can result in de-facto disconnection from Utilities. Freestanding (independent sources of power such as
Solar, Generators, Waterpower) are under the same standards as any other installation.
Criminal liability is in reserve if proof is available that the property owner / contractor deliberately short circuited the inspection / permit process with knowledge of the required standards.
In addition Lending agencies and Insurance agencies have free access to the States database, and lending rates and insurance premiums (and payouts) can reflect compliance with Idaho adopted code.
Furthermore even the most backward counties have permits and perk test requirements on septics ...and outhouses. Free standing outhouses are generally tolerated but a dug pit has standards applied.
Idaho Codes for permits and fee schedule are detailed at:
https://dbs.idaho.gov/rules/current.html