Grant access to people and agents
Choose host and artifact roles, connect an agent, invite a collaborator, or release a public website.
A sign-in identifies an actor. A host role determines what the actor can do on the installation; a grant on an artifact determines what they can do there. An OAuth connection narrows those permissions further. Start by deciding what the recipient needs to do.
Assign host and artifact roles
Every signed-in person has a host role. A member can work on artifacts shared with them. A creator can also create artifacts. An admin can also manage actors and credentials, maintain the host, define properties, and grant host-wide listing permissions. An administrator still needs an artifact grant to edit its contents. The operator’s one-time setup code gives the first admin their host role. Once the installation has had an admin, demoting that admin does not reopen setup.
An artifact owner can give a known actor a role using grant with the recipient’s act_ ID. A person receives that ID on first sign-in; an admin can look it up. Granting again replaces the previous role. Use remove_grant to revoke it. At least one owner must remain.
| Artifact role | Additional permissions at this level |
|---|---|
| Viewer | Read the artifact and its app data, list people with access, and hold the base-use action. Comment history requires contributor. |
| Contributor | Read, write and resolve comments, change permitted classification properties, and write app data subject to the app’s rules. |
| Editor | Publish revisions and use operations gated by publish access, including storage inspection and artifact logs. |
| Owner | Manage grants, share links and the public website; exercise the data.writeAll action for writes across actors’ records. |
To inspect one credential’s actual operations, use discover on the artifact. A delegated agent needs both a sufficient artifact role and the appropriate connection and token scopes. The host’s GET /api describes the current operation names, required actions, inputs and errors.
Choose credentials
| Caller | Credential and destination |
|---|---|
| Signed-in person | The host issues a host-only browser session. Browser writes to the API require the host origin and CSRF token. |
| Service or CLI | Create a service actor with the host role it needs and grant it access to existing artifacts. An admin issues its bearer token. Use it with the host API, MCP or the artifact’s advertised HTTP tools. Store the token in a secret manager. |
| Agent acting for a person | Connect the MCP client to the host’s /mcp, or to /a/<artifact-id>/mcp for a specific app. Sign in and approve the client, resource and scopes. Its OAuth token is accepted on the approved MCP resource. |
| Agent publishing local build files | Mint a publish credential for one artifact, then pipe the complete mint response to the publisher. It permits upload and publish on that artifact for up to 15 minutes while its originating credential remains active. See the publishing guide. |
| Installation operator | The operator token authorizes bootstrap and recovery through /admin/. Use the bun run admin CLI with BRICOLE_URL and the protected operator token. |
bricole:read covers read actions, bricole:write covers comments, writes and publishing, and bricole:share covers grant management. A delegated creator also needs write scope to create an artifact. Host administration requires an admin session or admin service credential. Consent on a person’s connection does not grant host administration.
A person can revoke a connection under Settings → Connected agents. An admin can revoke one connection, all an actor’s connections, or a single service token. Disable an actor to end their sessions, revoke credentials and prevent further sign-in. Enabling them later lets them sign in and reconnect.
Invite a collaborator
If the identity service can send mail, an owner can choose Share → Invite by email, enter the recipient and choose viewer or contributor. The recipient signs in and accepts using the same verified email. Invitations last seven days. Resending after one minute keeps the original expiry. Cancel a pending invitation to withdraw it or change its intended role. After acceptance, manage the resulting artifact grant. See sign-in providers for address verification and mail requirements.
Share with readers outside the host
| Audience | Owner control | What the recipient sees |
|---|---|---|
| Anyone holding a share link | Under Share → General access, enable the link and optionally set a password and expiry. | The current artifact and its readable app records as an anonymous visitor. Visits carry neither an actor ID nor access to the people list or comments. |
| Visitors to a published website | Under Public website settings, release the intended head revision. | Public website files at a stable address. The app can receive submissions on the public POST paths its manifest explicitly declares. Later private revisions require another release to become public. |
The corresponding MCP operations are get_share_link, set_share_link, reset_share_link, and set_link_password. An expiry can be up to one year ahead. For an active link, omitting expiresAt preserves its expiry and passing null clears it. Set enabled and password together to turn on a protected link. An existing password can be kept by omitting it, or removed with null. Pass requirePassword: true when the update should succeed only with a password in effect. A password must be 8–128 characters. Changing the password ends existing visits. Resetting or disabling the link also ends visits; a reset issues a new link.
Use get_website to inspect the live revision. set_website releases the named current revision; passing null takes the website offline. A direct website address is available after release. An operator can map a custom hostname through the operator configuration.
Allow an app to list other artifacts
An app that requests a listing can show artifacts visible to its current viewer, within the property filters it declared. A viewer can approve the requested listing from the bar above the app. An admin can approve the declared scope host-wide with set_listing_grant, inspect those approvals with list_listing_grants, and remove one with remove_listing_grant. The grant records the current scope. Publishing a different scope requires approval again. A viewer’s own grant takes precedence, and the result remains limited to artifacts that viewer can open.