Awesome Cohub
中文
Cheatsheetscohub.cheat.scopes2 min

Direct App scopes

Publisher grants these at publish time; they apply only to the App's own Space:

space.view  session.view  file.view  file.edit
taskrun.view  session.prompt.readonly  session.prompt.fullaccess  command.execute

Viewer-grant-only examples

ScopeTypical use
generation.createCreate a multimodal generation task
user.space.listList the viewer's Spaces
user.session.listList the viewer's Sessions across Spaces
user.taskrun.listList Task Runs owned by the viewer
user.usage.readRead the viewer's activity
Other Space/admin scopesActions or reads outside the App's direct grant

allowedViewerScopes is deprecated and no longer limits runtime consent. Viewer grants are still constrained by the viewer's current access to the selected Space.

Pair operations correctly

OperationNeeded
Create generationgeneration.create
Poll/read generation Task Runtaskrun.view
Send promptMatching session.prompt.readonly or session.prompt.fullaccess
Read prompt resultsession.view
Realtime rooms / App commercePublished App runtime; no extra scope

Rules

  1. Static Apps usually need no special scopes.
  2. Request viewer grants only on a user gesture.
  3. Every scope must map to a visible feature.
  4. A grant for Space A does not authorize Space B.
  5. Check context().permissions.viewerGrants for display; use auth.request to act.