Skip to content
gamemodeshop

Cyberpunk 2077 Mod Frameworks Explained: CET, RED4ext, ArchiveXL, TweakXL and redscript

By GameModeShop Editors4 min read

Cyberpunk 2077 official screenshot
Official screenshot · © CD PROJEKT RED · via Steam

Quick answer

Cyber Engine Tweaks adds a Lua scripting layer and in-game overlay. RED4ext loads native plugins and is the base that ArchiveXL, TweakXL and Codeware build on. redscript compiles script mods written in the game's own language. ArchiveXL adds new assets without overwriting files, and TweakXL edits game records. Install only what your mods require, and update the whole stack together after each game patch.

The steps at a glance

  1. 1List your mods' requirements. Check each mod's Nexus Mods page and write down every framework it requires.
  2. 2Install the base layer. Install RED4ext first if anything you use needs ArchiveXL, TweakXL or Codeware, since they run as RED4ext plugins.
  3. 3Add the frameworks on top. Install ArchiveXL, TweakXL, Codeware, redscript and Cyber Engine Tweaks as required, each extracted into the game root.
  4. 4Update together after patches. After a game update, update every framework before your mods, and launch only when they support the new patch.
  5. 5Read errors by framework. Use the error popup or each framework's log to identify which layer failed, then update that layer or the mod that depends on it.

Why Cyberpunk needs frameworks at all

Cyberpunk 2077 runs on CD Projekt Red's REDengine. Out of the box, you can replace game assets by dropping .archive files into the mod folder, and CD Projekt Red's official REDmod system adds some structured support. But replacing files only goes so far. To add new items without overwriting old ones, change game logic, or add new menus, the community built a set of frameworks.

Each framework does one job. Mods then say which ones they need. Once you know what each layer does, the requirement lists on Nexus Mods stop looking like alphabet soup, and patch-day breakage becomes much easier to diagnose. If you have not installed anything yet, start with our guide to installing Cyberpunk 2077 mods.

The stack at a glance

FrameworkWhat it doesWhat it builds onWhere its mods go
Cyber Engine TweaksLua scripting, overlay, consoleStandalonebin/x64/plugins/cyber_engine_tweaks/mods
RED4extNative plugin loaderStandalonered4ext/plugins
redscriptCompiles game-language script modsThe game's own script systemr6/scripts
ArchiveXLAdds new assets without overwritesRED4extarchive/pc/mod (plus .xl files)
TweakXLEdits game records (TweakDB)RED4extr6/tweaks
CodewareExtra scripting API for other modsRED4extUsed by redscript and CET mods

Cyber Engine Tweaks (CET)

CET was one of the first big frameworks for the game. It injects into Cyberpunk and gives modders a Lua scripting environment with access to the game's systems. It also gives players an in-game overlay with a console, bound to a key you choose on first launch.

Many mods use CET to add menus, hotkeys and features. Appearance Menu Mod, a long-running photo mode and character tool, is a well-known example. CET mods live in their own folders under bin/x64/plugins/cyber_engine_tweaks/mods.

As a player, CET is the layer you see. If its overlay does not appear, CET itself is not loading, often due to an outdated version or a missing Visual C++ runtime.

RED4ext

RED4ext is a native plugin loader, sometimes described as a script extender. It lets developers write plugins in C++ that load with the game and extend what the engine exposes.

You rarely install a mod that is "just RED4ext." Its importance is that ArchiveXL, TweakXL and Codeware are RED4ext plugins. If RED4ext is outdated after a patch, all three stop working, and so does every mod that depends on them. That is why RED4ext is usually the first thing to update.

redscript

Cyberpunk's gameplay and UI logic is written in the game's own scripting language. redscript is a community compiler for that language. Modders write .reds files that replace or extend game script functions, and redscript compiles them together with the game's scripts when you launch.

Many gameplay tweaks, UI changes and quality-of-life mods are redscript mods. Their files go in r6/scripts.

redscript's big advantage for players is clear errors. If a script mod is incompatible, the compile fails and you get a popup naming the file. That usually points straight at the mod to update or remove.

ArchiveXL

Without ArchiveXL, adding a new item usually means replacing an existing one. ArchiveXL lets mods add new resources, like clothing, appearances and other assets, alongside the base game's. That is why so many clothing and cosmetic mods require it.

ArchiveXL mods typically ship an .archive file plus a small .xl file that tells ArchiveXL what to register, both placed in archive/pc/mod.

TweakXL

The game stores a huge amount of data, such as weapon stats, item properties, vendor stock and many other records, in a database called TweakDB. TweakXL lets mods edit or add those records through simple text files in r6/tweaks, rather than patching binary data.

Balance mods, new item definitions and many small gameplay tweaks rely on TweakXL. It is a RED4ext plugin, so it needs RED4ext.

Codeware

Codeware is a library. It extends the scripting API available to redscript and CET mods, giving modders functions the base game does not expose. Players install it because mods require it, not for anything it does by itself. It runs as a RED4ext plugin.

Patch days, explained by the stack

When CD Projekt Red updates the game, the risk flows through these layers:

  1. RED4ext often needs an update because it depends on the game's executable.
  2. ArchiveXL, TweakXL and Codeware may need updates once RED4ext changes, or because the game's internals changed.
  3. redscript mods can fail to compile if the game's scripts changed.
  4. CET may need an update for the new executable.
  5. Individual mods may need fixes once their frameworks are working.

The practical rule: update the frameworks first, bottom to top, then the mods. If you launch before the stack is ready, expect crashes or a wall of errors. The Cyberpunk 2077 hub covers the other ways people break their game.

Reading errors by layer

  • CET overlay missing: CET is not loading. Check its version and the Visual C++ runtime.
  • redscript error popup: a script mod failed to compile. The popup names the file.
  • Crash on startup with RED4ext installed: RED4ext or one of its plugins is likely outdated. Check its logs in the red4ext folder.
  • New clothing or items missing: ArchiveXL is outdated or missing, or the mod's files are in the wrong folder.
  • Stat or record changes not applying: TweakXL is outdated or missing.

Our take

The framework stack is the best and worst thing about Cyberpunk modding. It makes mods possible that simple file replacement never could, like new clothing that does not overwrite old clothing, real UI changes and deep gameplay rewrites. It also means one stale framework can disable half your load.

Our position: treat the frameworks as infrastructure. Install them only when your mods need them, keep them updated together, and always update them before mods. Players who understand which layer does what fix problems in minutes; players who see "RED4ext, ArchiveXL, TweakXL" as a single blob end up reinstalling everything.

Compare this to Stardew Valley, where Content Patcher vs SMAPI mods is about two layers, not six. Neither approach is wrong, but Cyberpunk asks more of you, and it rewards that effort with some of the most ambitious mods in any open-world game.

People also ask

Do I need all the Cyberpunk 2077 frameworks?

No. Install a framework only when a mod you want lists it as a requirement. In practice, players with many mods often end up with most of them.

What is the difference between CET and redscript?

CET runs Lua scripts and provides an in-game overlay and console. redscript compiles mods written in the game's own scripting language, which is how many gameplay and UI changes are made. Mods use one or the other, and some use both.

Why did all my mods stop working after a Cyberpunk patch?

The frameworks hook deep into the game, so they often need updates after a patch. When a core one like RED4ext is outdated, every mod that depends on it stops working until it is updated.

What is WolvenKit?

WolvenKit is the community's main toolkit for creating Cyberpunk 2077 mods, such as editing and packing game assets. You need it to make mods, not to play them.

Everything else about modding Cyberpunk 2077 lives on one page.

Open the Cyberpunk 2077 hub
All posts →