Get started

From Claude to a live bot in 10 minutes

Install the Langbot plugin in Claude Code, let Claude find and test a strategy on recorded markets, run it as a preview on paper, then promote it to live on your own Kalshi account.

On this page

You will install the plugin, ask Claude for a strategy, watch it tested on recorded markets with real fees, run it as a preview on paper against live markets, and, if you choose, promote it to live on your own Kalshi account. Everything runs on Free. You need Claude Code, and for the last step a Kalshi account in the US.

1. Install the plugin (1 minute)

In Claude Code:

/plugin marketplace add langbot-ai/claude-plugins
/plugin install langbot@langbot

The first time Claude uses Langbot, your browser opens to sign in and approve Claude. There is no token to copy. Details: Langbot in Claude.

2. Ask for a strategy (2 minutes)

You: What can I do with Langbot? I follow the Fed.

Claude looks at the markets that move on what you follow (the Fed decision, the CPI print, the press conference) and the built-in strategies that fit them, and proposes one or two with their settings in plain words.

3. Test it on recorded markets (2 minutes)

Claude replays the strategy on several past events, on the order books Langbot recorded, with Kalshi's fees and at more than one reaction time, and tells you plainly how it did: trades, net after fees, the worst event, and whether the result held when the bot was slower. A loss is reported as plainly as a gain, with the reason.

Each server run counts against your monthly simulator runs (20 on Free); fetching an event's data does not. Claude says how many runs it used. See Simulator and backtesting.

4. Run it as a preview (1 minute)

You: Run it on paper, $50.

Claude deploys a preview: version 1 of your bot, trading on paper against live markets, around the clock, with the guardrails on. It sends you the bot's page on langbot.ai/app/bots, where you see its fills, positions, P&L after fees and its log. You can also start one from that page with New bot, or from a terminal:

Terminal
langbot bots deploy "fed fader" --strategy fade_longshots --series KXFED --budget 50

Change anything (a parameter, the markets, the budget) and a new preview version replaces the old one. Free runs 3 paper bots at once.

5. Promote it to live (3 minutes)

You: Take it live with $50.

Claude gives you one link: the bot's Connect Kalshi page. Keys are entered there, never in the chat. Paste a Kalshi API key once, confirm the budget, and Langbot:

  1. creates a Kalshi sub-account and moves only your budget into it;
  2. creates a new key restricted to that sub-account that can read and trade, and nothing else;
  3. stores only that key, encrypted. The key you pasted is not kept.

Kalshi itself now caps the bot at the budget, and Langbot can never move your money. Claude sees the setup finish, asks you to confirm, then promotes the preview to live. Free runs 1 live bot. Every step and the fallback for accounts without sub-accounts: Hosted bots.

6. Watch, roll back, stop (1 minute)

  • Logs and P&L: ask Claude "how is my bot doing?", open the bot's page, or langbot bots logs "fed fader" -f.
  • Roll back: every change is a version. "Roll back to v1" runs v1's configuration again, on paper or live, in one step (langbot bots rollback "fed fader" <deployment>).
  • Stop: "stop" always works, from Claude, the page or langbot bots stop all. A live bot stops trading and cancels its resting orders within seconds.

What next