---
title: "Serain · A personal AI agent you text over iMessage"
description: "Serain is an open-source personal AI agent that lives in iMessage and runs on your own server. Mail, calendar, research and memory, with a confirmation before anything that cannot be undone."
canonical: https://serain.si/
language: en
last_updated: 2026-10-14
---

# Serain

> Serain is an open-source personal AI agent that lives in iMessage and runs on your own server. Mail, calendar, research and memory, with a confirmation before anything that cannot be undone.

**Text it like a friend. It handles the rest.** A personal AI agent in your iMessage. Open source, on your own server.

## One chat for the things you keep putting off.

- **Mail that reads itself.** Notices what you are waiting for. Sends only after your 👍.
- **Your calendar in a sentence.** iCloud or Google. Free slots computed in code.
- **It keeps an eye on things.** Trains, prices, replies. It speaks up when something changes.
- **It remembers what matters.** Facts with provenance. You can see and correct all of it.
- **Talk, if you'd rather.** Voice messages both ways, transcribed on your server.

## It asks before it acts.

Every tool has a level. Anything you cannot undo waits for your 👍.

- `read`: Runs right away
- `write_reversible`: Runs, and you can undo it
- `irreversible`: Waits for your 👍
- `money`: Always asks. Never “yes, always”

**One message stops everything.** Read by code, not the model. Survives a restart. [The full security model](https://github.com/valewnrt/serain/blob/main/README.md#security-model)

## Yours, on your server.

No hosted service, no account with us, no open port.

Your iPhone (iMessage) → Photon (free plan) → Your server (4 GB VM) → Supabase (your project)

## Plugs into what you already use.

Levels set by us, never by the provider.

- [Gmail](https://serain.si/connectors/gmail/): Every folder, attachments opened in the sandbox. (Mail · Reads, acts after confirmation)
- [IMAP & SMTP](https://serain.si/connectors/imap/): Any mailbox, from GMX to your own server. (Mail · Reads, acts after confirmation)
- [Google Calendar](https://serain.si/connectors/google-calendar/): Events and free slots, computed in code. (Calendar · Reads, acts after confirmation)
- [iCloud Calendar](https://serain.si/connectors/icloud-calendar/): Over CalDAV, the right calendar for each event. (Calendar · Reads, acts after confirmation)
- [Apple Calendar, Reminders, Contacts](https://serain.si/connectors/apple/): Read only, through the optional Mac companion. (Apple · Read only)
- [Tavily](https://serain.si/connectors/tavily/): Web search. Links only to pages Serain opened. (Web · Read only)
- [YouTube](https://serain.si/connectors/youtube/): Watches with picture and sound. Only the link leaves the server. (Video · Read only)
- [TikTok, Instagram, X](https://serain.si/connectors/social-video/): Off by default. Downloads in the sandbox, at your own risk. (Video · Read only)
- [COROS](https://serain.si/connectors/coros/): Sleep, HRV, recovery, training load and activities from your COROS watch. Read only. (Health · Read only)
- [Bank](https://serain.si/connectors/bank/): Balance and transactions of your bank account, read only. Serain cannot make transfers with it. Approval in your bank's app, via Enable Banking. (Finance · Read only)

[All connectors](https://serain.si/connectors/) · [Submit yours](https://serain.si/connectors/submit/)

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

## The sun goes down. Serain keeps going.

Free under AGPL-3.0. You bring the keys.

```bash
git clone https://github.com/valewnrt/serain
cd serain && pnpm install
# then: docs/SETUP.md
```

## Links

- [GitHub](https://github.com/valewnrt/serain)
- [Setup](https://github.com/valewnrt/serain/blob/main/docs/SETUP.md)
- [Architecture](https://github.com/valewnrt/serain/blob/main/docs/ARCHITECTURE.md)
- [Security policy](https://github.com/valewnrt/serain/blob/main/SECURITY.md)
- [Deutsche Fassung](https://serain.si/de/)
