Skip to content

Installing kaiHEN (CivSwitch) ​

CivSwitchFS-kaiHEN extends the previous CivSwitch loader with more capabilities, including filesystem access, and integrates with kaiHEN for homebrew support. It is semi-untethered, meaning that it can be activated without a computer and will remain active until the console is restarted.

This process is experimental and can permanently damage the console. It is especially important not to reboot or close Civilization VII while the payload is running.

DANGER

Before continuing, read the brick risk information. If you are not comfortable with this, you should wait for a more mature release.

  • Multiple people have reported that this exploit has caused their console to brick.
  • Never reboot or close Civilization VII while the payload is running.
  • If a log line begins with STATE IS UNSAFE, STATE IS UNKNOWN, a crash, or no result, hard-reboot by holding the power button for 15 seconds. Never attempt to close Civilization VII or reboot the console through the power menu in this state.
  • Use this only on firmware 23.0.1. The upstream project has only tested exFAT firmware; FAT32 should work but is less tested.

Requirements ​

  • A Switch 2 running firmware 23.0.1
  • Civilization VII v1.0.0
  • The CivSwitch Remote JS Loader running on the console
  • Node.js 20 or later and npm on your computer
  • A FAT32 or exFAT microSD card
    • A system update is required for exFAT support. If you have not completed the update, you must use FAT32.

Prepare your computer ​

  1. Download the CivSwitchFS-kaiHEN project .zip file
  2. Extract the .zip file
  3. Open a terminal in the extracted folder and run npm install

Prepare the microSD card ​

  1. Insert the microSD card into your computer.
  2. Format the microSD card as FAT32 or exFAT, depending on your system update status.
  3. Download the latest .zip release file from CivSwitchFS-kaiHEN

Extract the ZIP contents onto the root of the microSD card and safely eject it. The card should contain:

text
/hbmenu.nro
/kaihen/bin/bootstrap.bin
/kaihen/bin/ro/main
/kaihen/bin/hen/main
/kaihen/bin/game/main
/switch/ounceshell/ounceshell.nro

Insert the microSD card into the console before starting.

Start the persistence installer ​

  1. Open Civilization VII.
  2. From the main menu, select Load Game.
  3. Wait until the CivSwitch console reports Awaiting payload.
  4. Find the Switch 2's current IP address in the console's network settings.
  5. On your computer, run this command from the cloned repository folder:
sh
npm run persist:chain -- <console-ip>

Replace <console-ip> with the console's IP address. Do not include angle brackets.

Wait for the save setup to finish. It normally takes about one minute.

WARNING

Do not close Civilization VII, start another application, or reboot the console during installation.

If a log line begins with STATE IS UNSAFE, STATE IS UNKNOWN, a crash, or no result, hard-reboot by holding the power button for 15 seconds before retrying. Do not press any other buttons or reboot through the power menu during this process.

If a log line begins with STATE IS SAFE TO RESTART, you may safely reboot the console and continue the installation afterwards.

Once the installer succeeds, close Civilization VII normally. Every later start of Civilization VII -> Load Game will acquire filesystem privileges and run kaiHEN automatically.

Launch kaiHEN ​

  1. Start Civilization VII and select Load Game.
  2. Wait for the payload to finish and kaiHEN to run.
    • If it fails to run, reboot your console and try again.
  3. Close Civilization VII normally.

TIP

If your console has "bricked" and no longer turns on after running kaiHEN, you may need to use recovery mode to restore it to a functional state. See Restoring with Recovery Mode for detailed instructions.

Now our homebrew environment should be installed, and you can start using kaiHEN to run homebrew applications on your Switch 2.