How do you add a bot?

For Counter-Strike Source and Condition Zero you can use the official (preinstalled) bot. Enter the console and type bot_add. You can also use bot_kick to remove them. You can specify a certain number of bots by typing bot_quota <number of bots>. For Counter-Strike 1.6 you need to install a third-party-made bot.