ㅋㅋㅋ님,
In order to take USPTO patent agent exam, you don’t need to be a U.S. citizen or permanent resident, but you do need to be authorized to work in the U.S. Even aliens who are already employed by a patent firm as a scientist or technical specialist may take the exam in order to gain limited recognition to act as a patent agent for application being handled through their employer. But to be employed by USPTO, you must be a U.S. citizen.