A crooked fossil dealer agreed to forfeit at least six dinosaur skeletons — along with some “odd bones here and there” — in a bid to avoid the slammer for smuggling the prehistoric remains into the U.S.

Eric Prokopi, 38, also promised to help federal authorities pursue the accomplices who aided his scheme to sell looted Cretaceous Period relics from Mongolia and China.