> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getpanther.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Set up API trading

> Connect your own Kalshi and Polymarket API keys in the desktop app.

API trading connects Panther to your existing **Kalshi and Polymarket accounts** using API keys you create on those platforms. Your funds stay in those accounts and your keys are stored **only on your computer**.

<Info>
  API trading is **desktop only**. If you're setting up for the first time or want to trade from the web app too, use [on-chain trading](/trading/onchain-setup) instead.
</Info>

## Before you start

* The **desktop app** for macOS or Windows (API trading isn't available on web).
* A verified **Kalshi** account with API access, and/or a **Polymarket** account.

## Connect Kalshi

<Steps>
  <Step title="Create an API key on Kalshi">
    Sign in at [kalshi.com](https://kalshi.com), then go to **Account & security → API Keys** and create a new key. Save the **API Key ID** and the **private key** it gives you.

    <Warning>
      Your private key controls your Kalshi account. Never share it or paste it into any app you don't trust.
    </Warning>
  </Step>

  <Step title="Open Kalshi settings in Panther">
    In the desktop app, press <kbd>/</kbd>, type `STG`, and press <kbd>Enter</kbd> to open **Settings**. Choose **Kalshi**.
  </Step>

  <Step title="Enter your credentials">
    Paste your **API Key ID** and your **private key**, then choose **Validate & Save**. Panther checks the credentials and connects your account.
  </Step>
</Steps>

## Connect Polymarket

In **Settings**, open the **Polymarket** section and follow the prompts to connect your Polymarket account credentials, then save.

## Switch to your API trading account

Once connected, the account appears in the [account switcher](/accounts/switching) at the top of the Balances panel (labeled **Legacy**). Select it to trade through your Kalshi and Polymarket accounts. Switch away anytime to use your on-chain or demo accounts.

## Security

<Info>
  Your API keys are stored **locally on your device** and are never sent to Panther's servers. To disconnect, clear the credentials in Settings.
</Info>

## What's next

<Columns cols={2}>
  <Card title="Placing an order" icon="receipt" href="/trading/placing-orders">
    The order slip works the same across accounts.
  </Card>

  <Card title="Consider on-chain trading" icon="wallet" href="/trading/onchain-vs-legacy">
    Trade from web and desktop with self-custody wallets.
  </Card>
</Columns>
