How does the gameshark work?

Do i need to put a cd in my hardware to use it or is there another way to launch the game with the codes?