Skip to main content Switch to mobile version wow-state 1.1.2 Read, query, and archive World of Warcraft character state snapshots exported by WoWState
pip install wow-state Copy PIP instructions
WoWState (wow-state) is a lightweight, zero-UI World of Warcraft addon and stdlib-only Python CLI designed so AI agents and coding assistants (Claude, ChatGPT, Codex, Gemini, Antigravity, custom scripts, etc.) can read, interpret, and analyze your live WoW character outside the game — with zero screenshots or manual copy-pasting.
Because WoW addons cannot write JSON directly to disk, WoWState exports your character state into SavedVariables/WoWState.lua (WoWStateDB), and the companion wow-state CLI auto-discovers that file and converts it into compact, token-efficient JSON tailored for LLMs (~80–90% smaller than raw Lua, stripping raw hyperlink codes and zero-valued noise).
Downloads & Directories: PyPI (wow-state) · CurseForge · Wago Addons · WoWInterface · GitHub Releases
Why Agents Use WoWState
Once wow-state outputs your character's live JSON digest, an AI assistant can answer concrete, personalized questions immediately:
Gear, stats & upgrades: "Compare my equipped gear and stats — which slot should I upgrade next, and am I hit/crit capped?"
Talents, rotation & action bars: "Look at my current talents, spellbook, action bars, and macros — what rotation should I use or what's missing from my bars?"
Professions, bags & crafting: "Check my bags, bank, and learned recipes — what can I craft or sell right now, and what materials am I short on?"
Quests, travel & endgame: "Look at my zone, active quest log, lockouts, and Great Vault — what quests should I turn in nearby or do next?"
Step-by-Step Instructions
1. Install the WoW Addon
Install WoWState into your Interface/AddOns/ directory using whichever method you prefer:
Addon Manager / Directory: CurseForge: https://www.curseforge.com/wow/addons/wowstate
Wago Addons: https://addons.wago.io/addons/wowstate
WoWInterface: https://www.wowinterface.com/downloads/info27347-WoWState.html
Manual Release ZIP: Download WoWState-
From source: sh scripts/install.sh # or specify your AddOns folder explicitly: sh scripts/install.sh --addons "/path/to/World of Warcraft/_retail_/Interface/AddOns"
2. Capture & Flush Your State In-Game
WoWState automatically refreshes your snapshot in memory on login, level-up, gear changes, loot, quests, zone changes, and combat end, as well as on a 3-minute heartbeat — and WoW flushes SavedVariables/WoWState.lua to disk whenever you reload or log out:
Type /wowstate (or /wstate) in chat whenever you want to capture fresh state and immediately write it to disk (triggers a clean UI reload outside combat).
Optional (one-time per session / update): Open your Bank once (BANKFRAME_OPENED) to snapshot Character Bank, Reagent Bank, and Warband Bank contents (automatically carried forward on later collects).
Open your Profession window(s) once (TRADE_SKILL_SHOW) to record all learned recipes per profession.
/played time is captured automatically shortly after login (TIME_PLAYED_MSG).
3. Let Your AI Agent Read It (uvx wow-state)
Run wow-state with zero installation using uvx (uses only Python 3.10+'s standard library), or install it once from PyPI:
What Data & Stats WoWState Saves
All sections run inside isolated xpcall handlers with multi-flavor fallbacks across Retail, Mists Classic, Cataclysm Classic, TBC Classic, Classic Era, and custom 16001 builds, combat deferral, burst coalescing, and keep-last-good merge on teardown.
Character Stats (stats)
Resources: health, healthMax, primary power / powerMax / powerToken (MANA, RAGE, ENERGY, FOCUS, RUNIC_POWER, etc.), plus class-gated secondaryPowers (comboPoints, runes, soulShards, holyPower, chi, arcaneCharges, essence).
Primary Attributes & Item Level: itemLevel (overall, equipped, pvp) and attributes (strength, agility, stamina, intellect, spirit — each with base, effective, posBuff, negBuff).
Defense & Resistances: armor & armorParts, defense (base, modifier, total), dodge, parry, block, blockValue, and elemental resistances (fire, nature, frost, shadow, arcane).
Melee & Ranged Combat: attackPower (+ attackPowerParts), meleeDamage (mainHandMin/Max, offHandMin/Max, mainHandSpeed/offHandSpeed, percent), critChance, hitModifier, meleeHaste, expertise (mainHand, offHand, ranged), armorPenetration, rangedAttackPower (+ rangedAttackPowerParts), rangedDamage (min, max, speed, posBuff/negBuff, percent), rangedCrit, and rangedHaste.
Spellcasting & Regen: spellCrit + spellCritBySchool (holy, fire, nature, frost, shadow, arcane), spellBonusDamage by school, spellBonusHealing, spellHaste, spellHitModifier, spellPenetration, manaRegenBase, and manaRegenCasting.
Secondary / Tertiary Ratings & Speed: haste, mastery, masteryBonus, versatility (damageDone, damageTaken, rating), leech, avoidance, speed, full non-zero combatRatings (rating and bonus for hit/crit/haste/dodge/parry/block/expertise/ArP/mastery/versatility/resilience/etc.), and movementSpeed (current, run, flight, swim).
Full Snapshot Sections
character: name, realm, class, race, faction, level, xp, xpMax, restedXP, gold / goldCopper, bindLocation, guild (name, rankName, rankIndex), isPVP, and playtime (total, level, totalSec, levelSec).
location: zone, subZone, mapName, mapID, x/y coordinates (0–100%), and continent (open world) or instance (name, type, difficultyID, difficultyName).
equipment & Bags: Equipped gear for slots 0–19 (slotName, name, itemID, quality, itemLevel, durability/durabilityMax) plus equipped bag slots 1–5.
inventory, bank, reagentBank, warbandBank: Raw slot-by-slot stacks in SavedVariables; automatically aggregated by item into { itemID, name, count } + totals in the AI JSON digest, with bankCapturedAt freshness timestamps.
skills & recipes: Professions, weapon skills, defense, and languages (rank, maxRank, modifier), plus per-character learned recipes per profession (learnedCount, totalAvailable, capturedAt, recipes).
talents, spellbook, actionBars, macros: Classic talent tabs + spent talents, Retail specialization, loadout name/import string, hero talent spec ID & purchased trait nodes; highest-rank-collapsed spellbook by tab; action bar slots 1–180 (with item/spell name resolution); and account/character macros (name, body).
quests, reputations, currencies, buffs, debuffs: Active quest log (title, id, level, complete, failed), completed quest count & IDs (questsCompleted, up to 4000), faction reputations (standing name, within-tier bar/barMax), currencies (name, quantity, maxQuantity), and active buffs/debuffs (stack count, remaining duration).
collections, pvp, endgame, pet: Owned mount count & mount names, achievement points; lifetime/session/yesterday HKs, PvP rank, honor level, rated brackets (2v2, 3v3, RBG, Solo Shuffle, Battleground Blitz); instance lockouts, world bosses, Mythic+ score/keystone/weekly runs, Great Vault progress; and active pet/companion stats (name, family, level, health, power, xp, happiness, loyalty, attackPower, armor).
Features & Resilience
Self-healing & combat-safe: Every collector section runs inside xpcall; Collect() is pcall-guarded with re-entrancy protection, burst coalescing (trailing collect on rapid loot/bag events), combat deferral (PLAYER_REGEN_ENABLED catch-up), scheduled timers, a 30s/180s OnUpdate watchdog, and native ADDON_LOADED SavedVariables sync across sessions.
Keep-last-good merge: Torn-down logout or early-login collects never overwrite populated character sections with empty/zeroed state, and restricted/secret client values are safely ignored.
Multi-flavor TOC support: Ships with a multi-flavor ## Interface: manifest for Retail (Mainline), Mists of Pandaria Classic (Mists), Cataclysm Classic (Cata), TBC Classic (TBC), Classic Era (Vanilla), and custom 16001 builds.
Zero-dependency Python parser & archiver: Parses WoW's Lua SavedVariables (including \ddd UTF-8 byte escapes and long strings) using only Python's standard library, with auto-discovery across Windows, macOS, Wine/Steam, and custom WoW folders.
In-Game Slash Commands
/wowstate or /wstate (also /wowstate save) — refresh the snapshot and immediately reload the UI to flush SavedVariables/WoWState.lua to disk
/wowstate collect — refresh the snapshot in memory only (without reloading the UI)
/wowstate status — print addon version, load count, collect counts, and last collect status
/wowstate help — show slash command usage
Inspect SavedVariables (wow-state)
# Print a compact AI-ready JSON digest for the latest character (default; --only names are case-insensitive) wow-state wow-state --only character,stats,equipment wow-state --character "Lyra" --indent 2 wow-state --all # Discover SavedVariables files or list characters wow-state --discover wow-state --list # Print a compact human-readable summary wow-state --summary wow-state --summary --character "Lyra" wow-state --summary --all # Query a single raw section as JSON (Lua sequences become arrays; --no-arrays keeps raw keys) wow-state --section inventory wow-state --section equipment wow-state --section questLog wow-state --section recipes # Dump the entire raw parsed SavedVariables file as JSON wow-state --raw path/to/SavedVariables/WoWState.lua # The path may also be a WoW install, flavor, account, or SavedVariables folder wow-state "/Applications/World of Warcraft" Environment variables:
WOW_STATE_SV: explicit path to WoWState.lua
WOW_DIR: additional World of Warcraft root directory to scan during --discover
Archive Snapshot History (wow-state-archive)
World of Warcraft overwrites SavedVariables/WoWState.lua on every /reload or logout. Archive changed snapshots along with validated .json sidecars:
wow-state-archive --dest ./history The archiver hashes only the Lua data portion (ignoring any optional bootstrap carrier), writes atomically, and skips unchanged files.
Package addon ZIP: sh scripts/package.sh writes dist/WoWState-
macOS launchd templates: see extras/launchd/README.md for scheduled background archiving.
Custom-client SavedVariables carrier: see extras/sv-carrier/README.md (only needed for private/custom clients that pin addon files after first load).
Development & Testing
# Run the Lua test harness under both LuaJIT (Lua 5.1) and Lua 5.4 luajit tests/lua/harness.lua lua tests/lua/harness.lua # Run the Python test suite python3 -m pytest -v # Lint shell scripts shellcheck scripts/*.sh extras/sv-carrier/*.sh extras/launchd/*.sh License
MIT License — see LICENSE.
Released: Dec 5, 2026
Author: Brian Sunter
Both files in this release have provenance metadata.
View provenance details
MIT View SPDX License List
world-of-warcraft wow addon savedvariables lua cli ai agent
Development Status 5 - Production/Stable
Intended Audience Developers
Operating System OS Independent
Programming Language Python :: 3
Topic Games/Entertainment :: Role-Playing
Release files for wow-state 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 88.4 kB
Release files / wow_state-1.1.2.tar.gz
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 5, 2026.
Release files / wow_state-1.1.2-py3-none-any.whl
Security for wow-state 1.1.2
Both files in this release have been uploaded with provenance metadata.
With provenance wow_state-1.1.2.tar.gz Dec 5, 2026
With provenance wow_state-1.1.2-py3-none-any.whl Dec 5, 2026
Attestation for wow_state-1.1.2.tar.gz
Attestation for wow_state-1.1.2-py3-none-any.whl
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Dec 5, 2026 2 release files Full provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation
Deployed from 4d99e05











