1. Training If cats don't live in cages voluntarily, they can be trained to get used to them. For example, gradually increase the time spent in cages, and then let them spend the night in cages. Giving them some toys and familiar things can help them adapt to the new environment.
2. Increase the comfort of the cage. Make sure the cage is warm enough, especially in cold weather. Put some soft blankets or cushions in the cage to make the cat feel more comfortable.
3. Ensure the safety of the cage. Make sure the cage door can be locked to prevent the cat from escaping. You can also consider adding a fence around the cage to increase safety.
Please note that if the cat keeps trying to escape, it may be because it is afraid or uncomfortable with the cage. In this case, it may be necessary to seek the help of a veterinarian.