ContextCleaner: see every entry in the Windows 11 right-click menu, and which app added it — on the Microsoft Store.

Last updated:

Guided workflow variation

Awake while you are in the app.Not the rest of the day.

List the executables that matter and StayGreen watches which window is in front. One of yours is focused, it holds. Something else is focused, it releases — and goes back to watching, not off.

Name executables like code.exe and StayGreen holds the machine awake while one of them is the foreground window, releasing when it is not. It follows focus, not whether the process is running.

Pay once. Own it forever.

One-time purchase on the Microsoft Store · No subscription · Instant install

Buy through the Microsoft Store—instant install, automatic updates, and a Microsoft receipt for easy expensing. No account needed on our site, and no subscription on Store purchases.

Full StayGreen overview
One-time purchase No telemetry Local-first

windows · local-first · one-time purchase · no telemetry

If this sounds like your week

You do not want the machine awake all day, just during the work.

Turning keep-awake on manually means remembering to turn it off, and nobody does reliably. Leaving it on permanently is the same as disabling sleep, which defeats the purpose. What you actually want is for it to apply while you are doing the thing that needs it and stop when you are not.

Where tooling usually breaks

Windows has no per-application power behaviour.

Power settings are global. There is no way to say "do not sleep while I am in this application", so the choice is a global setting or a manual toggle you will forget. Both are worse than the behaviour you want, which is conditional and automatic.

Where StayGreen lands

Follow the foreground window.

You give StayGreen a list of executable names — the filename, like code.exe, not a path. It registers for the Windows foreground-change event, and each time focus moves it resolves the new window's owning executable and compares it against your list. A match holds the awake state; anything else releases it. Releasing returns to a watching state rather than off, so the rule stays armed and the next time you focus a listed app the hold comes back without you doing anything.

Pay once. Own it forever.

One-time purchase on the Microsoft Store · No subscription · Instant install

Buy through the Microsoft Store—instant install, automatic updates, and a Microsoft receipt for easy expensing. No account needed on our site, and no subscription on Store purchases.

Learn more about StayGreen

windows · local-first · one-time purchase · no telemetry

What you get

Feature highlights

No Polling, No Fake Input

Holds a documented Windows power request and reacts to system events, instead of a polling loop or simulated mouse movement.

Hardware Interlocks

Auto-pauses on battery, when Battery Saver is on, or when the lid closes with no external display attached — and resumes on its own.

Per-App Targeting

Keep awake only when specific apps like `ms-teams.exe` are active.

One-time purchase, perpetual license. Pay once, own it forever on the Microsoft Store.

One-time purchase, perpetual license. Pay once, own it forever on the Microsoft Store.

Engineering Proof

Event-driven · no polling loop

A power request, not a background loop.

StayGreen holds a Windows power request — created with PowerCreateRequest and set with PowerSetRequest — to ask Windows directly for the awake state. No fake mouse movement, no periodic wake pings, and no loop burning cycles to pretend the user is active.

It deliberately does not use the older SetThreadExecutionState flag, which is thread-affine: the flag belongs to the thread that set it. StayGreen changes its awake state from several threads — the command handler, the timed-session task, and the Win32 event worker — and a thread-affine flag produced inconsistent releases. The request API does not have that problem.

  • No polling loop: a foreground event hook, and one scheduled wake per timed session
  • No synthetic input events to trigger EDR or policy suspicion
  • No administrator rights, and no power plan or policy is modified

Task Manager, one machine, at idle

A single capture on one PC rather than a benchmark — we publish no averaged CPU or memory figure, because the app ships no measurement harness to produce one.

Windows Task Manager listing StayGreen at idle alongside other running applications

Product Interface

The StayGreen window showing the keep-awake switch, timed session presets, and per-app rule controls

A control panel built for intentional power-state overrides.

The StayGreen interface keeps the important decisions obvious: when to override sleep, how long to hold the state, and which app should trigger it. No command-line dance. No clutter disguised as enterprise UX.

Timed session: 15, 30, 60, or 120-minute presets, or a custom length, for meetings, uploads, renders, or overnight monitoring — so the hold releases itself instead of staying on indefinitely. Extend by 30 minutes or end it early.
Per-app rules: Name executables and StayGreen follows the foreground window, holding while one is in front and releasing when it is not — part of the workflow rather than a blanket machine-wide override.
Guardrails you can see: It pauses on battery, on Battery Saver, and when the lid closes with no display attached — each with its reason shown, and each resuming on its own.

Especially when

  • Keep a Windows machine awake without fake mouse movement or CPU-heavy polling loops
  • Prevent sleep during Teams, Slack, dashboards, uploads, meetings, or overnight monitoring
  • Work around aggressive Windows sleep policies with charger and lid guardrails

Who benefits

Real-world scenarios

The editing session

You want the display to stay on while you are in your editor or DAW, and normal power behaviour the rest of the time.

Add the executable to the list. Focus it and the hold applies; alt-tab away and it releases while the rule stays armed.

The reading session

You read long documents in a PDF viewer and the screen keeps dimming because reading involves no input.

Name the viewer. While it is in front the display-required request keeps the panel lit, without you touching the mouse.

The background job that needs a timer instead

Your long render runs in the background while you work in other applications, so a foreground rule would release the hold constantly.

Use a timed session for that. It outranks the foreground rules and holds regardless of what is focused, which is the right tool for background work.

Deep dive

What "while an app is open" actually means here

This is the part worth reading before you rely on it, because the obvious reading of the feature name is not quite what it does.

It follows the foreground window, not process existence. StayGreen registers for the Windows event that fires when the foreground window changes, and evaluates the rule at that moment. It resolves the window's owning process, reads the executable's filename, lowercases it, and compares it against your list. So the hold applies while a listed application is the window you are working in. Minimise it, or switch to something else, and the hold releases — even though the process is still running.

For the cases people usually want this for — editing, reading, presenting, monitoring a dashboard on screen — that is exactly right, because those are all activities where the app is in front of you. For a background job it is the wrong tool, and a timed session is the right one. Worth knowing rather than discovering.

Releasing goes to watching, not off. When focus moves away, the state returns to a watching state that means "enabled, rules armed, nothing currently held". The rule is still live and the next match re-acquires the hold. This is deliberate: a rule that switched itself off on the first release would need re-enabling every time you alt-tabbed.

Precedence is defined. If you have explicitly turned StayGreen off, the rule does not override you. If a timed session is armed, that outranks the rule, so a session cannot be cut short by focusing an unlisted window. Hardware pauses sit above everything — a listed app in the foreground on battery still pauses, if the battery rule is on.

Why an event hook rather than a loop. The alternative implementation is a timer that asks what the foreground window is every second or so. That works and it also means constant wakeups forever, most of which observe nothing changed. StayGreen instead receives a notification when focus actually changes, so between changes it does no work at all. The same principle applies across the app: one scheduled wake per timed session, and power, lid, and session state arriving as notifications. That is an architectural claim, not a measured one — there is no benchmark in the app, and no CPU or memory number here is being presented as measured.

Practical notes. Rules are executable filenames, so `code.exe` matches wherever it is installed and you do not have to maintain paths. Matching is case-insensitive. The hook is registered so that StayGreen's own window does not trigger its own rules. Process inspection uses the limited-information access right, which is why none of this needs administrator privileges.

Trusted by pragmatic desktop users

Built for people who prefer tools that stay local.

Real workflows: focus timers that stay visible, batches that never leave the disk, and renames you can rewind.

Customer review 01

PinPoint: Always On Top saves me so much time as I can organize all my report materials without having to flip between windows or tabs. I love the fact that it is straightforward and simple.

Senior Accountant · Manufacturing Company · United States · PinPoint Reviewed About PinPoint
Customer review 02

I used to get so frustrated when my Taskbar would freeze and disappear. Taskbar Sentinel has eliminated that pain without subjecting me to another subscription.

Darren · Calgary, Alberta, Canada · Taskbar Sentinel Reviewed About Taskbar Sentinel
Customer review 03

OpticBatch and MetaForge are a lifesaver for me as a person with a passion for photography. They give me the ability to stay organized and keep personal information confidential when I post pictures online.

Sherri · United States · OpticBatch & MetaForge Reviewed Browse the full catalog

Quotes are shown with customer permission; names and locations appear as reviewers provided them.

Our Core Moat

Engineered to respect your system boundaries.

Lightweight Native Stack

Compiled Rust core wrapped inside an optimized Tauri shell. No heavy background node loops or duplicate Chromium engines cooking your memory footprint (<25MB idle RAM).

100% Local-First Privacy

Executes entirely on-device with full offline isolation. Absolute zero background telemetry policies, no metrics aggregation, and zero mandatory cloud-sync accounts.

Perpetual Fallback Licenses

Pay a single, clear one-time purchase price. Own your specific native software utility execution tier permanently without artificial subscription paywalls or ongoing usage tax.

FAQ

Straight answers—no glossary dump

Does the app have to be focused, or just running?

Focused. StayGreen follows the foreground window, so the hold applies while a listed application is the window you are in and releases when you switch away, even though the process keeps running. For background jobs, use a timed session instead.

What do I put in the rule list?

Executable filenames, like code.exe. Not full paths, so a rule keeps working wherever the app is installed. Matching is case-insensitive.

Does it turn off when I switch to another app?

It releases the hold but stays armed, returning to a watching state. The next time you focus a listed app the hold comes back automatically — you never have to re-enable the rule.

Can a rule cancel a timed session I started?

No. A timed session takes precedence over the foreground rules, and an explicit off takes precedence over both. Hardware pauses sit above everything.

Does watching the foreground window cost anything?

It uses the Windows foreground-change event rather than polling, so between focus changes it does no work. Process inspection uses a limited-access right, which is why it needs no administrator privileges.

What does it need to run?

Windows 11, or Windows 10 version 1809 and later, plus the Microsoft Edge WebView2 runtime, which is already present on Windows 11 and updated Windows 10. It runs as a standard user, requests no administrator rights, and edits no power plan or registry power setting.

Is it private, and how do I get it?

StayGreen makes no network requests — there is no HTTP client in the build, no networking permission requested from Windows, and a content policy with no outbound destination. No telemetry, no account, nothing to opt out of. It needs no administrator rights and changes no power plan. It is a one-time purchase on the Microsoft Store; use the Microsoft Store button on this page for the current listing and price.

No fake mouse input.
No busy-wait “keep awake” hacks.

StayGreen holds a documented Windows power request — no fake input, no polling loop — with interlocks that pause on battery, on Battery Saver, and when the lid closes with no display attached, plus per-app rules that follow the foreground window.

Pay once. Own it forever.

One-time purchase on the Microsoft Store · No subscription · Instant install

Buy through the Microsoft Store—instant install, automatic updates, and a Microsoft receipt for easy expensing. No account needed on our site, and no subscription on Store purchases.

Open full product page

Technical specifications

Technical specifications for procurement

Spec Implementation
Data Sovereignty Sleep-prevention state is local; no remote presence or activity reporting
Telemetry Status None
Core Runtime Native Windows binary using SetThreadExecutionState / execution-state APIs
Network Requirements Fully functional offline
Deployment Compatibility Windows 10 and 11 (x64); direct purchase and Microsoft Store
System footprint Near-zero idle CPU; no polling loops or fake input injection
Hardware guardrails Auto-pause on battery unplug or lid close