O'Leary has won two Heineken Cups and two Magners League titles with Munster.
The 28-year-old will replace former England scrum-half Paul Hodgson, who will leave London Irish for Worcester at the end of this season.
Capped 24 times, O'Leary was part of Ireland's Grand Slam-winning side in 2009 and he was selected for the British and Irish Lions tour to South Africa only for an ankle injury to rule him out.
"Joining London Irish presents a new and exciting chapter in my career and one that I am really looking forward to," O'Leary said.
"I have thoroughly enjoyed my time at Munster and the Heineken Cup triumph in 2008 will always remain a highlight.
"I'm looking forward to working alongside Brian and the coaching team and testing myself in the Aviva Premiership and playing alongside a very talented squad at London Irish.
"I have been lucky enough to be part of some winning teams at both Munster and Ireland and I hope to have even more success as a London Irish player."
Exiles director of rugby Brian Smith said: "Tomas will be a fantastic addition to our squad. He is a proven scrum half who has represented his country at the highest level.
"He will bring with him a wealth of experience and a winning mentality. We look forward to welcoming him to the club this summer."
Gilbert has released a new line of rugby cleats. The Gilbert Virtuo 8S is part of the exciting new product. Check it out.
The entire All Blacks apparel line has been updated for 2013/14. Check out the New Zealand All Blacks polo.
The Nike Tiempo is a solid rugby cleat and one of few styles still made from full-grain natural leather.
The Gilbert Blitz 8S rugby cleat is a great cleat at a great price of $69.99. Get a new pair of cleats today.
A cool looking all black rugby cleat with the high performance adidas is known for. Get in the Gear!
Wear the crest of the British and Irish Lions on your t-shirt. A great look for the summer.
$29.99
The All Blacks Performance t-shirt is black with hints of blue from the training jersey. Very Cool.
The New Zealand All Blacks training jersey for 2013/14. Get in the Gear!
The USA Rugby Pro Alternate rugby jersey is perfect for any fan of the Eagles. Get yours to wear during the summer Test matches.
The NEW All Blacks 2013/14 jersey has arrived at World Rugby Shop. Dare to wear the colors of the All Blacks.