To me the best parallel I can think of is the industrial revolution. The best (economic) position to be in during that time was to somehow figure out a way to be involved in steam engines. Building or maintaining them, putting one to work in your business, finding a business that you could change with one, etc. Some people chose not to and that's fine, but a lot of basic assumptions about the way people lived got turned on their head whether they liked it or not. People didn't effectively boycott the steam engine even if there were some short periods of success with the Luddites. It's easy for us to be completely dispassionate about this from 200 years in the future.
I think the same flavor of advice holds today. It's totally fine to not like it or not want to participate in it, maybe even boycott it. But you're signing up for a more difficult life. It might well be more rewarding too, we won't know for a long time.
You'll probably need to find an Amish or Amish-like community to join or start your own. It takes enormous money to get into commercial farming but artisinal market gardening is an option with as little as 1/2 acre. You'll want to go as far down the value chain as possible because then even if AI ends up being deployed somehow into a domain you're in, you're at least going to be able to sustain yourself with your own labor. Homesteading is a good way to think about it. Work to minimize what you need from "the grid" in terms of energy, food, etc. One good generic metric is how much you have to spend in a month/year tells you how dependent you are on society. Buying solar panels can help both literally and figuratively. Having a really well insulated home. Getting a very efficient EV you can charge from your solar panels, but even better if you can bike or at least use an e-bike. If you can drive your monthly expenses below $1k it's relatively easy to sustain yourself with low leverage work. You might want to consider moving to somewhere less expensive where you can have more land (for food, solar, water, etc), and lower payments / own it outright.
Obviously I can't tell you that the future will play out the way I'm describing here. This is just my best guess. I have been thinking about it for a while after I was asked a question by a friend "how will all this play out?" months ago. History tells us how people are likely to deploy an invention across society, not because the society is the same but because human nature is.