> For the complete documentation index, see [llms.txt](https://docs.restock.gg/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.restock.gg/problem-solving/tutorials/stockx-login.md).

# StockX Login

The recommended way to connect StockX is **StockX Browser Login**. This opens the normal StockX login page in your browser and lets StockX handle the login method attached to your account.

Once connected, RestocksAIO handles your StockX listing, pricing, and sales automation — see the [StockX automation overview on restock.gg](https://restock.gg/platforms/stockx).

This works with:

* Email and password
* Passkeys / Windows Hello
* Bitwarden or browser password managers
* SMS or email verification when StockX requests it
* Cloudflare or captcha checks shown by StockX in the browser

RestocksAIO does not need to read your passkey or browser password. After StockX approves the login, the browser sends the approved callback back to RestocksAIO and the tool saves the account session.

## Browser Login

1. Open **Settings > Accounts**.
2. Select **StockX** as the account site.
3. Click **StockX Browser Login** next to **Cookie Importer**.
4. Complete the login in the browser window that opens.
5. If Windows asks whether to open RestocksAIO from the browser, allow it.
6. Wait until RestocksAIO finishes saving the profile.

<figure><img src="/files/EXq09wOD8K3qgXWfmG2e" alt=""><figcaption><p>The StockX Browser Login button appears in the StockX account view next to Cookie Importer.</p></figcaption></figure>

{% hint style="info" %}
Use this option first if StockX is not sending SMS codes. If your account supports passkey login, Windows Hello, Bitwarden, Chrome, or another password manager can complete the login in the browser.
{% endhint %}

## If the Browser Does Not Return to RestocksAIO

Keep RestocksAIO open while logging in. The browser needs to hand the approved StockX callback back to the running app.

If nothing happens after login:

1. Click the browser login button again.
2. Approve the browser prompt to open RestocksAIO, if shown.
3. Make sure your default browser is not blocking external app links.
4. Close duplicate StockX login tabs and retry from RestocksAIO.

## Cookie Fallback

If browser login is unavailable, you can still use the cookie fallback. This is mainly useful for troubleshooting or when support asks for it.

We will log in to StockX using the value of their security cookie. If you don't know how to get the value of a cookie, you can download a cookie extension to export it; the link is [here](https://chromewebstore.google.com/detail/cookie-editor/hlkenndednhfkekhgcdicdfddnkalmdm).

1. Go to [https://stockx.com/](https://stockx.com) and reload the page. While on the StockX website, open the extension and search for "\_px3". If you can't find "\_px3", try logging into the bot more frequently and refresh the StockX website. Repeat this process until you encounter a captcha. After solving the captcha, you should be able to find "\_px3" in the extension. You can also browse for different products which may make it appear.

<figure><img src="/files/udNZ9ZdXZej23lDsOwH4" alt="" width="422"><figcaption><p>Copy the _px3 cookie value.</p></figcaption></figure>

2. After copying the value, paste it into the tool and hit log in.

<figure><img src="/files/tXVraDCFHW9jgYwvGtXX" alt=""><figcaption></figcaption></figure>

The account should have logged in, if it didn't, repeat the process. If you are stuck, feel free to contact us and we will help during the process.

{% hint style="warning" %}
Do not share your StockX cookies, login callback, access tokens, or refresh tokens with anyone except support when explicitly requested. Cookies and tokens can give access to your account.
{% endhint %}

### Additional Steps

If you don't have access to the public StockX API yet, make sure to ask. Otherwise, you will miss out on several features and may run into problems. Find out how to do this [here](/problem-solving/tutorials/how-i-can-get-access-to-the-public-stockx-api.md).
