The BOINC source code is available here. Its use is subject to the BOINC public license. The "nightly" directory contains the most recent tarballs.