How to Get Your Steam Auth Code
Connect your Steam account to sync recent CS2 matches automatically — no manual file hunting required.
Go to cs2replays.com and click the Sign in with Steam button. You'll be redirected to Steam's login page. After signing in, Steam redirects you back to your CS2 Replays dashboard.
This uses Steam OpenID — a standard login protocol. CS2 Replays receives your Steam ID and public profile name only. Your password never leaves Steam.
In a new tab, open this Steam support page:
steam: CS2 Game Authentication Codes →
You must be logged into Steam in the same browser. If Steam prompts you to log in again, do so and then revisit the link.
On the page, scroll down to the section titled Game Authentication Codes. Click the Create Authentication Code button.
Steam will generate a code in the format XXXX-XXXXX-XXXX. Copy this code — you'll need it in the next step. The code is valid for approximately 24 hours.
Back on cs2replays.com, click the ⟳ Sync button (or + Add Matches if it's your first time). Paste the auth code into the Game Auth Code field and click Fetch Matches.
CS2 Replays will fetch your recent competitive match IDs from Valve and start downloading the demos in the background. Matches appear in your history as they complete.
Code Expiry and Regeneration
Steam Game Auth Codes are valid for approximately 24 hours. After that, syncing will stop working and you'll see a "no matches found" or auth error message.
To regenerate: return to the Steam auth code page, click Create Authentication Code again, and paste the new code into the Sync dialog. You only need to sign in with Steam once — the code is the only thing that needs refreshing.
Why Is a Code Needed?
Valve's match history API requires an authentication token to identify which account's matches to fetch. This is separate from your Steam login — it's a scoped, temporary token that Valve issues specifically for CS2 match history lookups.
CS2 Replays sends this code directly to Valve's servers to retrieve your match IDs. The code is not stored on our servers — it lives only in your browser's localStorage.
Privacy Setting Requirement
For match sync to work, your CS2 game details must be set to public in your Steam privacy settings. To check:
- Go to your Steam profile → Edit Profile → Privacy Settings
- Set Game details to Public
If your game details are private, Valve's API returns no match data regardless of the auth code.
Troubleshooting
- "No matches found": Your code may have expired. Generate a new one and try again.
- Matches are missing: Only ranked competitive matches are returned by Valve's API. Casual, deathmatch, and other modes are not included.
- Code doesn't work after pasting: Make sure you copied the full code including any dashes. The format is
XXXX-XXXXX-XXXX.
More questions? See the Steam Sync section of the FAQ or email [email protected].