paperclipai/paperclip · error

cloud managed configuration active

Error message

cloud managed configuration active

What it means

Startup info log in startServer. Fires when PAPERCLIP_MANAGED_CONFIG parses successfully: the instance runs under the cloud harness with a managed feature overlay (feature keys, sections) applied for this process only, never persisted.

Source

Thrown at server/src/index.ts:745

      "Authenticated mode auth origin configuration",
    );
    const auth = createBetterAuthInstance(db as any, config, effectiveTrustedOrigins);
    betterAuthHandler = createBetterAuthHandler(auth);
    resolveSession = (req) => resolveBetterAuthSession(auth, req);
    resolveSessionFromHeaders = (headers) => resolveBetterAuthSessionFromHeaders(auth, headers);
    await initializeBoardClaimChallenge(db as any, { deploymentMode: config.deploymentMode });
    authReady = true;
  }

  if (resolvedEmbeddedPostgresPort !== null && resolvedEmbeddedPostgresPort !== config.embeddedPostgresPort) {
    config.embeddedPostgresPort = resolvedEmbeddedPostgresPort;
  }
  maybePersistWorktreeRuntimePorts({
    serverPort: listenPort,
    databasePort: resolvedEmbeddedPostgresPort,
  });
  // Cloud managed-config contract (harness → app). Parse PAPERCLIP_MANAGED_CONFIG
  // once so a malformed document (blank value, bad JSON, unknown feature key,
  // unsupported v, missing section) refuses startup with a precise error instead
  // of silently running without the feature overlay. Absent env = self-hosted:
  // nothing changes. The parsed document is never persisted; instanceSettingsService
  // overlays it per read. This MUST run before any instanceSettingsService(db)
  // construction — that constructor parses the same env, and it would otherwise
  // throw first, bypassing this fail-closed log path.
  let managedConfig: ManagedInstanceConfig | null;
  try {
    managedConfig = getManagedInstanceConfig();
    if (managedConfig) {
      logger.warn(
        {
          catalogVersion: managedConfig.catalogVersion,
          managedFeatureKeys: Object.keys(managedConfig.features).sort(),
          autoInstallPlugins: [...managedConfig.plugins.autoInstall],
        },
        "cloud managed configuration active",
      );

View on GitHub (pinned to 01ad858492)

Solutions

  1. Informational only; indicates cloud-managed configuration is in effect.
  2. If you did not expect cloud-managed mode, check the relevant environment/configuration flags.
Defensive patterns

Strategy: fallback

When it happens

Trigger: Thrown at server/src/index.ts:626 when the library encounters an invalid state.

Common situations: Logged at startup when the server detects it is running with cloud-managed configuration rather than local configuration.


AI-assisted analysis of paperclipai/paperclip@01ad858492 (2026-08-18). Data as JSON: /api/errors/bedb7c3c3038be5a. Report an issue: GitHub.