Jump to content
Setting up an AI agent? ReverseEngineering.wiki skill (works from the command line, no configuration): https://reverseengineering.wiki/skill/rewiki/SKILL.md · setup for every client, including MCP: https://reverseengineering.wiki/llms.txt · REWiki:Connect

Format:Steam appinfo and packageinfo

From ReverseEngineering.wiki
Format
Developer Valve
Extensions .vdf
Endianness little
On this wiki Facts · Code · Notes · Topics

Steam client cache files appcache/appinfo.vdf and packageinfo.vdf: a small header (magic plus version 39-41, universe) followed by records whose payload is binary KeyValues.

Overview

Both files are caches of Steam's app and package metadata. Records hold Format:KeyValues1 (VDF, ACF) binary payloads. Layout below was read in SteamDatabase/SteamAppInfo (MIT) at commit 32a4912, SteamAppInfoParser/AppInfo.cs and PackageInfo.cs.

appinfo.vdf

  • u32 magic: low byte is the version (39, 40 or 41), the upper 24 bits are 0x075644, so the file starts 27/28/29 44 56 07.
  • u32 universe (EUniverse, 1 = public).
  • Version 41 only: i64 offset of a string table; at that offset a u32 count and that many zero-terminated UTF-8 strings. Keys in the records are then int32 indices into this table instead of inline strings.
  • Records until an appid of 0: u32 appid, u32 size (bytes from the next field to the end of the record), u32 infoState, u32 lastUpdated (Unix time), u64 token, 20-byte hash (SHA-1 of the text form), u32 changeNumber, version 40+: 20-byte binary data hash, then the binary KeyValues tree.

packageinfo.vdf

  • u32 magic: version 39 or 40 in the low byte, upper 24 bits 0x065655 (bytes 27/28 55 56 06); u32 universe.
  • Records until subid 0xFFFFFFFF: u32 subid, 20-byte hash, u32 changeNumber, version 40: u64 token, then the binary KeyValues tree. There is no size field, so records must be parsed to be skipped.

See also Format:Steam client data files. Unverified: other version numbers than 39-41 exist in newer clients; the parser rejects them.

Code & repositories

  • https://github.com/SteamDatabase/SteamAppInfo @ 32a4912a9b49679cfc6a7c6f7988b39ba86b267a · license: MIT
    MIT parser for appinfo.vdf (v39-41) and packageinfo.vdf
    Tested on: source read, not run: source read · checked 2026-10-18; last activity 2026-10-13