All of those instances I named aside from the confederacy were AADOS fighting under their own governance, not the US military. And even aados fighting the confederacy didn't always happen under the US military.
Robert Smalls was a slave in Confederate territory who lead a group of other slaves rebel and capture a confederate ship and sale it to union waters. His actions, along with the
Island Mound battle encouraged Abe Lincoln to created the US colored troops in the civil war. He would later go on the captain a ship for the Union Navy.
Which wasn't the first time AADOS captured a ship either as aados slaves literally in chains did it in the
decatur mutiny and the
creole mutiny(the most successful slave ship rebellion ever).
Many AADOS defected from the US army during the Phillippines war to join the Filipino rebels in any unwinnable war against the US military, purely because of morals and principles. The most successful of which David Fagen led filipino troops in at least 8 battles against the US army, and rose to the rank of captain in the Filipino army. His most successful engagement was the capturing of a US steamboat.
David Fagen - Wikipedia
AADOS are the goat when it comes to capturing ships as you might be able to tell.