You set it once.
Switch on the night lock. That is the only thing you ever do.
the odds of disturbed sleep for people who check social media most often. Levenson et al., 2016
Stay Clean quietly closes the doors you would rather keep shut after dark. Deeper sleep, fewer regrets, a clearer morning. No lectures, no streak guilt, just a calm black screen and one kind line.
Switch on the night lock. That is the only thing you ever do.
From 11 pm, Instagram and X rest until morning. One more reel stays one more reel.
Swiggy and Zomato close from 12 to 5 am, and the screen goes calm before you can order.
Adult sites close silently in the browser. Incognito too, with no message and no drama.
Everything opens again. You slept, and that was the whole point.
Each outcome sits beside the research behind the idea. Tap a row for the study.
Rules you set in daylight, kept at night.
A meta-analysis of 94 independent tests found that deciding in advance what you will do in a given situation helps people reach their goals.
Your 12–5 am rule is a plan made while calm and enforced while tired.
A speed bump built for a weak moment.
In a randomized trial of about 2,000 smokers, those offered a voluntary commitment contract were around 3 percentage points more likely to pass a 6-month test, and the effect held at 12 months. Only 11% took the offer up.
Device Admin makes uninstalling a deliberate step, and the settings pages stay shut overnight.
Instagram and X rest from 11 pm to 5 am.
Among 1,788 US adults aged 19–32, the most frequent social media checkers had about three times the odds of sleep disturbance versus the least frequent.
The Night lock removes the late check-in before it can start.
Instagram opens a few minutes in every 30. You choose how many.
143 students limited Facebook, Instagram and Snapchat to 10 minutes each per day. After three weeks they reported significantly lower loneliness and depression than the control group.
The 5-in-30 pacing is a gentler cap than the one in this study, so treat it as the same idea, not the same result.
Food apps stay closed from 12 to 5 am.
In a randomized crossover study of 845 people, blood glucose response was 8.3% higher after a dinner eaten one hour before bed than after one eaten four hours before.
The midnight order never gets placed.
The best habit tool is the one that asks nothing of you. Tools that wait for you to switch them on need you at the very moment you have the least willpower.
No session to start. No streak to protect. No daily tap. Do the six setup rows once, and every night after that is handled.
Less than 1% of your battery, all day. Even on an old one.
A direction, not a promise. Priorities follow what real people ask for. Tell us on GitHub.
Early thoughts, drifting. Hover or tap one to read it.
Stay Clean is for Android. It is not on iPhone, and not in the Play Store yet, so you install it directly from GitHub.
Compare this with the checksum on the release page before you install.
No. There is no account, no analytics and no server. The only network request is a tiny time check, so the app can tell a real clock from a changed one. The code is open for anyone to read.
It is built as a speed bump for a weak moment, not a prison. Some settings are held shut at night, and it never locks you out of your own phone. A determined person can still remove it by day. That is the honest trade-off.
It uses the Accessibility permission to see which app is open, and it is installed outside the Play Store. Android and Play Protect are cautious about that combination. The source and a checksum are published so you can verify it.
Swiggy and Zomato overnight, Instagram and X at night if you switch on the Night lock, Instagram pacing all day, and adult sites in Chrome and other popular browsers. On Reddit, only adult communities close, in the app or a browser. Ordinary communities, spoiler posts and your feed stay open.
Stay Clean is meant to stay free forever, and that has been the goal from the very beginning. Apple charges $99 a year for a developer account, and installing apps outside the App Store is difficult for most iPhone users. We do not want to give you a cumbersome experience, so Stay Clean stays Android only until we can raise enough to support it every year, or the founder can afford the fee. If you would like to help, all we ask is a one-time ₹10. Nothing more. Little by little, it adds up to what we need.
No. Stay Clean is an independent project and is not affiliated with or endorsed by Swiggy, Zomato, Instagram, X, Google or Meta.
Free, open source, and made to be kind.