Anxiolytic agents which are racemic or optically active pyrido[1,2-a]pyrazine derivatives of the formula ##STR1## wherein x is N or CH and Y represents one of certain pyrazolo, triazolo, tetrazolo or cyclic imido radicals; and intermediates therefor.