Connecting a bot to Kalshi: API keys explained (safely)
To trade for you, a bot needs a Kalshi API key. You create it in your Kalshi account settings. It comes in two parts: a key ID and a private key file, which you can only download once.
What the key can do
Anything you could do with orders on your account: buy, sell and cancel. It does not move money out of Kalshi, but a bad program could still lose your balance by trading. That's why the rules below matter.
Six rules for keeping it safe
- Only use a key with software you trust, and keep it on your own computer.
- Never paste the private key into a website, a chat, an email or a support ticket.
- Use a separate key for each program, so you can switch one off without breaking the others.
- Delete keys you no longer use in Kalshi's settings.
- Set a daily loss limit in the bot, and start with small bets.
- Check your Kalshi activity regularly - every order should be one you expect.
If something looks wrong
Delete the key in Kalshi's settings right away. That stops the bot instantly. Then contact Kalshi support if you see orders you didn't expect.