intermediate About 55 minutes

SteamOS per-game profiles: set them with an AI agent

Set handheld and plugged-in power profiles and frame caps for every SteamOS game with Decky Loader and a coding agent. Tested on a Legion Go and Claude Code.

A hand-drawn illustration of a boxy yellow robot at a computer terminal sending game profile cards along a dotted line to a handheld games console labelled HANDHELD, beside a charging stand labelled DOCKED that is plugged into the wall, while a green dog sits under the table looking up.
You'll be able to
  • set up a handheld and a plugged-in power profile for every game on a SteamOS handheld, by giving a coding agent a few prompts;
  • check on the device itself that a setting the agent changed has taken effect;
  • decide which games to keep on the internal drive and which to put on a microSD card;
  • give games from other launchers, such as Heroic and Xodus Nexus, their own profiles.
Who it’s for
Claude Code users with a SteamOS handheld who are happy to read and approve the commands a coding agent proposes. I tested everything on a Lenovo Legion Go. SimpleDeckyTDP also supports the Steam Deck and ROG Ally, but I haven’t tried this on either. You don’t need to know Linux, though you will type a password into a terminal.

You start a game on your handheld, open Quick Access and adjust the power limit, as you did last night for a different game.

When it comes to gaming, I have little time to do it, and I just want to sit down and play without having to tweak performance settings all the time. I have a Lenovo Legion Go running SteamOS, and I wanted per-game profiles so every game runs well handheld and docked, without setting them myself.

Can a coding agent write a profile for every game in your library, and how do you know the settings took effect?

  • a SteamOS handheld on your home network (tested on an original Legion Go with SteamOS 3.9.5);
  • a computer on the same network with a coding agent that can run terminal commands (I used Claude Code);
  • your handheld’s deck password (forgotten it? see Step 2);
  • a few minutes in the handheld’s settings, to switch on developer mode and CEF Remote Debugging, and in Desktop Mode, to switch on SSH.

Time: about 45 minutes for the profiles and frame caps, plus about 10 minutes for the checks in “Try it on your own work” (that part is my estimate). I sent my first prompt at 13:48, the profiles were working at 14:23, and the frame caps were saved and checked for all 112 games by 14:33, including time lost to a forgotten password. Moving games between drives takes longer: about two hours per 250 GB onto a microSD card.

Warning

This gives an agent admin-level access to a device on your network. Read what it plans to run before you approve it. Type passwords into your own terminal, never into the chat.

Part 1 of 4 Learn

SteamOS’s own per-game profiles

SteamOS already has per-game profiles: open Quick Access, go to Performance and turn on “Use per-game profile”. You get one profile per game, so a game that should use little power on battery gets the same settings on the TV, and you have to set each game while it’s running.

What I wanted instead:

  • a handheld profile per game, tuned for battery;
  • a docked (plugged-in) profile per game, tuned for performance;
  • frame caps on the lighter games, so a 2D platformer doesn’t push the screen to 144 fps;
  • all of it done for me.

Two pieces of software make that possible: Decky Loader adds plugins to SteamOS, and SimpleDeckyTDP is the Decky plugin that does per-game power profiles, with a separate set for when you’re plugged in. SimpleDeckyTDP’s own page lists the Legion Go, Steam Deck and ROG Ally among the devices it supports.

The coding agent reaches the handheld in two ways: SSH, which lets it run commands on the handheld from your computer, and Steam’s own interface, which it controls from your network.

The seven steps

The prompts are tidied-up versions of what I typed. My originals were shorter and full of typos. The agent also took some steps without being asked, such as reading the install scripts first and backing up settings. Steps 1 to 5 follow the order I did them in, I did Step 7 before Step 6, and Step 2 is the one you do yourself.

Step 1: Let the agent find the handheld

With the handheld switched on and in Gaming Mode, send this prompt:

My Lenovo Legion Go runs SteamOS and is on my home network. I want per-game performance profiles, so every game runs well handheld and docked, without me setting them. Find the handheld, look at what's installed without changing anything, and propose a plan.

Mine found the handheld on the network as steamdeck.local (SteamOS’s default name, whatever the hardware), and found that SSH was off. It then read the SteamOS version, the hardware and the list of installed games, without changing anything.

It could do that because of a SteamOS developer setting called CEF Remote Debugging, which lets programs on your network control the Steam screen. The agent needs it for most of the work, and mine was already on. If yours isn’t, switch it on before Step 2, then restart the handheld. I checked these labels on SteamOS 3.9.5; they can differ on other versions.

  1. In Gaming Mode, open Settings → System and turn on Enable Developer Mode.
  2. Open the new Developer page.
  3. Under Miscellaneous, turn on CEF Remote Debugging.

Step 2: Switch on SSH yourself

There is no prompt for this step, because you type the password. SSH is how the agent gets onto the handheld. On the handheld, switch to Desktop Mode, open Konsole and run:

passwd                              # only if you've never set one
sudo systemctl enable --now sshd

Then, on your computer, add your key so the agent doesn’t need the password. Run this in a normal terminal window, not through the agent:

ssh-copy-id deck@steamdeck.local

Note

Running ssh-copy-id through Claude Code’s ! prompt fails with an ssh_askpass error, because there’s nowhere for the password prompt to appear. Use a separate terminal window.

Forgotten the password? There’s no reset link, but GamingOnLinux has a reset method that doesn’t wipe the device: add systemd.debug_shell to the boot entry, then run passwd deck from the console on Ctrl+Alt+F9. It needs a USB keyboard. The guide is written for the Steam Deck; the key that opens the boot menu on other handhelds may differ.

Step 3: Update Decky Loader and install SimpleDeckyTDP

If Decky Loader doesn’t show up in Steam, update it first. I already had Decky installed, version 3.2.3, and it was running but didn’t show up in Steam. The agent found this in the logs and suggested updating to the latest version, 3.3.0, which fixed it.

Send this prompt:

SSH is on and my key is copied. Install Decky Loader and SimpleDeckyTDP. Read both install scripts first, then give me one command to run myself, so I type the admin password into my own terminal.

Mine read both scripts, then gave me one command to run myself, so the admin password went into my terminal rather than the chat:

ssh -t deck@steamdeck.local 'curl -fsSL -o /tmp/decky.sh https://github.com/SteamDeckHomebrew/decky-installer/releases/latest/download/install_release.sh && sudo bash /tmp/decky.sh && curl -fsSL https://github.com/aarron-lee/SimpleDeckyTDP/raw/main/install.sh | bash'

When it finishes, the Decky menu in Quick Access lists SimpleDeckyTDP.

The Decky menu in Quick Access, listing LegionGoRemapper, SimpleDeckyTDP, SteamGridDB and Junk-Store.

Step 4: Write a profile for every game

Back in Gaming Mode, send this prompt:

It's in Gaming Mode. Back up the plugin's settings, then write a handheld and a plugged-in profile for every installed game, grouped by how demanding each game is.

The agent read the plugin’s settings format from its source code, sorted my 161 games into three groups and wrote two profiles for each:

GroupExamplesHandheldPlugged in
HeavyCyberpunk 2077, Final Fantasy VII Rebirth, Baldur’s Gate 322 W30 W
MediumResident Evil 2, Fallout 4, Outer Wilds15 W25 W
LightCeleste, Hades, Monkey Island9 W15 W
New games (default)anything installed later12 W25 W

These are starting points, not tested game by game. If one runs badly, move its slider in SimpleDeckyTDP and the change is saved for that game.

“Docked” here means plugged into power. Play handheld on the charger and you get the docked profile. The plugged-in profiles only work with “Enable per-game AC Power TDP Profiles” switched on in the plugin’s advanced settings; the agent turned it on for me. After Steam restarts, the plugin uses the handheld profile until Steam reports that the charger is in, which took about 20 seconds on mine.

SimpleDeckyTDP in Quick Access with FEZ running on the charger. Per-game profiles are on, the panel reads "Using (AC) FEZ", and the power limit is 15 watts.

To open it on a Legion Go, press the Legion button on the right controller, then the plug icon.

Step 5: Cap the frame rate on lighter games

The Legion Go’s screen runs at up to 144 Hz. Without a cap, a light game can run at 144 frames a second, which uses more battery. I asked for a 60 fps cap on the 112 lighter games, then asked for screenshots to illustrate the guide. One of them showed the cap wasn’t in effect. These are the two prompts:

Add a 60 fps cap to the lighter games.
Take screenshots on the handheld for a guide: the Decky plugin list, SimpleDeckyTDP, and Steam's Performance panel with a game running.

On the first attempt, the agent wrote the cap into Steam’s per-game settings and Steam saved it for all 112 games. The screenshot of Steam’s Performance panel showed Celeste still at 144.

Redrawn for illustration from the frame cap story in Step 5. The values are the ones the guide reports.

Is it really capped?

The agent has added a 60 fps cap to the lighter games. Here is what it reports, and what Steam’s Performance panel shows with one of those games running.

Steam’s config, read back by the agent

Agent Done. The 60 fps cap is saved for all 112 lighter games.

Frame cap
60 fps
Saved for
112 lighter games

Quick Access → Performance

Celeste running

Frame Limit
144
The two panels show different caps. Which one do you trust?

What happened

  • The agent had made two mistakes.
  • It wrote the cap for the wrong display. Steam treats the Legion Go’s own screen as an external display, so the “external display” value meant for the TV applied in handheld too.
  • It also wrote the wrong setting. The Frame Limit slider in Quick Access reads a different setting, gamescope_app_target_framerate, from the one the agent had written.
  • The agent found the right setting, wrote it for each game, relaunched FEZ, read 60 fps in game and took a screenshot of the panel.

Ask your agent for a screenshot of the setting on the device, with the game running.

How to read this

The left panel is what the coding agent reported after it wrote a 60 fps cap into Steam’s per-game settings and read the config back.

The right panel is Steam’s Performance panel in Quick Access, with a capped game running. Its Frame Limit is the cap the game is running with.

Pick the one you would believe, then see what happened. Both panels are redrawn from the guide’s story, not screenshots.

The agent made two mistakes. It had written the cap for the wrong display, because Steam treats the Legion Go’s own screen as an external display, so the “external display” value meant for the TV applied in handheld too. It had also written the wrong setting, because the Frame Limit slider in Quick Access reads a different setting, gamescope_app_target_framerate, from the one the agent had written. The agent found the right setting, wrote it for each game, and then proved it worked: it relaunched FEZ, read 60 fps in game and 144 in Steam’s menus, and took the screenshot below.

Steam's Performance panel with FEZ running. "Using FEZ profile" is shown, per-game profile is on, and Frame Limit reads 60 FPS (60 Hz).

Tip

Ask your agent for a screenshot of the setting on the device. Here, Steam’s config showed the cap as saved, and the Performance panel showed 144.

On the Legion Go, the 60 fps cap applies docked as well. On a 60 Hz TV, the cap makes no difference.

Step 6: Put the right games on the right drive

The Legion Go has an internal SSD and a microSD slot, and I wanted to know whether it mattered which games went where. This step has two prompts: one to measure, one to move.

Is there a speed difference between the internal drive and the microSD card? Test both without writing anything, then suggest which games to keep on each drive.

The agent measured both drives on my device with read-only tests:

Internal SSD (2 TB Crucial P310)microSD (1 TB)
Reading large files3.1 GB/s90 MB/s
Small random readsabout 8,800 a secondabout 2,500 a second
Writing (measured while moving a game)not measuredabout 31 MB/s

The microSD card reads large files about 35 times slower. That shows up as longer loading screens, and as stutter in modern open-world games that load scenery while you play. Frame rate barely changes once a game has loaded. Older and lighter games run fine from the card, so my split of big modern games on the SSD and older ones on the card was mostly right already. Two things were off:

  • The SSD was 97% full. SSDs slow down when they’re nearly full, and there was no room for new games. The agent suggested moving nine older games, about 250 GB, to the card: Mass Effect Legendary Edition, Final Fantasy X/X-2 HD Remaster, Far Cry 4, Crisis Core, Assassin’s Creed Rogue, Portal 2, Blade Runner: Enhanced Edition, Disco Elysium and Fallout 3.
  • Three heavier games were on the card. Resident Evil 2, 3 and 7 go back to the SSD for faster loading, once the other moves have made room.

Then I sent the second prompt:

Make those moves through Steam, one game at a time, and check each game's files are all on the new drive before moving the next one.

The agent used Steam’s own move feature, so Steam keeps track of where each game is. It tested one game first and checked that nothing was left behind on the old drive.

Note

Moving games onto a microSD card runs at the card’s write speed. At about 31 MB/s, 250 GB takes a little over two hours. You can keep playing a game that isn’t being moved.

Three things to know before a long run of moves:

  • A game with a pending update won’t move. Steam waits for the update to finish first. Update the game, or ask the agent to queue the update, then move it.
  • A long run of large copies can overwhelm a microSD card. After several games in a row, writes on my card dropped to about 13 MB/s, and the Steam interface crashed during a 37 GB copy. If moves slow right down, stop queuing more and leave the biggest games on the SSD. Don’t force a restart in the middle of a copy: data still waiting to be written to the card can be lost. Steam restarted itself a few minutes later, cancelled the unfinished move and kept that game on the SSD.
  • Steam can mark a moved game “Files Missing”. If the files are all there, verifying them clears it: Properties → Installed Files → Verify integrity of game files.

To do it by hand: in Steam, open a game’s Properties → Installed Files → Move install folder.

Step 7: Add games from other launchers

I have games from Epic and GOG installed through Heroic Games Launcher, and Game Pass games through Xodus Nexus. Both can add their games to Steam as shortcuts, and then they need profiles too, so send this prompt:

I've added games from Heroic and Xodus Nexus to Steam. Give them profiles too. Launch one first to check how the plugin recognises games that aren't from Steam.

Here is what I found:

  • Power profiles work. SimpleDeckyTDP stores a shortcut’s profile under the ID Steam gives that shortcut. The agent launched one game first and read which ID the plugin used before writing the rest.
  • Steam’s frame caps didn’t work for Heroic games. While one ran, Steam stayed on its menu profile at 144 fps, so the game’s cap never loaded. Heroic runs as a Flatpak app, which is a likely cause. I haven’t checked Xodus games.
  • Restart Steam after a launcher adds a game. Steam reads its list of shortcuts when it starts, and writes its own copy back over the file whenever it saves. A game added while Steam is running can disappear, and that happened to me with Rocket League. The agent can also add the shortcut through Steam itself, which avoids the problem.
  • A pending update in Heroic can block launches from Gaming Mode. Each launch starts a fresh copy of Heroic, which starts the update again. Syndicate Wars only started from Gaming Mode after the agent turned off Heroic’s automatic game updates. Let big updates finish in Desktop Mode.
  • GOG DOS games that close at the DOSBox splash screen may be missing their DOSBox settings files. On my handheld, they were in Heroic’s GOG support folder. The agent copied them into the game’s folder, and the game started.

Xodus installs every game into one folder (mine is ~/Games/Xodus Nexus on the SSD) and has no option to move a game afterwards. Choose the folder in its settings before you download anything big.


Undo it

  • SimpleDeckyTDP keeps its old settings as settings.json.bak-<date> in ~/homebrew/settings/SimpleDeckyTDP/ if you ask the agent to back them up first. Ask it to restore that file to undo the power profiles.
  • To drop a frame cap, open the game, then Quick Access → Performance, and move the Frame Limit slider to the right.
  • To remove the plugin: sudo rm -rf ~/homebrew/plugins/SimpleDeckyTDP and restart the plugin_loader service with sudo systemctl restart plugin_loader.

How the agent controlled Steam

The agent changed Steam’s settings through the same connection a web developer uses to inspect a page.

Details: how the agent changed Steam's settings

The agent used SSH to install Decky, write the plugin’s settings file and read logs. Everything else went through Steam’s own interface.

Steam’s interface is a web page running inside Steam. The developer setting CEF Remote Debugging lets programs connect to that page using the Chrome DevTools Protocol, the same protocol a web developer uses to inspect any page. The agent connected to the hidden page that runs the interface, called SharedJSContext, and ran JavaScript there. That page has an object called SteamClient, which Steam’s own menus use to talk to the Steam client. Through it the agent read the game list, wrote the frame caps, moved and uninstalled games, added the Rocket League shortcut and captured the screenshots.

Warning

Valve doesn’t document SteamClient. A Steam update can rename or remove any part of it without notice. Ask the agent to read a value back after it writes one. In Step 5, Steam’s config showed the 60 fps cap as saved, and the screenshot showed 144.

To learn more:

  • Decky’s frontend library keeps community-maintained type definitions for SteamClient. They list the parts of SteamClient people have identified so far: InstallFolder for moving games, Installs for uninstalling, System/Perf for the performance settings. The Decky plugin developers maintain them by reading Steam’s code, so they may not match the newest Steam update.
  • Decky Loader is the main project built on this interface; its developers discuss changes on the Discord linked from the project page.
  • Valve doesn’t cover it in the Steamworks documentation. Its Steam Deck debugging guide is for developers debugging their own Windows games.

Doing it in other assistants

Only Claude Code was tested. An agent that can run terminal commands on your computer, such as OpenAI Codex CLI, Antigravity CLI or GitHub Copilot’s agent mode, should be able to follow the same prompts. Chat-only assistants in a browser can’t reach a device on your network.

Part 2 of 4 Practise

Try it on your own work

These six steps check the result on your own handheld once the agent says it’s finished, and practise changing a profile, choosing drives and turning off remote access.

  1. Pick one light game and one demanding game. Ask the agent: “Show me the handheld and plugged-in power limits for these two games, and the frame cap for each.”Result two wattages per game, lower for the light game, and a 60 fps cap on the light game only.
  2. Launch the light game on battery and open SimpleDeckyTDP from Quick Access.Result the panel names the game and shows its handheld wattage. Plug in the charger: within about 20 seconds the panel shows “(AC)” and the higher wattage.
  3. With the game still running, open Quick Access → Performance.Result under Performance Settings, “Using” followed by the game’s name (not “Using default profile”), “Use per-game profile” switched on, and Frame Limit at 60. If it shows 144, the cap isn’t in effect: take a screenshot and give it to the agent.
  4. Change one profile yourself. Move that game’s slider in SimpleDeckyTDP to a different wattage, then ask the agent to read the game’s profile back from the plugin’s settings file.Result the agent reports the new wattage for that game and leaves every other game’s profile as it was.
  5. Ask the agent which of your games are on the microSD card, then decide which stay. Use Step 6’s rule: older and lighter games on the card, big modern games on the SSD.Result a list by drive, and a short list of your own, naming any heavy game on the card that should move to the SSD and any light game on the SSD that could free space.
  6. Turn off remote access. In Settings → Developer, switch CEF Remote Debugging off, then run sudo systemctl disable --now sshd on the handheld if you won’t use SSH again. Restart Gaming Mode and check Decky still loads.Result SimpleDeckyTDP still opens from Quick Access, and the agent can no longer reach the handheld.

If you use Heroic or Xodus Nexus, launch one of those games before step 6 and open SimpleDeckyTDP. You should see the game’s own wattage, such as 9 W handheld for a light game, and not the default 12 W. I checked this with a Heroic game.

Part 3 of 4 Check

Check yourself

The agent says it set a 60 fps cap on 50 games, and that reading Steam's config back confirmed all 50. What do you check before you believe it?

Launch one of those games and look at Quick Access → Performance, or ask the agent for a screenshot of it. A setting can be saved in a config file and still not be the setting the Frame Limit slider uses. That happened in Step 5: the config showed 60 for all 112 games, and the panel showed 144.

You're playing on the TV with the handheld on the charger, and SimpleDeckyTDP shows the handheld wattage. What's wrong?

The plugged-in profile should apply whenever the charger is in. If the panel never shows “(AC)”, check that “Enable per-game AC Power TDP Profiles” is switched on in the plugin’s advanced settings. If Steam has just restarted, give it about 20 seconds: the plugin waits for Steam to report the power state.

Your SSD is nearly full and the microSD card has room. Which goes to the card: a 2D indie game or Cyberpunk 2077?

The indie game. The card reads large files about 35 times slower than the SSD, which shows up as long loading screens and stutter in open-world games that load scenery as you play. Light and older games run fine from the card.

A game you added from Heroic was in your library, and after you played something else it vanished. What happened?

Heroic added the shortcut while Steam was running, and Steam wrote its own copy of the shortcut list back over the file the next time it saved. Add the game again with Steam closed, restart Steam after adding it, or ask the agent to add it through Steam itself.

You've added a game from Heroic, and it runs at the default 12 W instead of its own profile. What do you ask the agent?

Ask it to launch the game and read which ID SimpleDeckyTDP uses for it, then write the profile under that ID. The plugin stores a shortcut’s profile under the ID Steam gives that shortcut (Step 7), so a profile written under any other ID is never used.

Part 4 of 4 Keep

Keep this

Look at the screen before you accept “done”

Yes, an agent can write profiles for a whole library. Mine wrote profiles for 161 games, and they were working 35 minutes after my first prompt. The Performance panel with the game running is where you see whether they worked, and for my frame caps it showed they hadn’t until the agent fixed them.

Asked where at work I take “done” from an AI tool without checking, I answered:

Nowhere. On a first run, anything new or recently adjusted needs oversight.

Letting an agent into a device on my home network was fine by me, but then again I’m a power user. And this is a games machine; there is no critical data on here. If yours holds anything that matters, turn remote access off afterwards, as in the last step above.

What to do on a job like this:

  • Look where the setting takes effect. For a game, that’s the Performance panel with the game running. Steam’s config showed the 60 fps cap as saved, and the panel showed 144.
  • Ask the agent to read a value back after it writes one, and to say how it checked.
  • Ask for a backup before any bulk change, and keep the path to it.
  • Run long jobs one item at a time, and check each one finished before starting the next.
  • Turn off CEF Remote Debugging and SSH once the job is done.

In the Kit Library, members can get the prompts in step order as one file, with the notes on backups and turning remote access off.