Text it like a friend. It handles the rest.

A personal AI agent in your iMessage. Open source, on your own server.

  1. Today 8:12
  2. can you get rid of the newsletters from this week

    βœ…
  3. 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.

    πŸ‘
  4. 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.

  1. Thursday 9:30
  2. Berg Property still hasn't answered your mail from Tuesday about the heating.

  3. send them a short reminder

    βœ…
  4. 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.

    πŸ‘
  1. when am I free on thursday for two hours

  2. Thursday 9 to 12, or any time after 3.

  3. block 9 to 11 for the tax return

    βœ…
  1. Sunday 21:04
  2. is my 7:04 to munich tomorrow on time?

    πŸ‘€
  3. Right now, yes. I'll keep an eye on it.

  4. Monday 6:12
  5. Your 7:04 is 20 minutes late and leaves from platform 9.

    πŸ‘
  1. remember that I don't eat fish

    πŸ‘
  2. Friday 17:40
  3. find us a table for four tonight near the office

  4. Trattoria Sole, 8 minutes from the office, plenty without fish. 19:30 is free. Should I book it for 4?

    πŸ‘
  1. 0:07

    ⏰
  2. Got it. Lena's birthday is on the 12th, I'll remind you on the 10th about a present.

  1. 01

    Mail that reads itself

    Notices what you are waiting for. Sends only after your πŸ‘.

    1. Thursday 9:30
    2. Berg Property still hasn't answered your mail from Tuesday about the heating.

    3. send them a short reminder

      βœ…
    4. 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.

      πŸ‘
  2. 02

    Your calendar in a sentence

    iCloud or Google. Free slots computed in code.

    1. when am I free on thursday for two hours

    2. Thursday 9 to 12, or any time after 3.

    3. block 9 to 11 for the tax return

      βœ…
  3. 03

    It keeps an eye on things

    Trains, prices, replies. It speaks up when something changes.

    1. Sunday 21:04
    2. is my 7:04 to munich tomorrow on time?

      πŸ‘€
    3. Right now, yes. I'll keep an eye on it.

    4. Monday 6:12
    5. Your 7:04 is 20 minutes late and leaves from platform 9.

      πŸ‘
  4. 04

    It remembers what matters

    Facts with provenance. You can see and correct all of it.

    1. remember that I don't eat fish

      πŸ‘
    2. Friday 17:40
    3. find us a table for four tonight near the office

    4. Trattoria Sole, 8 minutes from the office, plenty without fish. 19:30 is free. Should I book it for 4?

      πŸ‘
  5. 05

    Talk, if you'd rather

    Voice messages both ways, transcribed on your server.

    1. 0:07

      ⏰
    2. 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 πŸ‘.

  1. 01
    read

    Runs right away

    1. what's on tomorrow?

    2. Dentist at 9, then free until 3.

  2. 02
    write_reversible

    Runs, and you can undo it

    1. block 9 to 11 for the tax return

      βœ…
  3. 03
    irreversible

    Waits for your πŸ‘

    1. Mail to Lena Running 10 minutes late, sorry! Send it like this?

      πŸ‘
  4. 04
    money

    Always asks. Never β€œyes, always”

One message stops everything.

Read by code, not the model. Survives a restart.

The full security model

  1. serain stop

  2. 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.

  1. Your iPhoneiMessage
  2. Photonfree plan
  3. Your server4 GB VM
  4. Supabaseyour project

Plugs into what you already use.

Levels set by us, never by the provider.

  • Gmail
  • IMAP & SMTP
  • Google Calendar
  • iCloud Calendar
  • Apple Calendar, Reminders, Contacts
  • Tavily
  • YouTube
  • TikTok, Instagram, X
  • COROS
  • Bank

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.

Everything else, in the README

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.