Blair, Scotland's most capped number nine with 80 Test appearances, joined Edinburgh in 2002 and has played in more than 150 matches in his 10 seasons with the club.
The 30-year-old, who toured South Africa with the British and Irish Lions in 2009, said: "Being born and raised in Edinburgh, I've played all my rugby here and have been committed to Edinburgh Rugby my entire professional career.
"It's been an honour to represent the club which, over the years, has helped me fulfil my ambitions of becoming a regular for my country and earning selection for the Lions.
"I've enjoyed myself so much here and feel I've achieved a lot, which has made this a very hard decision to make, but the time is right for me personally to throw myself at a whole new challenge.
"Rugby offers many opportunities and experiences and, while I believe that this may be one of the most exciting times to be an Edinburgh Rugby player, I don't want to regret not trying something different when I finally hang up my boots.
"I'm absolutely committed to Edinburgh Rugby until the end of the season and will do everything in my power to go out on a high, while I remain absolutely committed to playing for Scotland."
Blair made his 50th Heineken Cup appearance in last Saturday's quarter-final win over Toulouse, which set up a last-four meeting with Ulster in Dublin on April 28.
Edinburgh head coach Michael Bradley, a former Ireland scrum-half, said: "He's one of the most naturally gifted scrum-halves of this era with a fantastic eye for a break. He is a top-class controller of the game.
"He's been an incredible servant to Edinburgh Rugby and Scotland for a decade and we wish him all the best in the seasons ahead."
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.
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.