Normally, I would advise that you form an "S-Corp" for a software consulting business, but as a non-resident alien, as you probably know, you are not eligible to be an owner-employee of an S-Corp.
Alternatively, I would suggest that you form a CA LLC as that will be the most efficient way to do business since you are going to be living in California. As you may know, an LLC is disregard for federal income tax purposes, and as such, being the owner-operator of the Company, you will be able to file as a Sole Proprietorship (Schedule C) with your Form 1040 NR as well as with your CA return.
That will eliminate a lot of Federal & CA administrative accounting, income and payroll tax reporting that would be required should you operate as a regular "C" corporation. That could easily add an additional $2,000. - $2,500. of accounting, payroll accounting, payroll taxes and workman's compensation insurance to the business with little or no benefit beyond what you will have with your Limited Liability Company (LLC).
In any event, if you aren't familiar with US tax laws, I recommend that you establish a relationship with a local CPA that will be available on an "as needed" basis to answer questions and to prepare your income tax filings to make sure that you are using all available business and personal deductions, to reduce your income taxes in accordance with our federal and state income tax laws.