The earliest automobiles and tractors ran on things like steam, or hydrogen, or electricity. (Ironically enough, considering that the last two are all cutting-edge today

) Wasn't too long before the first gasoline engines were developed, however, and AFAIK gasoline-powered autos had become the standard type by the early part of the century, certainly well before WWI. Not to say that farmers didn't run some tractors off different fuels of course, alcohol etc being readily homemade.
Petroleum has been, er, what do you call it, extracted?, in the US and distilled into various petroleum products (initially 'patent medicines' and kerosene, but soon branching out into other stuff like gasoline) since the first commercial oil well in Pennsylvania in the 1850s. (Trivia I ran across while fact-checking this post: John Wilkes Booth lost a small fortune he'd briefly made on an oil well, just before deciding to assassinate Lincoln. Coincidence? You decide

). By the turn of the century, Rockefeller, with Standard Oil, had already made a large fortune off oil refining and distributing, all across the US.
I can't (easily lazily) find any online citations for early US gas-powered vehicles running on domestically produced gasoline, but given that gasoline was among the petroleum products being made here, I am really pretty certain that it *was* domestically produced.
Pat