🪓 Valheim Inventory Editor: a Claude Code skill for Valheim save files (.fch)

"Odin sees everything. He just doesn't read save files."
Valheim Inventory Editor is an open-source Valheim save editor packaged as a Claude Code skill and plugin. Tell Claude "give my viking 200 iron" and it edits your Valheim character file (.fch): it adds items, resources, coins and arrows, sets exact amounts, removes junk and duplicates gear. No console, no devcommands, no BepInEx mod, no hex editor. Every change comes with an automatic backup and a byte-exact verification.
It works with Steam Cloud saves, local characters, dedicated servers and multiplayer worlds (your inventory lives on your PC), on Windows, plus Linux and Steam Deck paths.
Why?
You spent 14 hours in the Swamp. Three Blobs poisoned you, a Draugr shot you with your own bow, and a Troll used you as a golf ball. Final haul: 3 iron.
You've earned this. This skill brings you the rest.
✨ Features
| You say | Claude does |
|---|
| "Show me my inventory" | list: every slot with amount, quality, durability and crafter |
| "Give me 200 iron" | add Iron 200: tops up existing stacks and splits the rest into proper stacks |
| "I want exactly 50 fine wood" | set FineWood 50 |
| "Get rid of the fire arrows" | remove ArrowFire all |
| "Copy that helmet" | dupe 7 3: an exact copy, unequipped |
| "MORE GOLD!" | add Coins 3000: Haldor approves |
- 🗣️ Understands item names in English and German ("Core wood", "Kernholz",
RoundLog), mapped to Valheim prefab IDs via a built-in item list
- 📦 Respects max stack sizes: 200 iron becomes 7 stacks of up to 30, not one 200-stack that the game would silently cut to 30
- 💾 Automatic backup before every write
- ✅ Verified writes: recomputes the SHA-512 checksum and re-reads the file before replacing the original
- 🛑 Refuses to write while Valheim is running, because the game would overwrite the change
- 🧭 Finds your character automatically (Steam Cloud and
characters_local)
🚀 Quick start
You need Claude Code, Python 3.8+ and Valheim on PC.
Install as a plugin (inside Claude Code):
/plugin marketplace add cubetribe/valheim-inventory-editor
/plugin install valheim-inventory@valheim-inventory-editor
Or install manually: copy skills/valheim-inventory to ~/.claude/skills/ (Windows: %USERPROFILE%\.claude\skills\).
Then quit Valheim completely (the main menu doesn't count) and just ask:
Give my character Ragnar 100 iron and 50 fine wood.
💬 What it looks like
You: I need 200 iron, the smelter hates me.
Claude: Valheim is still running, so this is not applied yet. Dry run: Iron 3 → 203 in 7 stacks. Quit the game completely and I'll write it.
You: closed.
Claude: Applied. Backup created, file verified. Start Valheim, and mind your carry weight, Jarl.
🛡️ The safety belt
Save files are sacred. So:
- Backup first, every time:
~/valheim-inventory-backups/backup_<name>_<date>_<time>
- No writes while Valheim runs. Otherwise the game overwrites your shiny new iron on its next save.
- Checksum recomputed and verified. The new file is fully re-read before it replaces the original.
- Unknown save format? Abort. After a game update the script would rather refuse than turn your viking into a Greydwarf.
- "It didn't work"? The skill checks the file and the game log before re-applying, so nothing gets doubled.
⚙️ How it works
Valheim keeps each character in a .fch file: a length-prefixed data block followed by a SHA-512 hash. Inside it sits the player data block with the inventory. In the current format (inventory v110) every item is stored compactly as durability, slot, flags, optional quality/stack/crafter, and the StableHash of its prefab name (Iron, Coins, …).
The bundled Python script parses exactly that, edits only the inventory section, and leaves everything else byte-identical: map, skills, recipes and stats. The full byte layout is documented in references/format.md, along with how to re-check it after a game update.
❓ FAQ
How do I add items to my Valheim inventory without the console or cheats?
Install this skill, quit Valheim and ask Claude for the items. It edits your character save directly, so you need no devcommands, no admin rights and no mods.