The correct spelling is antidote. It means a medicine given against some poison or other disorder of the body, such as snakebite. So the 'anti-' is the fossil of the Greek word for 'against'. Do not let the spelling of the word be influenced by that of 'anecdote' -
antedote is an error.