To receive a Certification of U.S. Tax Residency, you have to send in Form 8802 with the appropriate personal information to the IRS. You cannot request Form 6166 without first filing Form 8802, and you must refile for every tax year you're requesting the treaty benefits.