Even the open source initiative uses both : http://opensource.org/osd
I suggest using "Open source" in titles and "open-source" everywhere else. From what I see, the use of "open-source" seems to be prefered in when used as a direct adjective (ex. an open-source software) but not quite often in other cases (This is open source).