SerainText it like a friend. It handles the rest.
A personal AI agent in your iMessage. Open source, on your own server.
- Today 8:12
can you get rid of the newsletters from this week
βShould I unsubscribe you from Shoe Outlet, Weekly Deals and City Events and move the 14 mails of the last 7 days to the trash?You can get the trash back, but not the unsubscribing.
πand remind me tomorrow at 8 to call the landlord
β°
seΒ·rein/sΙΛreΙͺn/ Β· noun
Fine rain that falls from a clear sky after sunset.
Quiet, always there, speaks up when it matters.
One chat for the things you keep putting off.
- Thursday 9:30
Berg Property still hasn't answered your mail from Tuesday about the heating.
send them a short reminder
βMail to Berg Property Subject: Heating Hi, just following up on my mail from Tuesday about the heating. Could someone take a look this week? Thanks, Alex Send it like this?I can't get it back after that.
π
when am I free on thursday for two hours
Thursday 9 to 12, or any time after 3.
block 9 to 11 for the tax return
β
- Sunday 21:04
is my 7:04 to munich tomorrow on time?
πRight now, yes. I'll keep an eye on it.
- Monday 6:12
Your 7:04 is 20 minutes late and leaves from platform 9.
π
remember that I don't eat fish
π- Friday 17:40
find us a table for four tonight near the office
Trattoria Sole, 8 minutes from the office, plenty without fish. 19:30 is free. Should I book it for 4?
π
0:07
β°Got it. Lena's birthday is on the 12th, I'll remind you on the 10th about a present.
-
01
Mail that reads itself
Notices what you are waiting for. Sends only after your π.
- Thursday 9:30
Berg Property still hasn't answered your mail from Tuesday about the heating.
send them a short reminder
βMail to Berg Property Subject: Heating Hi, just following up on my mail from Tuesday about the heating. Could someone take a look this week? Thanks, Alex Send it like this?I can't get it back after that.
π
-
02
Your calendar in a sentence
iCloud or Google. Free slots computed in code.
when am I free on thursday for two hours
Thursday 9 to 12, or any time after 3.
block 9 to 11 for the tax return
β
-
03
It keeps an eye on things
Trains, prices, replies. It speaks up when something changes.
- Sunday 21:04
is my 7:04 to munich tomorrow on time?
πRight now, yes. I'll keep an eye on it.
- Monday 6:12
Your 7:04 is 20 minutes late and leaves from platform 9.
π
-
04
It remembers what matters
Facts with provenance. You can see and correct all of it.
remember that I don't eat fish
π- Friday 17:40
find us a table for four tonight near the office
Trattoria Sole, 8 minutes from the office, plenty without fish. 19:30 is free. Should I book it for 4?
π
-
05
Talk, if you'd rather
Voice messages both ways, transcribed on your server.
0:07
β°Got it. Lena's birthday is on the 12th, I'll remind you on the 10th about a present.
It asks before it acts.
Every tool has a level. Anything you cannot undo waits for your π.
-
01
readRuns right away
what's on tomorrow?
Dentist at 9, then free until 3.
-
02
write_reversibleRuns, and you can undo it
block 9 to 11 for the tax return
β
-
03
irreversibleWaits for your π
Mail to Lena Running 10 minutes late, sorry! Send it like this?
π
-
04
moneyAlways asks. Never βyes, alwaysβ
One message stops everything.
Read by code, not the model. Survives a restart.
serain stop
stopped. i'm not doing anything until you write "serain resume".
Yours, on your server.
No hosted service, no account with us, no open port.
- Your iPhoneiMessage
- Photonfree plan
- Your server4 GB VM
- Supabaseyour project
The sun goes down. Serain keeps going.
Free under AGPL-3.0. You bring the keys.
$ git clone https://github.com/valewnrt/serain
$ cd serain && pnpm install
# then: docs/SETUP.md
Before you ask.
What is Serain?
Serain is an open-source personal AI agent for one person. You text it over iMessage, and it runs around the clock on your own server: it reads and cleans up your mail, keeps your calendar, reminds you, researches the web and remembers what matters to you.
Is Serain an app or a hosted service?
Neither. There is no app to install and no account with us. You run your own copy on a Linux server and bring every account and key yourself. You text it in the Messages app you already have.
What does it cost?
The code is free under AGPL-3.0. You pay for what you bring: Claude API usage per token, capped by a monthly budget you set (20 $ by default), and a server with 4 GB of RAM, typically a few euros a month. Supabase and Photon work on their free plans.
What do I need to run it?
A Linux server with Docker and at least 4 GB of RAM, a Supabase project, a Photon account for iMessage, an Anthropic API key and an Apple device with iMessage. Mail, calendars, web search and the web interface are optional.
Does it work with Android, WhatsApp or Telegram?
No. Its only channel is iMessage, through Photon, so you need an iPhone, iPad or Mac to text it.
Can it send mail or delete things without asking?
No. Every tool has a level. Reading runs right away and reversible changes can be undone, but anything you cannot undo, like sending a mail, waits for your π on a preview the code builds from the exact recipients and text. Anything that costs money asks every time. Mail is never deleted for good.
How do I stop it?
Text βserain stopβ. Code, not the model, reads it and locks every tool, pending approvals included, until you text βserain resumeβ. The state is stored in the database, so a restart does not lift it.
Which AI model does it use?
Claude, through the Claude Agent SDK, with your own Anthropic API key. OpenRouter is an optional fallback. Web research runs in a separate executor model that never sees your mail or your memory.
Where does my data live?
On your own server and in your own Supabase project. Credentials are sealed with a key only your server has, and the audit log never holds mail contents, calendar titles or bank data. Your messages pass through Photon, and model calls go to Anthropic.