Rename the .env.sample to .env and set your Steam account credentials.
For security reasons, it's strongly recommended to:
- Create a separate Steam account dedicated to API access
- Gift the required game to this account
- Use a strong password
- Set the password in an environment variable rather than in
.envto avoid accidental commits
Now follow the instructions under development.
Follow the installation instructions of the official repository
Run uv sync to install all dependencies within a virtual environment for this project.
Rename the api_keys.json.sample in the poc_steam_proxy/ directory to api_keys.json with a list of api keys for authentication against the proxy.
For development you can use:
api_keys.json:
{
"dev1": "DEV1_API_KEY",
"dev2": "DEV2_API_KEY"
}NOTE: Set the path to the api_keys.json in the .env file as API_KEY_JSON_PATH if you want to store the keys in a different location.
⚠️ Note: Two-factor authentication (2FA) is currently not supported. The project uses basic username/password authentication. Theenable-2fa.pyscript and related 2FA functionality are deprecated.
To start the proxy server run uv run psp.
Then you can make calls to the proxy e.g. for endpoint /game/news/getNews call:
http://127.0.0.1:5000/relic/game/news/getNews
You need to supply a header with the api key e.g. api_key=DEV_API_KEY
All query params or post data that you add to the request will be forwarded to the relic api.
Insomnia_LibreMatchExamples.json contains an Insomnia collection with some example requests. You can set your
api_key and the base url for accessing the proxy in the Insomnia environment.
"AGPL-3.0-or-later", see License