Trader's B · Bring your own keys

Your keys. Your accounts. Your bot.

A Trader's B copy is the same code as the flagship, running on your own accounts. You bring a Kalshi key and an AI brain key (Claude, OpenAI or Meta Muse; any one will do); the copy trades your account and only your account. Nothing runs on our servers, our infrastructure carries none of it, and your keys never pass through our hands.

New here? Start the walkthrough

Keys live in your copy

You type your keys into your own copy, under Settings ⚙ → Connect accounts. They are stored encrypted in your copy's own database, and the app never shows a saved key again.

The host cannot read them

Whoever set your copy up gave it a vault secret and never sees what you paste. Clear the keys on the same screen and the copy forgets them.

You can always walk away

Revoke the API key at Kalshi and the copy is cut off at the source, whatever it is doing. The kill switch inside the app stops new entries at once.

Setup

Six steps, about ten minutes.

  1. Open your copy and sign in

    Your host gives you your copy's link (for example https://your-copy.vercel.app) and a passcode. Open the link, sign in with the passcode, and add it to your home screen so it runs like an app.

  2. Get a Kalshi API key

    At kalshi.com: Account & security → API keys → Create key. Save the Key ID and download the private key file. Kalshi shows the private key once; keep the file somewhere safe.

  3. Get an AI brain key (any one)

    Your brain is the AI that talks with you, drafts patterns and writes plans and suggestions. Pick whichever you already have or prefer: Claude at console.anthropic.com (API Keys → Create Key), OpenAI at platform.openai.com (API keys → Create new secret key), or Meta Muse from the Meta Model API. Add a few dollars of credit with that provider; your brain spends from your own balance, and you can watch and cap it there. You can connect more than one and switch later.

  4. Connect accounts inside the app

    In your copy: Settings ⚙ → Connect accounts. Paste the Kalshi Key ID, the whole private-key file, and your brain key. Choose Demo to practise on Kalshi's practice exchange or Real money for your live account, then tap Save keys. The status line should say connected and show your Kalshi balance. Then, under Your AI brain in Settings, choose how your brain works: My brain only, or Dual brain (your brain, with the shared market backdrop as context). (That screen is powered by the app's own /api/keys endpoints, behind your passcode; it appears when your host enabled the vault with a VAULT_SECRET.)

  5. Start in Paper mode

    Paper mode runs the whole machine on real prices with pretend money. Watch it for a few days, read its calls against the public record, then decide for yourself whether to switch to Approve or Auto. The daily loss limits, the 1.5× trial and the kill switch work the same in every mode.

  6. Make it yours (optional)

    Settings ⚙ → App name takes a nickname of up to 30 characters. It shows in your header, on your login screen, on your home screen and on your PDFs. Leave it blank to keep the copy's default name. The autonomous trader's rule settings live on the trading patterns page.

For hosts

Setting a copy up for someone else.

A copy is a second Vercel project from the same repository, with its own name, its own space in the database and its own secrets. The full walkthrough lives in the repo: SETUP_COPY.md and DEPLOY_VERCEL.md. The short version:

Environment variableValue for a copy
APP_NAMEThe copy's name, e.g. Trader's B
DB_SCHEMAIts own schema in the shared database, e.g. traderbs
DATABASE_URLThe same Supabase connection string as the original
MAXKS_PASSCODEA fresh 8+ character passcode for the copy's owner
CRON_SECRETA fresh 32+ character secret; Supabase Cron calls the copy every minute with it
VAULT_SECRETA fresh 32+ character secret that encrypts the owner's saved keys. Never change it later; that would lock the saved keys away

Do not set ANTHROPIC_API_KEY, KALSHI_API_KEY_ID, KALSHI_PRIVATE_KEY or KALSHI_ENV on a copy: the owner enters their own keys in the app (step 4), and environment keys would override theirs. Check /api/health after deploying; it should report "database": "postgres". Note that Vercel's free Hobby plan is for personal, non-commercial use; a copy someone pays for needs the Pro plan.

Before you run it

What to know, plainly.

This is software that trades your own Kalshi account with your own keys, and results can be losses, including the whole amount you put at risk. Nobody can promise profits, and past wins, ours included, are not typical results; the flagship's full record, losses and all, is on this site for exactly that reason. You are responsible for your Kalshi account, your Claude bill and every trade your copy makes. Start in Paper, keep the loss limits on, and only run money you can afford to lose.