Combine the crab meat in a large bowl with the mayonnaise, mustard, lemon juice and zest, coconut aminos, apple cider vinegar, spices, salt, and herbs. Mix gently with your hands until well combined, taking care not to break up the lumps of crab up too much. Mix in egg and coconut flour. Refrigerate mixture for 30 minutes to an hour so flavors can combine.
Just before cooking, preheat oven to 350 degrees and line a baking sheet with parchment paper.
Heat a tablespoon of coconut oil in a skillet over medium heat. Form crab batter into fairly compact 1/4 cup patties and when oil is hot, taking turns, carefully place crab cakes in pan and fry until browned, about 3 minutes. Carefully flip crab cakes and fry on other side until golden brown, about 3 minutes. Place on baking sheet and put in oven to cook through, 5 minutes. Serve with homemade tartar sauce or lemon on the side.