Barack Obama visited Silicon Valley for a secret meeting with tech bosses after lunching with billionaire business magnate Warren Buffett.

It was the former President's first visit to the Bay Area since he left office in January.

Sources told NBC Bay Area that Obama had a meeting with tech bosses at the Fairmont hotel in downtown San Jose.

Barack Obama visited Silicon Valley for a secret meeting with tech bosses after lunching with billionaire business magnate Warren Buffett. He is seen greeting a child on the tarmac at Moffett Field airport on Monday

He kept is trip to the west coast low-key, after a string of appearances in New York that have drawn crowds

He posed for pictures with small crowd that gathered alongside his private jet

The former president is seen smiling as he leaves Upland Restaurant in New York after having lunch with wife Michelle and Bono

Several Secret Service agents could be seen around the hotel, and some guests said they saw Obama motorcade and bomb-sniffing dogs.

Others said the interior hallways of the hotel was packed with security, according to the NBC Bay Area.

Prior to arriving in San Jose from Washington DC, Obama stopped in Omaha briefly on Sunday to have lunch with billionaire Warren Buffett.

Buffett and Obama have a long-standing relationship that has included campaign support and economic policy advice.

In 2011, Obama awarded Buffett the nation’s highest civilian honor, the Presidential Medal of Freedom.

The 44th President has faced calls from liberals to spearhead the resistance against Trump while the Democratic party is mired in post-election disarray.

Obama has taken the highly unusual step of staying in Washington after the end of his term in office - but has so far resisted the temptation to speak publicly against his successor's policies.

Obama had a meeting with tech bosses at the Fairmont hotel in downtown San Jose (pictured)

The ex-President landed in Omaha on Sunday afternoon and was driven to Happy Hollow Country Club.

Susie Buffett said she and her father spent about 2½ hours together in a private room with Obama at the country club where her father is a member.

She declined to say what the three discussed during the lunch except that she said the meal wasn't a fundraiser.

The Buffetts both had Thunderbird salads and Obama had a taco salad.

The last time Obama visited Omaha was in January 2016 as part of a series of speeches he gave after his final State of the Union address.