> ## Documentation Index
> Fetch the complete documentation index at: https://docs.memloom.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Set the continuous-capture allowlist

> What `memloom connect claude-code --project X` and `--all` set. `null` (the default)
captures nothing: naming a scope is the consent step, since the hook fires for every
Claude Code session on the machine, including client work and repos whose code
should never reach an LLM provider. `{"projects":[...]}` captures only sessions whose
project folder name contains one of the given substrings; `"all"` captures every
project.




## OpenAPI

````yaml /openapi.yaml put /import/claude-code/scope
openapi: 3.1.0
info:
  title: memloom local API
  version: 0.1.0
  description: >
    The HTTP API served by the `memloom serve` daemon on your machine. The CLI,
    the MCP server,

    and the viewer all route through this API. The daemon is the single owner of
    the store, so

    every client shares one consistent view of your memories.


    No authentication: the daemon binds to `127.0.0.1` only and is reachable
    solely from your

    own machine. Browser clients on other localhost ports are allowed via CORS.
servers:
  - url: http://127.0.0.1:4319
    description: Local memloom daemon
security: []
paths:
  /import/claude-code/scope:
    put:
      summary: Set the continuous-capture allowlist
      description: >
        What `memloom connect claude-code --project X` and `--all` set. `null`
        (the default)

        captures nothing: naming a scope is the consent step, since the hook
        fires for every

        Claude Code session on the machine, including client work and repos
        whose code

        should never reach an LLM provider. `{"projects":[...]}` captures only
        sessions whose

        project folder name contains one of the given substrings; `"all"`
        captures every

        project.
      operationId: setImportScope
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - scope
              properties:
                scope:
                  oneOf:
                    - type: string
                      enum:
                        - all
                    - type: object
                      required:
                        - projects
                      properties:
                        projects:
                          type: array
                          items:
                            type: string
                          example:
                            - myapp
                    - type: 'null'
      responses:
        '200':
          description: Scope updated.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    example: true
        '400':
          $ref: '#/components/responses/ValidationError'
components:
  responses:
    ValidationError:
      description: The request body failed validation. `issues` names each offending field.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
                example: invalid request body
              issues:
                type: array
                items:
                  type: object
                  properties:
                    path:
                      type: string
                      example: query
                    message:
                      type: string
                      example: query must be a non-empty string

````