Privacy and sharing
Every app is private by default: one owner, one dataset, and you decide who else gets in and what they can do.
What you can do
Private by default. A new app has one owner and one shared dataset. Sign in from your phone or another computer to open it securely from anywhere. Nobody else can open it until you invite them or make it public.
Invite people. Share the app with specific people and pick what each can do: edit it, use it, or just view it. Change or revoke someone’s access at any time. Need more control? Contact us.
Make it Public, deliberately. A separate, explicit step lets anyone with the URL open the live App Viewer with no sign-in. Public visitors can read but cannot change data, except through an operation the App opens to them with callers. If you also want anyone who signs in to Charming, not just people you invited, to read and write the App’s data, choose that wider general access level. Turn either off again at any time.
Play it inside an X post. A post that links a Public App shows the App itself, playable in the post, instead of a preview image. Everyone in the post is a read-only public visitor, even you, and a link opens the full App in a new tab.
Choose Template and Listed separately. Template lets people who can already view the source App make an independent copy. Listed adds public discovery and copying without granting access to the live App or its data. Listed always includes Template. See Templates for listing content and copy behavior.
How access works
Every app sits at one of four general access levels, from narrowest to widest:
- Only you (for a team App, Team). Nobody else can open the app.
- Anyone with a Charming account. Anyone signed in to Charming can open it; there is no public link.
- Public link. No sign-in needed; anyone with the link can look but not change data.
- Public link, and anyone with a Charming account can edit. Level 3, plus: anyone signed in with a Charming account (not just people you invited) can also read and write app data.
Invites are additive on top of whichever level you pick: an invited viewer, end-user, or collaborator keeps their access even at “Only you.” The Sharing settings always show the level the App is at, and saving changes only what you picked. Team defaults offer levels 1, 3 and 4.
The owner or a team admin can invite people, change what they can do, or change the general access level. They can also let one invited person invite others, which helps when you send an App to a contact who will pass it to colleagues. The Public link stays view-only on its own. Signed-in write access, an end-user invitation, or a collaborator invitation grants write access.
Public, Template, and Listed answer different questions:
| Setting | What it grants | What it does not grant |
|---|---|---|
| Public | Anyone with the link can open the live hosted App Viewer as a read-only viewer. | Source editing, data writes, Template copying, or public discovery. |
| Template | Existing readers of the source App can make an independent copy. | Access for strangers, a public listing, or Public App access. |
| Listed | Anyone can discover the Template and make a copy. Listed implies Template. | Access to the live source App or its data. |
Technical
Account Home lists the Apps you own and the ones shared with you. To change or revoke access without an agent, open the App’s App settings, then choose Sharing. To drop an App someone shared with you, choose Remove from your apps on its row in Account Home. You lose access, and the owner keeps the App and its data. A collaborator’s App settings opens on the Template section, the one their role can change. Use the separate Template section for Template state, listing content, and the starter prompt that people who copy the Template hand to their agent.
To check what someone else sees, open the widget on the App’s own page and choose View as, then pick Signed out, Viewer, Editor, or Builder. A ribbon at the top of the page names the role, with Change to pick another and Exit View as to go back to your own access. Nothing can be changed while it lasts, in any tab you have open on that App: the App’s writes fail with view_as_read_only. Reload a tab you opened before starting View as to make all of it read-only. Only the owner and admins of the team that owns the App see View as.
Copy this prompt for your agent
Set up sharing for my Charming app. Read
https://charm.ing/docs/capabilities/privacy-and-sharing.md first.
Suggest who it makes sense to share it with and what each person
should be able to do, then ask me to reply with email addresses.
How an agent performs this job
Use share_app to invite someone, list_app_shares to inspect access, and unshare_app to revoke it. Anyone an App is shared with can pass me as the unshare_app grantee to remove it from their own apps. The tool pages define inputs and errors.
Use set_public or unset_public to change Public access. These tools only change the live App Viewer link. They do not change Template or Listed. An anonymous App must be claimed first.
The HTTP sharing resource /api/v1/apps/{appId}/shares accepts a personal access token (chrm_user_*) or a browser session. Use charming api request list-app-shares --param appId=APP_ID to inspect direct shares. Run charming api describe create-app-share for invitation inputs or charming api describe update-app-signed-in-access for the signed-in audience setting. Existing sharing and app-management permissions still apply.
The contract
Access is enforced server-side: every route declares whether it’s read-only, and the platform denies a role that can’t attempt an op regardless of what the app’s code does. Roles stack in one direction only. collaborator can do everything end-user can, which can do everything viewer can:
- Owner. Full control: edit source, run any op, share, unshare, delete, make Public, edit Template settings, transfer, and let invited people invite others.
collaborator. Open, edit source, run the App, and edit Template settings, short of sharing, deleting, or transferring it. Any role can also invite others when the owner allows it: see Letting someone invite others.end-user. Open the app and run it, including writes to its data, but can’t see or change the app’s source.viewer. Open and run read-only operations only. A well-built app hides or disables its write actions for a viewer instead of letting them fail.- Public (no login). Same access as
viewer, and only after the owner or a team admin turns it on. Letting signed-in visitors write without an invite needs the widest general access level: see How access works.
Letting someone invite others
The owner or a team admin can mark any invited person as able to invite others: in Sharing, tick Can invite others when you invite them, or open their row’s menu and choose Can invite others, or pass can_invite: true to share_app. That person, a delegate, can then:
- Invite people by handle or email at their own role or lower. A delegate invited as
end-usercan inviteend-userorviewer, nevercollaborator. - See and revoke only the people they invited from their own Sharing page, which the widget’s Share row opens. Changing someone’s role works through
share_appand the API.
A delegate can’t let anyone else invite people, so the people they invite can’t invite anyone. They can’t create single-use links, change general access, make the App Public or private, approve access requests, delete, or transfer it. The owner and team admins see everyone with access, including who invited each person, and can revoke anyone. Clearing Can invite others on their row, or revoking the delegate, keeps the people they already invited. Revoke those people separately if they should lose access too.
A delegate’s control over a person follows who invited that person, and turning the permission off doesn’t change it. If you choose Can invite others on their row again later, the delegate regains control over everyone they invited before, including people you kept. Revoke those people if you don’t want that.
A delegate who tries to invite a handle or email learns whether that person already has access or a pending invitation, and who invited them when it was the delegate, within the lookup rate limit. Treat a delegate as someone who may learn who else has access.
The invite permission takes effect once the delegate accepts their own invitation. A delegate’s own role sets their limit when they invite, so lowering their role also lowers what they can grant from then on.
Team Apps and ownership transfer
Teams come with the Business plan, and Charming sets them up with you: contact us to start one. POST /api/v1/teams answers 403 plan_required (feature: "teams") unless your own plan includes teams. Manage a team’s members in Account settings → Teams. An MCP agent can create a team-owned App by passing team_id to create_app. Only a team owner or admin can create an App there. Omitting team_id creates a personal App.
Team owners and admins set defaults under Team settings → Defaults and policy, or with GET and PATCH /api/v1/teams/{teamId}/app-defaults. The defaults choose one general access level and whether Template starts enabled. With no saved defaults, new team Apps start at Team with Template off. Template-on never means Listed.
Team owners and admins can require two-factor authentication under Team settings → Defaults and policy, or with GET and PATCH /api/v1/teams/{teamId}/security ({ "requireTwoFactor": true }). Turning it on needs two-factor on your own account; without it the call answers 403 two_factor_required. Turning it off needs a login from the last 10 minutes, so a personal access token or an older session gets 403 recent_login_required; log in again and retry. While the requirement is on, a member without two-factor stays on the team but reaches none of its Apps, settings, or admin actions until they turn two-factor on in their own security settings. Team endpoints refuse them with 403 forbidden, and the member and invitation endpoints with 403 two_factor_required. They can still leave the team and accept or decline invitations. Turning two-factor on restores access on their next request, and nothing is deleted in between. A passkey does not count as two-factor. Access that does not come from team membership, such as a direct App invitation or a public link, is unchanged.
Charming snapshots those defaults when it creates an App in the team or transfers a personal App into it. Changing the team defaults does not alter existing team Apps, and updating an existing App does not reapply them. A transfer into a team can therefore change general access, turn Template on or off, and unpublish Listed when the destination default turns Template off. A transfer from a team to your personal account keeps the App’s current access and Template state.
Move an App with POST /api/v1/apps/{appId}/transfer. A transfer changes its owner and friendly URL; the old live App URL redirects to the new one. Its storage, secrets, source, and saved Template listing draft move with it. Existing direct App members, pending invitations, and active single-use links stay by default. If the transfer sets keepExistingAppMembers: false, Charming deletes direct grants and pending invitations and revokes active single-use links. Team membership access follows the owner: destination team members gain their team role, while a move to your personal account leaves only you with owner-level management unless a direct grant remains.
Use charming api request list-teams to discover your teams and charming api describe transfer-app to inspect the transfer contract. Preview a transfer with charming api request transfer-app --param appId=APP_ID --body '{"teamId":"TEAM_ID"}' --dry-run; replace --dry-run with --yes to execute. See Team API credentials before calling invitation operations, changing a member’s role, removing a member, or leaving a team: those require a session cookie.
Building a role-aware UI
Use window.charming.viewer.can(op) to hide write actions from read-only viewers, after checking window.charming.user. An anonymous visitor on an app open to signed-in editors also reads can(op) === false, and hiding the button there is what stops them ever reaching the sign-in. Hide the action only for a caller who is signed in and still refused, or where charming.login.available is false; otherwise leave it live and route the click through withUser below. The server still enforces access. See the design prompt for the build rules and the Browser runtime API for viewer, user, login, and withUser.
Signing a visitor in mid-app
An app open to signed-in visitors can start the sign-in itself with window.charming.login(), and the caller it returns is live: charming.user, charming.viewer.role, and gated calls all reflect the new session with no reload. A visitor with no account signs in with an emailed code and gets an App account, which can use Apps and what is shared with it without joining Charming.
Wrap the gated action in window.charming.withUser(action) rather than asking someone to sign in first. It runs the action, signs them in only if the action turns out to need it, and runs it again with the payload the closure captured, so a visitor’s half-finished work is saved rather than thrown away. Wrap the call, not the whole click handler: withUser re-runs the closure verbatim, so anything else inside it happens twice.
try {
const saved = await charming.withUser(() => api.saveScore({ score }));
if (saved === null) status.textContent = 'Not saved. Sign in when you are ready.';
} catch (err) {
if (err.name !== 'CharmingLoginError' || err.reason !== 'popup-blocked') throw err;
signInButton.hidden = false; // its own click handler calls charming.login()
}
withUser resolves null only when the visitor closes the sign-in window, so have the wrapped op return something other than null — otherwise a save that worked reports itself as a cancel.
Once signed in, the person’s verified email reaches the App’s server code as env.user.email, never its browser code, with no extra prompt to them. See Use a member’s email.
withUser retries around two error kinds. sign_in_required (401) is the server’s answer to a gated call from a visitor with no account. forbidden is the runtime’s own viewer gate, which refuses a write before any request leaves the page. An anonymous visitor hits forbidden first, so branch on both if you handle this by hand rather than through withUser.
A browser can refuse the sign-in popup instead of opening it — login() then rejects with a CharmingLoginError carrying reason: 'popup-blocked', not the null a cancel resolves with. withUser’s own retry is the likely place to hit this: its login() call happens after the wrapped action has already failed once, so the popup no longer opens inside the click that started it.
Inside a chat-host embed, charming.login.available is false: withUser opens no popup and rethrows the refusal the action raised. Check that flag before you offer the gated action at all, and render a link to charming.login.canonicalUrl in its place. See Gate an action behind sign-in for the full pattern, including how to recover from a blocked popup.
Limits, access, and deletion
- Sharing requires a claimed app. An anonymous app has no owner yet, so
share_appandset_publicfail until you claim it. - Ownership can’t be shared away. Deleting, transferring, making an app public or private, creating single-use links, and deciding who may invite others stay with the owner and team admins regardless of anyone else’s role. A delegate can invite people at their own role or lower and revoke only the people they invited.
- Public Apps play inside X posts. A Public App’s link preview is an X player card for
/app/<id>/social-embed, a 480 by 480 frame that only X may embed. It renders every visitor as a signed-out public visitor and shows no widget or sign-in, so an App with signed-in editing is read-only there, apart from any operation whose route declarescallers: 'anyone'. A private App answers404at that URL, and the path is not available as one of an App’s own routes under/app/<id>. - Public is read-only. Anonymous visitors can read the App’s shared data but cannot run mutating operations, apart from any operation whose route declares
callers(Let visitors call an operation). A custom domain follows the same rules. Turning Public off does not delete existing App data. - Revoking access is immediate for new requests. An already-open page can keep working on its short-lived credentials for a short window after you revoke.
Related
- Gate an action behind sign-in: the full mid-app sign-in pattern, including a blocked popup
- Use a member’s email: what server code can read about a signed-in person
- Templates: let existing App readers copy, or publish a Listed Template for anyone
- Custom domains: serve the App at a domain you own, under the same access rules
- Data storage
- Connectors: let an App use your Gmail or another connected account, and share your own with an App’s people
- Connect to any AI agent: roles and access apply no matter which agent connects to the app
- Browser runtime API
- How Charming works
- Docs home
- llms-full.txt
Connected accounts
An App can ask to use a service you connected to Charming, such as your Gmail. Charming asks you in its own window, names the App and its owner, and lists what the App may do: read, write, or delete. Your approval covers that one App: your account does nothing in any other App until you approve that App too. Another person’s agent never uses it, and Webhooks never do. A Routine uses it only if you manage the App yourself, and the approval window says so before you approve. Routines and shared access use your account only while the App’s live version and the Routine were last saved by someone who manages the App, so a collaborator who can only edit cannot reach it.
An App, its owner, and people who can edit it can see the data the App reads from your account. An owner can also share their own account with the people they share the App with, limited to the access they choose, such as reading and never writing. Revoke an App or remove an account in Account settings → Connectors. Connectors has the details.