You can exercise a pet indoors by engaging in activities such as playing fetch in a hallway or a spacious room, setting up an obstacle course for them to navigate, using interactive toys like laser pointers or feather wands for cats, or playing hide and seek with treats for dogs. Additionally, you can consider indoor pet exercise equipment like treadmills or puzzle feeders to keep them active and mentally stimulated.