Buckle up — self-driving cars have arrived in New York City.

Or at least to the confines of the Brooklyn Navy Yard’s 300-acre site, where, beginning Wednesday, workers and visitors will be able to hitch a ride on a fleet of six driverless shuttles around a mile-long loop.

Fatoumata Camara, a 24-year-old personal banker, told The Post she’d “absolutely” be riding the futuristic shuttles. “I think that self-driving cars fit the agenda of everything else in society today,” said the Bushwick resident.

“Everything is programmed to where computers do everything and we have less work to do.”

Optimus Ride, a Boston-based startup founded in 2015, is operating the robo-vehicles and has been testing them around the industrial hub since April.

Strict state laws have kept the Big Apple’s public streets free of the futuristic vehicles so far, and the new buggies will run only on the Navy Yard’s private roads.

They will contend with human-operated vehicles and pedestrians at the site with the help of range finders, cameras, GPS and other sensors to find their way around.

Each shuttle is manned by two people in the front seat at all times, just in case.

The vehicles can each carry four passengers and go up to 25 mph — but will have to adhere to the yard’s 15-mph speed limit.

On a recent ride, sensors made the robot car bounce every time it approached a stop sign or intersection. There was only one other car on the road, but the autonomous vehicle whizzed seamlessly alongside it. When a truck was in the way, it aptly went around.

For now, the shuttles will zoom to and from Cumberland Gate at Flushing Avenue and the NYC Ferry stop at Dock 72, which opened in May, every weekday between 7 a.m. and 10:30 p.m.

It is free of charge and open to all members of the public.

In the future, Sertac Karaman, the co-founder and president of Optimus, said he hopes to offer rides to other areas within the tech hub, which houses 400 companies and 10,000 workers.

Eventually, he’d like to take the technology outside the Navy Yard’s gates. “I expect there are other areas within New York that would also need something like this,” Karaman said.

Under current state law, companies are allowed to test their autonomous vehicles on public roads but have to get permission from the DMV and meet strict requirements, including having a State Police escort at all times.