Mod Editor
Mod Editor for REDnode is an optional pack for mod makers. Its main app, Mod Editor, is a code editor inside Cyberpunk 2077, with API Docs beside it: open a REDnode mod’s files, change them, press Save, and the mod runs your change at once, in the game you are playing. The mod’s log runs live under the editor, and its debuggers are a button away.
| You want to | Use |
|---|---|
| Change a mod you have | Edit in the Mod Manager, or pick it in the Mod Editor’s list |
| Start a new mod | New mod, from a template |
| See your change | Save: the mod restarts and its window reloads |
| Find out why it doesn’t work | The log under the editor, errors as you type, and Debug |
| Look up a call as you write | API Docs, completion and hover help |
It edits REDnode mods: page apps, Node mods, HUD widgets and services, in JavaScript, HTML, CSS and JSON. Not redscript, Cyber Engine Tweaks or archive mods.
Status: released, version 0.3.0 (2026-12-01), for game 2.5. It passed its tests in the game on Windows. It is a preview. New in 0.3.0: API Docs, F1, completion as you type and hover help.
Install
| You need | |
|---|---|
| Cyberpunk 2077 game version 2.5 | |
| REDnode 0.80.0 or later, so 0.81.0 or later among releases | Install REDnode first |
The pack’s zip, Mod-Editor-for-REDnode-0.3.0.zip |
From Nexus Mods or REDnode’s releases |
- With the game closed, add the zip to EDGEdeck or Vortex and deploy, or extract it into the game folder. Its two apps land in REDnode’s apps folder as
mod-editorandapi-docs. - Start the game, press F10 and open the Mod Manager.
- Select Mod Editor. Under Permissions, read the warning, then switch Allowed on for “managing REDnode”.
- Switch it on. Press Pin to launcher to keep it one click away.
| You should see | |
|---|---|
| Before step 3 | The window opens with an empty list, and says in the middle that it needs the admin permission |
| After step 3 | Your mods in its list, and its status line naming the Mods folder, Documents\REDnode\Mods |
Why “managing REDnode”? The Mod Editor starts, stops, restarts and debugs your other mods, and writes their files. That is the
adminpermission. Allow it only for a package you trust; you can withdraw it in the Mod Manager at any time.
To remove the pack, remove it in your mod manager or delete red4ext/plugins/REDnode/apps/mod-editor and api-docs. Your mods in Documents\REDnode\Mods stay.
Where your mods live
The Mod Editor writes only in Documents\REDnode\Mods, one folder per mod. REDnode watches that folder, so a mod there runs like an installed one, and a copy there wins over an installed mod with the same id. The Mod Manager marks it DEV.
| A mod | What Edit does |
|---|---|
Already in Documents\REDnode\Mods |
Opens it to edit in place |
| Installed in the game’s apps folder | Asks first, then copies it to Documents\REDnode\Mods with Copy and edit. The copy runs instead of the installed mod, so the installed files, and EDGEdeck’s library or your mod manager’s copy, stay as they are |
To go back to the installed version, switch the copy off, or delete its folder from Documents\REDnode\Mods. To share a mod you made, zip its folder.
Edit
| Part | What it’s for |
|---|---|
| The mod list | Your mods, development copies first |
| The file tree | The selected mod’s files. New file, Rename and Delete are here. A deleted file goes to the .trash folder in Documents\REDnode\Mods, so you can get it back |
| Tabs | Every open file, coloured for JavaScript, HTML, CSS or JSON |
| The line under the toolbar | Whether you’re editing a development copy, and where it is |
| The log | The mod’s own lines, live, with a splitter to give it more room |
Errors as you type. JavaScript and JSON are checked while you write: a red wavy line where the code goes wrong, and the error named under the log’s head, such as mod.mjs line 12: Unexpected token.
The window is resizable. Its ✕ asks first when you have unsaved changes; Keep editing keeps it open.
Save runs it
| Button | Keys | Does |
|---|---|---|
| Save | Ctrl+S | Writes the file and runs the change: a running mod restarts, and its open window reloads. This works with Hot reload off |
| Save all | Ctrl+Shift+S | Saves every changed file |
| Run, Stop | Switch the mod on and off |
The log and the debuggers
| Button | Does |
|---|---|
| Debug | For a Node mod: restarts it with Node’s inspector and opens its debugger in the game by itself, with breakpoints, stepping and the console. The status line counts while it waits for the inspector, up to 45 seconds. Debug off closes it and the mod runs as before |
| Inspect page | Opens DevTools for the mod’s window |
The Mod Editor’s own Debug opens the debugger for you. The Mod Manager’s Debug (Node inspector) switch only turns the inspector on; see The Node debugger.
New mod
New mod makes a working mod from a template, in Documents\REDnode\Mods, and opens it:
| Template | Makes |
|---|---|
| Page app | A window over the game, with its HTML page and script |
| Node mod | A mod in Node that reads the game |
| HUD widget | A small widget that stays on screen while you play |
| Service | A mod whose functions other mods, and AI assistants, can call. See Mod services |
Try it: your first mod in the game
- Load a save. Press F10 and open the Mod Editor.
- Press New mod, choose Page app, name it
My first modand press Make it. - Open its
index.html, change a line of text, and press Ctrl+S.
| After | You should see |
|---|---|
| Step 2 | A “My first mod” window opens in the game, and the editor shows its index.html |
| Step 3 | The window reloads with your text |
Then read Making mods and apps for what a mod can do.
Look it up as you write
| What it does | |
|---|---|
| API Docs | A window of its own: search REDnode’s calls (each with its description, parameters and an example) and the game’s own API (classes, structs, enums and functions, as api calls them, with REDnode’s notes). Type part of a name, or a name with a dot to look inside it: world.sp, PlayerPuppet.Get. Type names in a signature open their entry, Back (Alt+Left) goes back, Copy link copies the entry’s page on the docs site |
| F1 | In the editor, opens the word at the cursor in API Docs: world.spawn, GameInstance.GetPlayer. The toolbar’s API Docs button does the same |
| Completion | As you type: after a dot, REDnode’s calls (world.sp offers spawn and spawned, game.player. its calls), each with its signature and a line of its description; after api., the game’s functions and the classes with static functions; in rednode-app.json, its fields and the permission names. Ctrl+Space asks for it. Nothing inside strings or comments |
| Hover help | Rest the pointer on a name for its signature and the start of its description |
Good to know
| Editing outside the game | A mod’s folder is a plain folder, so any editor opens it. A change saved in another editor runs once the mod restarts: Stop, then Run. Close the file’s tab in the Mod Editor first, so it doesn’t save its own copy over yours |
| Any editor can answer Edit | The Mod Manager’s Edit opens whichever installed package provides the mod-editor role. With more than one, choose under Provides in the Mod Manager |
| Planned | Polish from players’ notes, and working with the UI Workbench of UI Tools |
| Problem | Do this |
|---|---|
| The list is empty and the window asks for the admin permission | In the Mod Manager, select Mod Editor and switch Allowed on for “managing REDnode” |
| No Edit in the Mod Manager | The Mod Editor isn’t installed, or your REDnode is older than 0.80.0. REDnode’s own built-in windows have no Edit |
| My installed mod runs the old version | Its copy in Documents\REDnode\Mods runs instead (it shows DEV). Delete the copy, or switch it off, to run the installed one |
More
- REDnode’s own Mod Editor guide.
- Debugging, Node mods and Overlay apps.