Technically, it is neither a coin, nor a token. It is a "fantasy replica" - not a coin, but designed to kind-of-look-like a coin. Fantasy coins like this, if one must put them somewhere on the "coin vs token vs medal" grid, are "medals".
Classifying it as a "charm" would seem a bit presumptuous to me; no doubt, many of these replicas did end up on charm bracelets, but I'm not sure it was the manufacturer's original intent. Most of these California fantasy gold pieces seem to date from the 1960s and the centennial of the gold rush, sold as souvenirs, and the gold used to make them was actual California gold (or at least, that's what the sellers would claim). Making "gold miniature coins" out of 8K gold for use as charms in jewellery became fashionable in the 1980s, with production mainly from Mexico, but the design for these miniatures was usually copied from larger gold coins, like the US double-eagle or Mexican onza.
Don't say "infinitely" when you mean "very"; otherwise, you'll have no word left when you want to talk about something really infinite. - C. S. Lewis