Yes, you can keep shrimp with rainbow sharks. Even though rainbow sharks are typically aggressive towards bottom-dwelling fish, they can tolerate shrimp well because shrimp won’t fight or disturb rainbow sharks for food.
Plus, shrimps are so small, rainbow sharks may have difficulty finding them in the first place.
The best shrimp to keep with rainbow sharks are ghost shrimp. Because ghost shrimp are transparent, they’re harder for rainbow sharks to spot. Moreover, rainbow sharks typically only eat creatures they’re familiar with. Because ghost shrimp don’t look like normal rainbow shark prey, they’re unlikely to get eaten.