Skip to main content
  • Version 0.1.0 · Purity server-only (uses node:fs / node:os / node:path)
  • Purpose Resolve Clawboo’s state directories, load/save settings.json, and bridge OpenClaw’s config for gateway URL + token + provider keys.
  • Workspace deps none
  • External deps none (Node built-ins only)
Server-only. The functions read and write the filesystem (os.homedir(), fs.readFileSync/writeFileSync), so this package never runs in the browser. Every function takes an optional env parameter (defaults to process.env) so callers can sandbox path resolution.

Public API

All exports come from the single . barrel (src/index.ts). No subpath exports.

Functions

Types & interfaces

Classes

None.

Constants

None exported. Internal-only: DEFAULT_GATEWAY_URL (ws://localhost:18789), the state-dir names, and the OpenClaw config filename are module-private.

Used by

  • @clawboo/gateway-proxy; proxy-device-auth.ts resolves the proxy device-identity location via resolveClawbooDir.
  • apps/cli, port discovery / state-dir resolution.
  • apps/web (server); settings.ts, system.ts, index.ts, lib/db.ts, lib/portUtils.ts, lib/processManager.ts, lib/secretsVault.ts, lib/bootProbe.ts, lib/worktrees.ts, lib/agentSource/registry.ts, lib/runtimes/identityHome.ts, and lib/capabilitySource/hermes.ts all resolve paths and load settings through this package.

Source

Barrel: packages/config/src/index.ts

See also

Last modified on June 26, 2026