Nexient, which has its headquarters in Newark, Calif., has three delivery centers in the Midwest: in Ann Arbor, Mich.; Okemos, Mich.; and Kokomo, Ind. It employs 400 people, up from 250 two years ago, and plans to hire a few hundred more over the next year, Mark Orttung, the company’s chief executive, said.

The company’s business model is fairly typical for onshore companies. On projects, it will send members of a team to the client for a couple of weeks to study the business and meet their counterparts. Bill.com even interviewed and shared in the selection of five Nexient engineers who would work on the joint team.

Mr. Lacerte of Bill.com had farmed out technology work over the years, but the headaches of navigating time zones, cultures and language often outweighed the cost savings. Those problems went away when he hired a domestic outsourcer.

Image A set of tools at the desk of a Techtonic apprentice. Techtonic began the apprentice program in 2014, and has hired 90 percent of the graduates. Credit... Ryan David Brown for The New York Times

Nexient has set up its centers away from the coastal high-tech hubs, like the Bay Area and New York, to tap skilled people who want jobs in the technology economy without leaving the Midwest, where living costs are far less.

Monty Hamilton, a former Accenture consultant, took over Rural Sourcing in 2009, when it had just a dozen employees. Today, the company has 300 workers in four delivery centers: in Albuquerque; Augusta, Ga.; Jonesboro, Ark.; and Mobile, Ala. The payroll will reach about 400 people by the end of the year, Mr. Hamilton said.

“Every business now realizes it’s a digital business,” he said. “They need technical help, and that’s really driven the demand for our U.S.-based talent.”