Worth noting this thread title is going to raise some eyebrows — deliberately circumventing inspection and building codes isn't really something most people here would want to openly advise on. Not having a go, just flagging it.
That said, if you're talking about a genuinely portable, non-permanent setup for a static caravan or camp that legitimately falls outside planning/building regs, that's a completely different conversation and one worth having.
I've got my own off-grid static setup running on Victron kit with Fogstar Drift lithium batteries, and because nothing is hardwired into the structure permanently, it sits in a grey area that's never caused me grief. The key distinction tends to be permanent vs portable — at least here in the UK.
If you're in the US (guessing from "township"), the rules will vary wildly by county, but the principle is similar. A self-contained generator or solar setup that isn't tied into a structure's permanent wiring usually flies under the radar legitimately, not just by dodging inspection.
Could you clarify what you're actually trying to achieve? Power for lighting, heating, appliances? That'll help people give you useful kit recommendations rather than just legal speculation.
Curious whether others here have navigated similar grey areas — particularly with temporary or seasonal setups. Where do you draw the line between "portable system" and something that should properly go through sign-off?