Skip to content

About

OpenClaw channel plugin for Photon/Spectrum iMessage

Resources

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

 

History

34 Commits

Folders and files

Repository files navigation

Photon OpenClaw Channel

Photon connects OpenClaw to Spectrum providers such as iMessage. It is built as a normal OpenClaw channel plugin and routes inbound Spectrum messages through OpenClaw's channel runtime.

New install? Follow Installation, then let the setup wizard do the rest — see Setup (Device-Code Login). It signs in to Photon with a device code, provisions the project and secret automatically, and writes the config for you.

Installation

Requirements: OpenClaw ≥ 2026.6.10 and Node 20+ on the machine that runs the OpenClaw gateway.

  1. Get the code.

    git clone https://github.com/Mouxy/openclaw-photon.git ~/openclaw-photon
  2. Install dependencies. The plugin needs spectrum-ts and friends at runtime:

    cd ~/openclaw-photon && npm install
  3. Register the plugin with OpenClaw. Link the checkout so future git pulls take effect without reinstalling:

    openclaw plugins install --link ~/openclaw-photon

    This records the path under plugins.load.paths in openclaw.json and enables the photon plugin entry. (Omit --link to copy instead of link; openclaw plugins install <git-url> also works if the machine has git credentials for the repo.)

  4. Restart the gateway so the plugin loads:

    openclaw gateway restart
  5. Verify. openclaw plugins list should show photon, and openclaw plugins doctor should report no load issues.

  6. Configure the channel. Run openclaw onboard, pick Photon, and follow Setup (Device-Code Login) — it provisions credentials, registers your number, and (on business-tier accounts) mini-app card defaults.

  7. Keep it updated. With a linked install:

    cd ~/openclaw-photon && git pull && npm install && npm test
    openclaw gateway restart

Or just ask OpenClaw

If you already have an OpenClaw agent running (on any other channel — CLI, Telegram, etc.), you can skip the manual steps and ask it to install the integration itself. For example:

Install the Photon iMessage channel plugin from https://github.com/Mouxy/openclaw-photon — clone it, run npm install and npm test, register it with openclaw plugins install --link, restart the gateway, and confirm it shows up in openclaw plugins list. Then walk me through the Photon device-code setup.

The device-code login itself needs a human in the loop (you approve the browser prompt), but the agent can drive everything around it and tell you exactly when to click.

Minimal Config

{
  "channels": {
    "photon": {
      "enabled": true,
      "provider": "imessage",
      "projectIdEnv": "PHOTON_PROJECT_ID",
      "projectSecretEnv": "PHOTON_PROJECT_SECRET",
      "dmPolicy": "pairing",
      "groupPolicy": "allowlist",
      "groupAllowFrom": [],
      "requireMention": true,
      "mentionNames": ["OpenClaw", "Assistant"],
      "sendReadReceipts": true,
      "typingIndicators": true,
      "inboundBatching": true,
      "inboundBatchDelayMs": 2500,
      "inboundBatchMaxDelayMs": 8000,
      "dispatchControlEvents": false,
      "dispatchPollVotes": true,
      "maxInboundAttachmentBytes": 20971520,
      "maxOutboundAttachmentBytes": 52428800,
      "nativeActions": true,
      "dangerousNativeActions": false,
      "effectAck": "confirmed",
      "miniAppDefaults": {
        "appName": "Example",
        "teamId": "TEAMID1234",
        "extensionBundleId": "com.example.messages.extension",
        "url": "https://example.com/imessage?id={{runId}}&phase={{phase}}",
        "caption": "Example",
        "subcaption": "Open in Messages",
        "summary": "Example mini-app card"
      }
    }
  }
}

Setup (Device-Code Login)

The channel ships an OpenClaw setup wizard (run openclaw onboard, or the channel setup flow, and pick Photon) with a Photon device-code login that mirrors the hermes photon setup flow from the Hermes native integration. You never have to copy credentials out of the dashboard by hand.

What the wizard does

  1. Choose a connection method. If credentials are already configured the wizard defaults to keeping them; otherwise it offers:
    • Log in with a device code (recommended) — fully automated provisioning, described below.
    • Enter a project id and secret manually — paste values from app.photon.codes, or answer "use env" to read them from PHOTON_PROJECT_ID / PHOTON_PROJECT_SECRET at runtime.
  2. Device login (RFC 8628). The wizard requests a device + user code from app.photon.codes/api/auth/device/code using Photon's published CLI device client id (photon-cli), then shows:
    • the verification URL (open it on any device),
    • the user code to confirm there. It polls …/device/token per RFC 8628 — honouring authorization_pending, slow_down (+5s), and HTTP 429 (+10s) — until you approve, the code expires, or access is denied.
  3. Token validation. The issued dashboard token is verified against both GET /api/auth/get-session and GET /api/projects/ before it is trusted, so a token that only half-works fails at setup time, not at runtime.
  4. Project provisioning. A project named "OpenClaw" is found by name or created (POST /api/projects). The dashboard project id is the Spectrum project id, so it doubles as the runtime projectId.
  5. Secret rotation. The project secret is only readable at rotation time, so the wizard calls POST /api/projects/{id}/regenerate-secret and persists the result immediately. ⚠️ Rotation invalidates any previously issued secret for that project — if something else (e.g. a Hermes install) shares the project, update it, or keep separate projects per agent.
  6. Operator registration (optional). Enter your own iMessage number in E.164 form (+15551234567) and the wizard registers it as a Spectrum user on the project (idempotent — re-running setup does not duplicate users), then prints the iMessage line to text: the user's assignedPhoneNumber, falling back to the project's provisioned iMessage line.
  7. Mini-app cards (business accounts). Native mini-app / status cards (sendMiniApp, sendStatusCard) need a business-tier Photon account plus Apple iMessage-extension metadata. The wizard checks the project's plan via Photon's billing API: on business/enterprise it offers to collect miniAppDefaults (display name, 10-character Apple Team ID, extension bundle id, default card URL); on other plans it explains the upgrade path and moves on; and if the plan can't be detected it simply asks whether you have a business account. Skipping is always fine — every other capability (text, media, reactions, edits, unsends, polls, effects, group chats) works on any plan, and you can add channels.photon.miniAppDefaults later or re-run setup.
  8. Config write. projectId, projectSecret, and any miniAppDefaults are written to channels.photon (or channels.photon.accounts.<id> for named accounts) and the account is enabled.

After setup

  • DMs are pairing-gated by default (dmPolicy: "pairing"). Approve new senders with openclaw pairing approve photon <code>, or add numbers to allowFrom.
  • Send photonDoctor through the message tool at any time to check channel health, recent deliveries, and transport errors.

Troubleshooting

  • invalid_client on step 2 — hosted Photon allowlists device client ids; the integration uses the published photon-cli id. If Photon rejects it, upgrade this plugin or fall back to manual entry.
  • expired_token / timeout — the device code lapsed before approval; re-run setup to get a fresh code.
  • access_denied — the login was rejected in the browser.
  • Token accepted but project APIs reject it — the wizard surfaces this at step 3; retry the login, and if it persists check your Photon account's project permissions.
  • Staging / self-hosted Photon — override the hosts with PHOTON_DASHBOARD_HOST and PHOTON_SPECTRUM_HOST.

Production Config

The intended production profile is cloud iMessage through Photon/Spectrum:

{
  "channels": {
    "photon": {
      "enabled": true,
      "provider": "imessage",
      "local": false,
      "projectIdEnv": "PHOTON_PROJECT_ID",
      "projectSecretEnv": "PHOTON_PROJECT_SECRET",
      "dmPolicy": "pairing",
      "groupPolicy": "allowlist",
      "groupAllowFrom": ["<cached-spectrum-group-space-id>"],
      "requireMention": true,
      "mentionNames": ["OpenClaw", "Assistant"],
      "sendReadReceipts": true,
      "typingIndicators": true,
      "inboundBatching": true,
      "inboundBatchDelayMs": 2500,
      "inboundBatchMaxDelayMs": 8000,
      "dispatchControlEvents": false,
      "dispatchPollVotes": true,
      "nativeActions": true,
      "dangerousNativeActions": false,
      "effectAck": "confirmed",
      "maxInboundAttachmentBytes": 20971520,
      "maxOutboundAttachmentBytes": 52428800
    }
  }
}

Secrets should come from environment variables or the local OpenClaw config store. Do not commit project secrets.

Production defaults are intentionally conservative for a persistent iMessage agent:

  • nativeActions=true exposes Spectrum/iMessage-native actions such as reactions, read receipts, replies, edits, unsends, uploads, effects, polls, backgrounds, group controls, and mini-app cards through OpenClaw's shared message action surface.
  • dangerousNativeActions=false keeps disruptive or user-affecting native operations owner-gated by default. Group rename/avatar/background, advanced poll mutation, sticker placement, location requests, and Notify Anyway are available to the command owner, and become generally available only when this flag is explicitly set to true. Mini-app cards are available for direct iMessage chats; sending a mini-app card into a group remains owner-gated.
  • sendReadReceipts=true marks accepted inbound iMessages read best-effort in remote iMessage mode. Local mode does not send read receipts.
  • typingIndicators=true refreshes the iMessage typing indicator about every 4 seconds while long-running accepted messages are processed. It suppresses visible tool/progress chatter so the chat only gets the final reply. progressUpdates remains a backwards-compatible alias for older configs.
  • inboundBatching=true waits briefly for close follow-up messages from the same chat before dispatching one combined agent turn. The default quiet window is inboundBatchDelayMs=2500, capped by inboundBatchMaxDelayMs=8000 so a rapid burst cannot delay indefinitely.
  • dispatchControlEvents=false records noisy lightweight controls such as typing without starting a fresh agent turn. Tapbacks and unsends are surfaced as normal inbound context because they are deliberate user-visible message events.
  • dispatchPollVotes=true lets selected iMessage poll options start an agent turn while still suppressing poll deselection noise. This makes native polls a practical picker/choice interface. Set it to false when polls should remain passive telemetry only.
  • maxInboundAttachmentBytes=20971520 (20 MiB) limits inbound media cached into OpenClaw's media store. maxOutboundAttachmentBytes=52428800 (50 MiB) rejects oversized local outbound files and buffers before handoff to Spectrum.
  • iMessage bubble/screen effects and iOS text animations are available through sendWithEffect, but normal sends do not use effects by default.
  • effectAck="confirmed" makes sendWithEffect wait for iMessage confirmation and return message ids. effectAck="optimistic" returns as soon as the effect send is handed off and records any later delivery failure in Photon status. Per-action effectAck=optimistic or fast=true overrides the account default.
  • miniAppDefaults is optional. Use it only when you have real iMessage app extension metadata you want Photon to reuse for direct-chat mini-app cards. String fields can include {{runId}}, {{phase}}, {{step}}, {{result}}, or any matching action parameter. URL placeholders are percent-encoded.
  • groupPolicy="allowlist" means groups are blocked unless their cached Spectrum group space id is listed in groupAllowFrom. With the production default groupAllowFrom=[], all group chats are blocked until explicitly allowed. requireMention=true still applies to allowed groups.
  • photonDoctor and status diagnostics report runtime state, cached and persisted spaces, message/reaction cache sizes, reconnect count and last reconnect time, stream/media/action errors, unsupported content markers, and last inbound/outbound timestamps, message ids, and space ids.

For local iMessage experiments, set:

{
  "channels": {
    "photon": {
      "provider": "imessage",
      "local": true
    }
  }
}

Local mode avoids Photon cloud credentials but has fewer iMessage capabilities. Cloud/dedicated Photon mode is the preferred target for a rich always-on agent channel.

Group Chats

iMessage group chats are fully supported in remote/cloud mode (Spectrum chat guids containing ;+; are treated as groups; DMs use any;-;<address>):

  • Gating. groupPolicy defaults to "allowlist": a group is blocked until its cached Spectrum group space id is added to groupAllowFrom. Message the agent's line from the group once, then read the space id from photonDoctor output (or the persisted spaces list) and allow it.
  • Mentions. requireMention=true (default) means the agent only answers group messages that address it by one of mentionNames (default ["OpenClaw", "Assistant"]); the wake word is stripped before the turn.
  • Group actions. Reactions, replies, edits, unsends, read receipts, polls, effects, and stickers all work in allowed groups. renameGroup, setGroupIcon, and setBackground are owner-gated (or dangerousNativeActions=true), and group mini-app sends are owner-gated too. Spectrum requires cloud/dedicated mode for group rename/avatar/ background — local mode rejects them.
  • Creation. The channel cannot create new group chats; it joins conversations that already include the agent's iMessage line.

Smoke Provider

Use the terminal provider to prove OpenClaw routing before iMessage auth:

{
  "channels": {
    "photon": {
      "provider": "terminal",
      "dmPolicy": "open",
      "groupPolicy": "open"
    }
  }
}

Safety Defaults

  • DMs default to pairing.
  • A new DM sender gets a pairing challenge. Approve it with openclaw pairing approve photon <code>.
  • Groups default to allowlist + mention required.
  • Proactive outbound can use a cached Spectrum space, an existing iMessage space id, or a bare E.164/email DM target that Spectrum can resolve/create.
  • Bare phone/email targets are supported for DMs. Cold group sends still mostly require the group to speak first so the Spectrum space is cached; a dedicated group resolver/create flow is future work.
  • Direct iMessage slash commands are surfaced as authorised OpenClaw text commands for paired/allowed DM senders, so commands such as /goal, /status, /help, and /models can use OpenClaw's normal command runtime instead of a Photon-specific command parser. If commands.text=false, Photon respects that and leaves slash text as ordinary message content.
  • Photon also handles a few direct-only shortcuts before a model turn: /doctor or /photon returns Photon channel diagnostics, /effects lists supported iMessage effects and text animations, /apps summarises direct-chat app affordances and mini-app config readiness, /effect <name> <message> sends a native bubble/screen effect, and /animate <name> <message> sends an iOS text animation. Generic commands such as /status and /help deliberately stay with OpenClaw's normal command runtime.
  • Inbound message ids are deduped in-memory for at-least-once stream replay.
  • If the Spectrum message stream ends or throws, the channel re-subscribes with capped exponential backoff.
  • Remote iMessage stream resilience mostly lives inside spectrum-ts. Keep the dependency current because recent versions add cursor-based catch-up, live buffering during catch-up, event dedupe, capped jittered reconnect, and persistent-failure escalation.
  • Spectrum's internal [spectrum.stream] reconnect logs do not currently update Photon persisted runtime status, so openclaw channels status --probe can still be green during an internal stream reconnect storm. On local deployments, scripts/photon-stream-watchdog.sh watches the gateway log and restarts the gateway only after repeated or persistent stream degradation.
  • Treat a single [spectrum.stream] stream interrupted; reconnecting line as degraded, not fatal. Treat repeated lines in a short window, persistent failure logs, fresh PERMISSION_DENIED, or fresh Target not allowed as actionable.
  • Remote iMessage sends retry once after a transport drop by recreating the Spectrum app and resolving a fresh space. Inbound reply recovery falls back to an unthreaded send if the original threaded reply object came from the stale client. Keep this capped: Spectrum/iMessage does not expose a clear outbound idempotency key, so repeated retries can duplicate visible messages.
  • openclaw channels status --probe includes Photon runtime status when the gateway asks the plugin to probe the account.
  • message(action=photonDoctor, channel=photon) returns a JSON diagnostic with running state, cached spaces/messages/reaction handles, reconnect count and last reconnect time, last inbound/outbound timestamps, last inbound/outbound message and space ids, last stream/media/action error, unsupported content markers, native policy flags, and whether custom mini-app content is exposed. status returns the same runtime status through the shared message action adapter.

iMessage Formatting Policy

Photon should make use of iMessage/Spectrum-native content instead of treating iMessage like a plain-text bot channel.

  • Text replies are sent as Spectrum markdown(...) so bold, lists, code, and markdown links can be rendered as rich iMessage content where the provider supports it.
  • Before sending, Photon runs outbound text through a small iMessage presentation pass:
    • Markdown headings become compact bold lines instead of oversized document headings.
    • Pipe tables become short bullet rows, because iMessage bubbles handle tables poorly.
    • Task-list checkboxes become readable Done: / Todo: bullets.
    • Fenced code blocks are left untouched.
  • Standalone URL replies are sent as Spectrum richlink(...) so iMessage can render a native preview card.
  • Reply payload media is sent as Spectrum attachment(...) for HTTP(S) URLs and local file paths.
  • Audio-looking media (.m4a, .mp3, .opus, .wav, etc.) is sent as Spectrum voice(...); other media is sent as a normal attachment.
  • Multiple outbound media items are bundled with Spectrum group(...) where the provider supports grouped rendering.
  • Inbound attachment and voice content is read via Spectrum content.read() and cached into OpenClaw's media store when it is below maxInboundAttachmentBytes (default 20 MiB), so the agent can see image, audio, video, and document payloads instead of only a text marker.
  • Outbound local files are checked before send: the path must resolve to a readable file and must be below maxOutboundAttachmentBytes (default 50 MiB). HTTP(S) URLs are left to Spectrum to fetch lazily.
  • Unsupported attachment references such as opaque media://... values are left as readable text rather than silently dropped.
  • The first text/rich item is sent as a reply to the inbound iMessage; follow-up attachments are sent in the same space.
  • Agent turns are wrapped in space.responding(...) when available so remote iMessage users see a typing indicator while OpenClaw is composing.
  • Heartbeat/proactive turns can also show typing via OpenClaw's channel heartbeat typing hooks.
  • Accepted inbound iMessages are marked read best-effort when sendReadReceipts=true. Spectrum marks the containing chat read rather than one message, and iMessage may only make the receipt visibly obvious after subsequent chat activity.
  • Tapbacks and unsends are recognised and surfaced as normal inbound context, for example [Reaction: ❤️] or [Message unsent].
  • Noisy lightweight control events such as typing are recognised but do not trigger a fresh agent turn unless dispatchControlEvents=true. Selected poll votes are the exception when dispatchPollVotes=true, so native polls can act as picker-style choices.
  • In group chats with requireMention=true, a leading wake word is stripped before the prompt reaches the agent, so @Assistant, check this becomes check this.

Native iMessage Actions

Photon exposes Spectrum/iMessage-native behaviour through OpenClaw's shared message action adapter instead of private side commands.

  • react sends a native reaction/tapback through Spectrum message.react(...).
  • read marks the iMessage chat read through Spectrum's iMessage read(...) control.
  • reply sends a native threaded reply where Spectrum supports it.
  • edit rewrites an outbound message. The new body is sent as plain text — Spectrum's iMessage provider rejects markdown/richlink edit content — and if the Spectrum edit path fails, the action retries once through the advanced iMessage SDK before surfacing an error. iMessage's native edit window (~15 minutes) still applies server-side.
  • unsend retracts an outbound message, with the same advanced-SDK retry. iMessage allows unsending regular messages for roughly 2 minutes.
  • edit/unsend only target messages the agent sent. With an explicit messageId the message must be outbound; without one, the most recent agent-sent message in the target chat is used (the inbound message that triggered the turn is never a candidate).
  • delete is accepted as an OpenClaw alias for native unsend.
  • sendWithEffect sends text with iMessage effects such as slam, loud, gentle, invisible, confetti, fireworks, balloons, heart, lasers, celebration, sparkles, spotlight, or echo.
  • By default sendWithEffect waits for iMessage confirmation so it can return message ids. Set account config effectAck: "optimistic" or pass effectAck=optimistic/fast=true to return as soon as the effect send is handed off; delivery errors are recorded in Photon status instead of blocking the chat loop.
  • sendWithEffect can also send iOS text animations by passing textEffect instead of effect. Supported text effects are big, small, shake, nod, explode, ripple, bloom, and jitter. Pass phrase to animate one matching phrase, or start/length to target a UTF-16 text range; the default range is the whole message. Text animations go through Photon's lower-level advanced iMessage client because Spectrum exposes bubble/screen effects directly, but not text-effect ranges yet.
  • Direct chats can trigger the same whole-message text animations with /animate <name> <message>. Use the action interface when phrase/range targeting is needed.
  • Effects are available but are not the default normal-send behaviour. Use sendWithEffect only when the effect is intentional.
  • sendContact / contact / shareContact sends a native contact card using Spectrum contact content. Pass a full vCard, or fields such as name, phone, email, url, org, title, and note.
  • poll creates a native iMessage poll through Spectrum when remote iMessage mode supports it.
  • addPollOption / pollAddOption, pollVote / votePoll, and pollUnvote / unvotePoll expose the lower-level advanced iMessage poll management APIs. They require a pollMessageId or messageId; voting also requires optionId. These are owner-gated by default because they mutate a visible poll as the configured iMessage account.
  • placeSticker / sticker uploads a local sticker image or base64 buffer and places it on a target message. It accepts x, y, and optional width, scale, and rotation. It is owner-gated by default.
  • requestLocation / locationRequest sends Apple's visible Find My location request card to address/phone/email in the target chat. It is owner-gated by default.
  • notifyAnyway triggers Apple's Notify Anyway action for a Focus-silenced target message. It is owner-gated by default and should be used sparingly.
  • sendMiniApp / sendCustomizedMiniApp / mini-app sends a Spectrum custom iMessage app card in direct chats. The card needs real iMessage extension metadata: appName, teamId, extensionBundleId, url, optional appStoreId, and visible layout fields such as caption/subcaption. Set miniAppDefaults in config to avoid passing those identifiers every time. Group mini-app sends are owner-gated by default.
  • sendStatusCard / status-card sends an opinionated OpenClaw status mini-app card using configured miniAppDefaults. It accepts phase/status values such as done, needsInput, or problem, plus runId, step, and result.
  • upload-file sends one or more validated media paths/URLs, or a base64 buffer, as an attachment or voice message.
  • renameGroup and setGroupIcon use Spectrum space.rename(...) and space.avatar(...); topic-edit is accepted as an OpenClaw alias for group rename/avatar edits.
  • setBackground sends Spectrum's iMessage chat-background control, including clear=true. Group appearance controls are disruptive, so they are exposed to the owner by default and to everyone only when dangerousNativeActions=true.

Photon keeps a small local state file under ~/.openclaw/state/photon/state.json with recent space ids, message ids, and reaction handles. That lets actions resolve known messages after a gateway restart via Spectrum space.getMessage when the provider supports it.

All outbound and native action paths should return an OpenClaw-shaped result: JSON with ok, channel, action for action calls, and channel, channelId, messageId for normal outbound delivery. Avoid bare boolean returns from delivery adapters.

Known Upstream Faults (2026-07-02)

  • Edit is broken server-side at Photon: MessageService/EditMessage returns INTERNAL code=13 for every edit within the edit window — on two independent projects, including direct advanced-SDK repros. The action fails fast (~8s) with the RPC named in the error. Unsend is unaffected.
  • Poll mutations require a dedicated line: on a dedicated (business-tier) line, CreatePoll returns a native GUID and addPollOption/pollVote/pollUnvote all work (verified live). On a shared line, CreatePoll returns a spc-msg-* id and every mutation against it — including that exact returned id — fails with No instance routed for this request (the mutation protos carry no chat guid, so Photon's shared gateway must route by pollMessageGuid and doesn't). The actions surface that as a classified "could not route" error. Poll creation and inbound vote ingestion work on both line types.

Retest after Photon confirms fixes; remove this section when both pass.

Live Native Matrix

Use this matrix for live iMessage verification after changing Spectrum, OpenClaw gateway action routing, or Photon state recovery:

  • Text: normal send via openclaw message send --channel photon.
  • Rich link: send a standalone HTTP(S) URL and confirm it renders as a native rich link.
  • Image/file: upload-file or normal media send with a local image/document.
  • Audio/voice: upload-file with asVoice=true or an audio-looking media path.
  • Grouped media: send two or more media items and confirm Spectrum group(...) behaviour.
  • Typing: accepted inbound messages should wrap the agent turn in space.responding(...); proactive typing uses heartbeat hooks.
  • Read receipt: read should mark the chat read best-effort. iMessage may only visibly update after later chat activity.
  • Reaction add/remove: react, then react with remove=true. Retest after a gateway restart because removal depends on persisted reaction handles.
  • Reply: reply against a known messageId.
  • Edit: edit against an outbound message id. Retest after restart.
  • Unsend: unsend/delete against an outbound message id. Retest after restart.
  • Effects: sendWithEffect with each bubble/screen effect family that matters.
  • Text animations: sendWithEffect with textEffect=big|small|shake|nod|explode|ripple|bloom|jitter and a phrase or explicit start/length.
  • Contact card: sendContact with a safe test contact or vCard.
  • Poll: poll with a question and at least two options.
  • Poll management: addPollOption, pollVote, and pollUnvote against a known poll message id and option id.
  • Sticker placement: placeSticker against a known inbound/outbound message id with a local small PNG.
  • Location request / Notify Anyway: verify only with explicit human intent, because both generate visible Apple-side user-affecting actions.
  • Group rename/icon/background: renameGroup, setGroupIcon, setBackground. These are owner-gated by default because they change shared chat state.
  • Mini-app card: sendMiniApp / sendCustomizedMiniApp / mini-app sends a Spectrum custom iMessage app card. Test this in a direct chat first and use real app/team/bundle metadata. Group mini-app sends are owner-gated by default.

Current Limits

  • Local iMessage mode still has Spectrum's local-mode limits: no typing, reactions, threaded replies, edits, unsends, read receipts, group creation, chat background, chat rename, or group avatar support. Native message actions therefore require remote/cloud mode; local accounts only expose photonDoctor.
  • iMessage edits are text-only in Spectrum: edit sends the new body as plain text (no markdown styling), and iMessage's native edit/unsend windows still apply (~15 minutes for edits, ~2 minutes for unsend).
  • iMessage effects, contact cards, chat rename/avatar/background, mini-app cards, and read receipts are supported by Spectrum. Effects, iOS text animations, contact cards, chat rename/avatar, reactions, edits, unsends, polls, poll management, sticker placement, location requests, Notify Anyway, replies, uploads, backgrounds, mini-app cards, and read receipts are exposed through the shared message action adapter.
  • Group cold-send still needs an inbound message to warm the space cache unless a dedicated Spectrum route can resolve the group by id.

About

OpenClaw channel plugin for Photon/Spectrum iMessage

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages