Skip to content
Geeky Alien
DFHack - Dwarf Fortress Modding Engine

Screenshots

DFHack - Dwarf Fortress Modding Engine screenshot 1
Demo trailerWatch trailer on Steam ↗

DFHack - Dwarf Fortress Modding Engine

The DFHack Team · Published by The DFHack Team · Official site ↗

Overwhelmingly Positive — 99% positive (1,152 reviews)

Last updated 9 Nov 2026

Extensions for Dwarf Fortress, including bugfixes, interface improvements, automation agents, design blueprints, modding building blocks, and other tools.

Free to PlayDJCTQ l

Free

View on Steam

Prices can lag the live Steam store — always confirm before buying.

RPG, Simulation, Strategy · 2023 · More free games

Dive into a richly modded Dwarf Fortress experience crafted by The DFHack Team, where bugfixes and new tools transform your simulation and strategy gameplay.

About this game

DFHack is an add-on for Dwarf Fortress (search for it here on Steam!) that enables mods and tools to significantly extend the game. The default DFHack distribution contains a wide variety of these tools, including bugfixes, interface improvements, automation agents, design blueprints, modding building blocks, and more. Third-party tools (e.g. mods downloaded from Dwarf Fortress Steam Workshop or the forums) can also seamlessly integrate with the DFHack framework and extend the game far beyond what can be done by just modding the raws.

DFHack’s mission is to provide tools and interfaces for players and modders to:

  • expand the bounds of what is possible in Dwarf Fortress
  • reduce the impact of game bugs
  • give the player more agency and control over the game
  • provide alternatives to toilsome or frustrating aspects of gameplay
  • make the game more fun

Our online Quickstart Guide (see the "View the website" link in the sidebar) will help you get up to speed with how to use DFHack. It's also available in-game via the quickstart-guide command.

The best way to make feature requests or report problems is to open an Issue on our GitHub issue tracker (see the "Stats" link in the sidebar).

When reporting problems, links to your zipped, uploaded savegame and mods are immensely helpful, and issues with attached savegames and mods get fixed faster. We need a zip of your mods because we can't load your savegame without them.

DFHack installs itself directly into your Dwarf Fortress installation. It does this the first time you launch it, so you must launch DFHack once for this to happen. If you are on Linux, both games must also have the same "Compatibility" setting (e.g. "Steam Linux Runtime 1.0 (scout)") or this won't work.

It is not a problem if you already have DFHack manually installed and are switching to Steam. You can subscribe to the Steam version. Your saved DFHack configuration in the dfhack-config directory will be safe, and the DFHack launcher will detect and clean up your prior installation so it won't interfere.

System Requirements

Will my PC run this? →

Minimum

Minimum:
  • Requires a 64-bit processor and operating system
  • OS: XP SP3 or later
  • Processor: Dual Core CPU - 2.4GHz+
  • Memory: 4 GB RAM
  • Graphics: 1GB of VRAM: Intel HD 3000 GPU / AMD HD 5450 / Nvidia 9400 GT
  • Storage: 50 MB available space

Recommended

Recommended:
  • Requires a 64-bit processor and operating system
  • Processor: Dual Core CPU - 4GHz+
  • Memory: 16 GB RAM

Supported Languages

English

Latest news

  • Patch NotesOfficial

    DFHack 53.16-r4rc1

    Please report any issues (or feature requests) on the DFHack GitHub issue tracker. When reporting issues, please upload a zip file of your savegame and a zip file of your mods directory to the cloud and add links to the GitHub issue. Make sure your files are downloadable by "everyone with the link". We need your savegame to reproduce the problem and test the fix, and we need your active mods so we can load your savegame. Issues with savegames and mods attached get fixed first!HighlightsNew and improved featuresAutofarm now better understands plant growths (leaves, fruit, etc.), can be disabled for specific farm fields, and has a GUI for controlling its configuration.Bug fixesA minor but potentially annoying issue with labormanager has been squashed, and several other minor bugs have been fixed; see the changelog for details.AnnouncementsPSAsAs always, remember that, just like the vanilla DF game, DFHack tools can also have bugs. It is a good idea to save often and keep backups of the forts that you care about.Some DFHack tools that worked in previous (pre-Steam) versions of DF have not been updated yet and are marked with the "unavailable" tag in their docs. If you try to run them, they will show a warning and exit immediately. You can run the command again to override the warning (though of course the tools may not work). We make no guarantees of reliability for the tools that are marked as "unavailable".The in-game interface for running DFHack commands (gui/launcher) will not show "unavailable" tools by default. You can still run them if you know their names, or you can turn on dev mode by hitting Ctrl-D while in gui/launcher and they will be added to the autocomplete list. Some tools listed as "unavailable" in the docs do not compile yet and are not accessible at all, even when in dev mode.If you see a tool complaining about the lack of a cursor, know that it's referring to the keyboard cursor (which used to be the only real option in Dwarf Fortress). You can ena...
    Read full article on Community Announcements (rome of oxtrot)
  • AnnouncementsOfficial

    DFHack 53.16-r3 released

    Please report any issues (or feature requests) on the DFHack GitHub issue tracker. When reporting issues, please upload a zip file of your savegame and a zip file of your mods directory to the cloud and add links to the GitHub issue. Make sure your files are downloadable by "everyone with the link". We need your savegame to reproduce the problem and test the fix, and we need your active mods so we can load your savegame. Issues with savegames and mods attached get fixed first!HighlightsBugfixesThe main reason for this release is to fix a cricket (a noisy but harmless bug): a recent Windows update changed the behavior of the Windows terminal in such a way that led to DF+DFHack hanging on exit. This is, fundamentally, due to a 15-year-old defect in DFHack's Windows console handling, which before didn't cause problems but which now does.Several other components got minor adjustments - see changelog below for details.New and improved featuresWe added an export-worldgen tool that exports the current world generation, including optionally its map, to a worldgen preset so you can easily create the same world over and over again if you want, or readily share a world you found interesting with another player.The tool for exporting world maps to GIS also got some minor improvements.We also made changes to DFHack's crash logging to provide more/better debugging information and added some defensive code in a few places to transform what used to be fatal crashes into nonfatal error messages.AnnouncementsPSAsAs always, remember that, just like the vanilla DF game, DFHack tools can also have bugs. It is a good idea to save often and keep backups of the forts that you care about.Some DFHack tools that worked in previous (pre-Steam) versions of DF have not been updated yet and are marked with the "unavailable" tag in their docs. If you try to run them, they will show a warning and exit immediately. You can run the command again to override the warning (though of course the tools may...
    Read full article on Community Announcements (rome of oxtrot)
  • AnnouncementsOfficial

    DF+DFHack getting stuck on exit on Windows 11

    We've been getting reports that a recent Windows 11 update has resulted in some players having the experience that DF, with DFHack installed, will hang with a black screen when exiting the game, instead of exiting normally. We have confirmed that this is in fact a defect in our console handling on the Windows platform. A fix is on the way and will be published soon. However, this defect is otherwise harmless. If you experience this, it's absolutely safe to kill the stuck window - nothing bad will come of it.
    Read full article on Community Announcements (rome of oxtrot)
  • AnnouncementsOfficial

    DFHack 53.16-r2

    Please report any issues (or feature requests) on the DFHack GitHub issue tracker. When reporting issues, please upload a zip file of your savegame and a zip file of your mods directory to the cloud and add links to the GitHub issue. Make sure your files are downloadable by "everyone with the link". We need your savegame to reproduce the problem and test the fix, and we need your active mods so we can load your savegame. Issues with savegames and mods attached get fixed first!HighlightsMany new tools and featuresA bunch of new (or revived) features in this upcoming release. The most noticeable is that the smooth movement plugin is now officially part of DFHack. We've also added a tool to export world data for use with GIS mapping applications, reinstated the old stockflow tool (which allows automating work orders based on a stockpile's contents), reinstated labormanager as a work detail automation tool (with many improvements over the old one), made improvements to lots of existing tools, added a mitigation for a DF bug that made reclaimed/unretired fortresses behave badly, and added an API for doing bulk map scans from Lua efficiently. See the changelog, below, for more details.Even more bug fixesEven more DFHack bugs have been fixed. A big one is fixing the defect in timestream that prevented anyone from ever suffocating (an entirely unintended nerf). We also closed our oldest open bug: a defect in liquids that has been open since 2011. There's simply too many to write them all up here; check the changelog, below, for the full details.AnnouncementsComing soonWe still have a good deal of stuff in the pipeline that will probably make it into future releases. There's an upcoming tool to export an existing world as a worldgen preset so you can regenerate a world (although this one is a bit limited right now because a DF bug currently prevents fully deterministic worldgen). We've also working on a tool to monitor for and report inconsistencies in DF's own data structur...
    Read full article on Community Announcements (rome of oxtrot)
  • Patch NotesOfficial

    DFHack 53.16-r2rc2 prerelease announced

    This prerelease is available on the "beta" channel. Please report any issues (or feature requests) on the DFHack GitHub issue tracker. When reporting issues, please upload a zip file of your savegame and a zip file of your mods directory to the cloud and add links to the GitHub issue. Make sure your files are downloadable by "everyone with the link". We need your savegame to reproduce the problem and test the fix, and we need your active mods so we can load your savegame. Issues with savegames and mods attached get fixed first!HighlightsMany new tools and featuresA bunch of new (or revived) features in this upcoming release. The most noticeable is that the smooth movement plugin is now officially part of DFHack. We've also added a tool to export world data for use with GIS mapping applications, reinstated the old stockflow tool (which allows automating work orders based on a stockpile's contents), reinstated labormanager as a work detail automation tool (with many improvements over the old one), made improvements to lots of existing tools, added a mitigation for a DF bug that made reclaimed/unretired fortresses behave badly, and added an API for doing bulk map scans from Lua efficiently. See the changelog, below, for more details.Even more bug fixesEven more DFHack bugs have been fixed. A big one is fixing the defect in timestream that prevented anyone from ever suffocating (an entirely unintended nerf). There's simply too many to write them all up here; check the changelog, below, for the full details.AnnouncementsPSAsAs always, remember that, just like the vanilla DF game, DFHack tools can also have bugs. It is a good idea to save often and keep backups of the forts that you care about.Some DFHack tools that worked in previous (pre-Steam) versions of DF have not been updated yet and are marked with the "unavailable" tag in their docs. If you try to run them, they will show a warning and exit immediately. You can run the command again to override the warning (thoug...
    Read full article on Community Announcements (rome of oxtrot)

We use strictly necessary cookies to run this site. We don't currently set any analytics or advertising cookies. See our Cookie Policy for details.