Sammy unlocks after you defeat a total of 6,000 Sammy the Caterpillar enemies in Lake Foscari. Here is the best place to farm them, what Sammy costs and how to play the gold-eating caterpillar.
Sammy is a playable caterpillar from the Tides of the Foscari DLC. To unlock Sammy, you need to defeat a total of 6,000 Sammy the Caterpillar enemies, which only appear in the Lake Foscari stage, and then buy Sammy for 50,000 gold.
The kills add up over all of your runs, so you can split the 6,000 over as many runs as you like. Sammy is also one of the best characters for farming gold, which makes the high price worth it.

You can check your progress at any time in the Bestiary. The Sammy the Caterpillar entry shows how many you have defeated so far.
Normal waves in Lake Foscari only send a few Sammies: one swarm at the very start of the run and a 50% chance of more at 6:00 and 7:00. That is far too slow for 6,000, so head for one of the two special areas where Sammies are the only enemy that spawns.
The better spot is a hidden forest area northeast of the start, past the hedge maze. Hundreds of Sammies keep crawling through it for as long as you stay. The second spot, west of the start near the Little Clover patch, also spawns them, but much less often.

In the video we reached the forest area at about 1:45 into the run, so the walk is short once you know the way.

Sammies do not chase you. They crawl sideways across the screen in rows and have only 10 HP, so wide weapons that hit everything nearby work best. Garlic, King Bible, Pentagram and Whip are all good picks.
Our run used Genevieve with Garlic, Whip and Ophion and finished at 16:06 with 32,787 enemies defeated, which was enough for the whole 6,000 in one go.
Once you pass 6,000, the run's results screen shows the achievement "Defeat a total of 6000 Sammies." You can end the run straight away. Go to the character selection screen and buy Sammy for 50,000 gold.

Because Sammy levels up from gold, Greed and Gold Fever help much more than usual. Gold Fevers also last 1.25 times longer with Sammy, and reaching level 30 starts one by itself while "Happy Birthday" plays.
The low Might early on makes the first minutes slow, so pick up damage items before you rely on Vicious Hunger. Sammy works even with the Game Killer Arcana, which stops normal experience gems.
Note: This guide was checked against Vampire Survivors patch 1.16.111, which raised the gold Vicious Hunger gives after it had dropped in an earlier fix.
If you only want to try Sammy, cast the spell "happybirthday" in the Secrets menu. The Secrets menu appears once you own the relic from How To Unlock The Forbidden Scrolls Of Morbane, and every other spell is in All Available Cheat Codes.