Looks like a terrestrial caterpillar to me, but I'm no expert. Not sure I would be inclined to try to save them. If you don't want a pet moth, the only other alternative would be turning them loose outside and I wouldn't do that with any non-native species. Of course these may be a native species, but not sure how you would tell. Perhaps a really good closeup photo and post it on Reddit -they have a What is this bug sub frequented by professional and amateur entomologists alike. Bet someone there could give a positive ID.
Nothing good happens fast in an ecosystem.