Lunar Coins are stored in your save file, not in a menu you can access during play
Risk of Rain 2 does not have a built-in way to change your Lunar Coin count from within the game. Your coin total is saved in a configuration file on your computer, which means you need to locate that file, open it with a text editor, and change the number directly. This is the only method that works — there is no console command, no in-game cheat menu, and no mod that reads from the game's official systems.
The file you need is called UserProfiles.json, and it lives in a specific folder on your hard drive. Where that folder is depends on whether you play on Windows or Mac. Once you find it and open it in a text editor like Notepad, you will search for the line that says "lunarCoins" and change the number next to it to whatever you want.
Key Takeaways
- Lunar Coins are stored in the UserProfiles.json file, which you must edit with a text editor like Notepad — the game itself has no coin-editing feature.
- On Windows, the file is in C:\Users\[YourUsername]\AppData\Local\RiskOfRain2\Profiles\, and on Mac it is in ~/Library/Application Support/RiskOfRain2/Profiles/.
- Before you edit the file, close Risk of Rain 2 completely, because the game overwrites the file when it closes and will erase any changes you make while it is running.
- Search for the line "lunarCoins" in the file, change the number to what you want, save the file, and reopen the game to see the new total.
Finding the UserProfiles.json file on Windows
On Windows, the file is buried in a hidden folder. Open File Explorer and paste this path into the address bar at the top: C:\Users\[YourUsername]\AppData\Local\RiskOfRain2\Profiles\. Replace [YourUsername] with your actual Windows username — for example, if your username is "Marcus", the path becomes C:\Users\Marcus\AppData\Local\RiskOfRain2\Profiles\.
If you cannot see the AppData folder, it is hidden by default on Windows. To unhide it, click the View tab in File Explorer, then check the box that says "Hidden items". Now the AppData folder will appear. Navigate into it, then into Local, then into RiskOfRain2, then into Profiles. Inside that folder you will see a file called UserProfiles.json — that is the one you need to edit.
Finding the UserProfiles.json file on Mac
On Mac, open Finder and press Command+Shift+G to open the "Go to Folder" dialog. Paste this path: ~/Library/Application Support/RiskOfRain2/Profiles/. The tilde (~) represents your home folder, so you do not need to type your username. Press Enter and Finder will take you directly to the Profiles folder.
Inside that folder you will see the UserProfiles.json file. If you do not see it, make sure you are in the right location — the path should end with /Profiles/ and nothing else. The file may also be named slightly differently depending on your game version, but it will always contain "UserProfiles" in the name.
Editing the file and changing your Lunar Coin count
Right-click on UserProfiles.json and choose "Open with" (Windows) or "Open With" (Mac). Select Notepad on Windows or TextEdit on Mac — do not use Word or any other word processor, because those add formatting that will break the file. The file will open and you will see a lot of text that looks like code.
Press Ctrl+F (Windows) or Command+F (Mac) to open the Find dialog. Type lunarCoins and press Enter. The editor will highlight the line that contains your current coin count. You will see something like "lunarCoins": 50. Click on the number (in this example, 50) and change it to whatever you want. For example, to give yourself 1000 coins, change it to "lunarCoins": 1000.
After you change the number, press Ctrl+S (Windows) or Command+S (Mac) to save the file. Close the text editor. The file is now updated with your new coin count.
Close the game before you edit, and reopen it after
This step is critical: Risk of Rain 2 must be completely closed before you edit UserProfiles.json. If the game is running, it will overwrite your changes the moment you close it, because the game saves your profile when it shuts down. Close the game entirely, edit the file, save it, and then reopen the game.
When you start the game again, load your profile and check your Lunar Coin count in the main menu or in the character select screen. The new number should appear. If it does not, the file may not have saved correctly — go back and check that you changed the right number and that you pressed Ctrl+S or Command+S to save.
What to do if the file looks wrong or will not open
If you open UserProfiles.json and the text looks like gibberish or random characters, you may have opened the wrong file or the file may be corrupted. Close it without saving and check that you are in the correct folder — the path should end with /Profiles/ and the filename should be exactly UserProfiles.json.
If the file will not open in Notepad or TextEdit, try right-clicking it and choosing "Open with" and then selecting a different text editor. On Windows, you can also try Notepad++, which is a free text editor designed for this kind of work. On Mac, try TextEdit again but make sure you go to Format menu and choose "Make Plain Text" before you edit anything.
If you accidentally break the file and the game will not start, you can delete UserProfiles.json and the game will create a new one the next time you launch it — you will lose your profile data, but the game will still work.
Frequently Asked Questions
Will editing my Lunar Coins get me banned?
No. Risk of Rain 2 does not have anti-cheat software that monitors your save file, and editing your own local save file is not against the game's terms of service. You are only playing against the computer, not against other players, so there is no competitive advantage to gain.
Can I edit other things in the UserProfiles.json file?
Yes, the file contains other data you can change, like your character unlocks, playtime, and difficulty settings. However, if you change something incorrectly, you can break your save file. If you are not sure what a line does, leave it alone. Lunar Coins are safe to edit because they are just a number.
What if I have multiple profiles or save files?
The UserProfiles.json file contains all your profiles. When you open it, you will see multiple sections, each labeled with a profile name. Find the section for the profile you want to edit, locate the "lunarCoins" line within that section, and change only that number. Do not change anything outside that section.
Do I need to back up the file before I edit it?
It is a good idea. Before you open UserProfiles.json in a text editor, right-click it and choose "Copy", then paste it in the same folder. Name the copy something like "UserProfiles_backup.json". If something goes wrong, you can delete the broken file and rename the backup back to UserProfiles.json.
Will my Lunar Coins stay at the new number after I edit them?
Yes, as long as you do not spend them. Once you load the game and the new coin count appears, it is saved. If you spend coins during play, the game will update the file when you close it, and your new total will be lower. The edit itself is permanent.