For the most part my cats seem to know..."this bird is a pet" so they don't bother much with him. But if they do try....a water gun does the trick. They now think bird means water and they don't like water.

Same way I trained them to not use the house plants and a kittty box.