This is a charger for either manual or automatic 510 batteries. It will plug into any usb port, usb hub or usb power adapter.
Red light means it is charging and green light means the charge is complete.
Looks to contain charge components (probably 200ma output). Nice small size could easilty fit into a mod to provide charge capabilities.