---
title: "Deploy iMessage Agent Template"
description: "Deploy a personal AI agent to iMessage using Photon"
category: "Automation"
url: https://railway.com/deploy/imessage-agent-template
---

# Deploy iMessage Agent Template

Deploy a personal AI agent to iMessage using Photon

**[Deploy iMessage Agent Template on Railway](https://railway.com/template/imessage-agent-template)**

- **Creator:** Photon
- **Category:** Automation
- **Total deploys:** 6

## Template content

### railway-imessage-template

- **Source:** https://github.com/photon-hq/railway-imessage-template
- **Public domain:** Yes

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18

## Documentation

# Deploy and Host iMessage Agent Template on Railway

Connect OpenAI Codex to iMessage through [Photon](https://photon.codes) with a one-click Railway deployment. This template provisions the application, PostgreSQL database, and persistent storage needed for authentication, agent state, and workspaces.

## About Hosting iMessage Agent Template

Photon Spectrum provides the iMessage connection, while OpenAI Codex handles reasoning and task execution. After deployment, open the web dashboard, enter the owner phone number, connect Photon, and authenticate ChatGPT. The service then runs continuously on Railway as a private, single-owner iMessage assistant.

## Common Use Cases

- Access Codex through iMessage
- Run personal tasks and workflows from your phone
- Maintain persistent agent state and workspaces
- Add optional long-term memory with Supermemory

## Dependencies for iMessage Agent Template Hosting

- A Railway account
- A Photon Spectrum account
- A ChatGPT account with Codex access
- PostgreSQL, included by this template
- An optional Supermemory API key

## Why Deploy iMessage Agent Template on Railway?

Railway provides one-click infrastructure provisioning, managed PostgreSQL, persistent volumes, public networking, and automatic deployments from GitHub. This template packages those components so users can connect Photon and ChatGPT through the setup dashboard without manually configuring each service.

## Similar templates

- [N8N Main + Worker](https://railway.com/deploy/n8n-main-worker) — Deploy and Host N8N with Inactive worker.
- [Evolution API with n8n](https://railway.com/deploy/evolution-api-with-n8n) — Automate WhatsApp workflows with Evolution API, n8n, and Postgres.
- [Postgres Backup](https://railway.com/deploy/postgres-s3-backups) — Cron-based PostgreSQL backup to bucket storage

Open this page in a browser: https://railway.com/deploy/imessage-agent-template
