You are eligible to claim the American Opportunity Credit is you are NOT filing as a Non-Resident Alien.
The following link clarifies who qualifies for this credit:
There is a new requirement for 2017 that requires a Federal EIN in order to claim the American Opportunity Credit. Without this number, you will not be able to claim the AOC but could be eligible for other educational benefits such as the Lifetime Learning Credit. You would need to contact the foreign school to see if they have a US Fed EIN, some of them do.
My spouse is in the same situation and I am getting conflicting answers on turbo tax community itself. Can someone really confirm it again? BDS is an undergrad US equivalent which clearly goes against AOC eligibility.
I've added some additional information to my original answer that may be helpful.
You are eligible to claim the American Opportunity Credit is you are NOT filing as a Non-Resident Alien.
The following link clarifies who qualifies for this credit:
There is a new requirement for 2017 that requires a Federal EIN in order to claim the American Opportunity Credit. Without this number, you will not be able to claim the AOC but could be eligible for other educational benefits such as the Lifetime Learning Credit. You would need to contact the foreign school to see if they have a US Fed EIN, some of them do.