1- start an llc (pretty easy can be done online in about 20 min) 2- get jobs
Part two is the tougher one. I've read that a lot of programmers are selling their services on fiverr (a pretty big freelancing site) to fix AI slop.
There's also dice.com (Though this may be more consulting/contracting than freelancing). You can filter by and get corp-to-corp contracts. These mean your llc gets paid, and then you pay yourself from that. The pay for a corp-to-corp is typically higher than a W2 because everything is included, and you have to deal with it all. Like benefits, bonuses, vacation days, supplies, etc.