Apps Act as the Member#
A Matter app runs with the same authority as a desktop extension. Once a member adds it, it acts as that member:
- Its pages, worker, and tools read and write the tables and boards of its space as the member. A private app's space is its owner's Personal space.
- It can trigger the member's routines for the app, start agent threads on their behalf, and send desktop notifications.
- Its worker and tools run as local Node processes on the member's computer under their OS user account.
Each app runs on its own isolated origin on Matter's local loopback proxy, and Matter only accepts requests to an app's proxy from that app's own pages and processes.
Every Version Is Signed#
Every deployment is signed with an Ed25519 signing key registered in the workspace. The server rejects unsigned or invalidly signed uploads, and each member's Matter desktop client verifies the signature and bundle hash again on their computer before executing any code.
A key represents its publisher—the workspace member who registered it. Every version signed
with that key belongs to that publisher, even if a teammate or CI pipeline ran the deploy command (in which
case Versions shows Sam (deployed by Ana)).
The one exception is a one-page app. The server packs its versions from HTML an agent gave it, and nobody signs them. Such a version only ever has pages, and for anyone but the member whose agent made it, they stay limited: there is no publisher to trust.
Adding an App#
An app that runs something for a member (a worker, tools, or routines of theirs) runs once they add it. The first time they open one someone else published, Matter shows what it is instead of loading it:
Published by Sam. It acts as you in Sales and runs on this computer.
Uses your connections
Gmail · Apify Not connected
Add does everything at once, for the member, on all their computers:
- It trusts the publisher: every version signed with any of their keys runs, so updates apply without asking. Other apps of theirs still wait to be added.
- It lets the app's code use the connections the version declares.
-
It makes this computer the app's computer: its worker runs here, in
the background, starting with Matter, and the member's routines for the app run here too. Its worker's
matter.onAddruns once, here.
On the member's other computers the app opens without asking: its pages work there, and its worker stays on the app's computer (Run here in the app's ⋯ menu moves it). Apps you published yourself (or signed with a key present on your computer) aren't asked about: opening one adds it.
Remove for me in the app's ⋯ menu stops the app on all the member's computers and deletes their routines for it. Their own tables and model choices for the app stay, ready if they add it again. Stop trusting Sam stops every app Sam publishes for them, until they add one again.
What the member decided is their own record: synced to their computers, and never readable or writable by teammates or workspace admins. Each computer still verifies every version's signature itself; the record only says whose signatures to accept. If a later version of an app is signed by a publisher the member doesn't trust, Matter asks again before running it.
Opening Without Add#
A version with no worker, no tools and no routines of the member's has nothing to add, so it opens on the first click. Until the member trusts its publisher, its pages are limited:
- They read and write the app's saved state, and its space's tables, boards, docs and files, as the member. The member already shares that space with whoever published the app.
- They reach nothing that acts as the member anywhere else: no threads or model calls, no connections, no routines, no notifications, no tools. Those calls fail.
When a limited page reaches for the member's agents, Matter asks in a bar above it: Lunch Poll, published by Ann, asks to use your agents. Allow trusts the publisher, as Add does, and the page works in full; Not now leaves it limited. Connections a version declares are asked about in the same bar as the app opens.
Design for this: let a page that only reads and writes its space's data work before anyone allows anything, and reach for agents or connections when the member asks for something that needs them.
Connections#
An app whose manifest declares connectedApps asks
before its code uses the member's connections. This is per app, not per publisher:
- Add lists the connections the version asks for, marks those the member hasn't connected yet, and allows them all. Calls to one they haven't connected fail until they connect it.
-
A new version that declares more apps or tools asks again, for what's new, in a bar above the app:
Prospector asks to use your connections: Apify (run actor sync get dataset items).
Allow lets its code call them; Not now leaves its calls failing with
not_approveduntil they allow it. This is the one thing an update asks about. - The member's own apps don't ask: their code may use everything its version declares, new versions included.
- The member takes it back from the app's ⋯ menu with Stop Prospector using your connections. For one of their own apps, this holds until they choose Allow in the bar, which then appears for it like any other app's.
The server checks each call again against the version's manifest, and runs it as the member: on accounts that reach them, as their agents' calls do. Calls are logged with the app.
Unsigned and Revoked Versions#
If a project's version is unsigned or its signing key isn't registered, Matter refuses to open it and prompts the team to redeploy.
When a signing key is revoked or its publisher leaves the workspace, every version signed with that key stops immediately across all computers—including currently open pages and running workers. Redeploying the app with a valid key brings it back online.
Handling Secrets#
Any workspace member who can view an app can download its bundle with matter app pull. Never
embed API keys, tokens, or private credentials in your frontend code or deploy.dir.
-
Third-party accounts — Use the member's own
connections in Matter: routines call them as tools, and your code
calls them with
matter.connectedApps. The keys stay with Matter. -
Webhook secrets — Save them with
matter app webhook <key> --secret. Matter keeps them on its server and checks each request with them; your code never sees them. -
Local tools — An app's MCP
toolsprocess runs on the member's machine and can read credentials from the member's local environment or keychain. -
Persistent local state — Store local files created by workers or tools inside
MATTER_DATA_DIR. -
Signing keys — Never commit signing keys to git. Pass
MATTER_SIGNING_KEYvia CI secrets for automated deploys.
Sites That Need the Member Signed In#
When a routine needs to interact with a website where the member is signed in, add
"needs": ["browser"] to the routine in matter.json. The routine drives the
member's own Chrome profile directly and never handles their password.
If the routine detects that the session is signed out or blocked by a security check, have it pause that
account and send a desktop notification with
matter.notify so the member can sign back in
and resume.
Run Servers#
Run servers are going away. Until an app that has one
moves off it, its server must bind only to
process.env.HOST (127.0.0.1) and check every request with
matter.verifyRequest(req) before trusting who it’s from.