- 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.tsresolves the proxy device-identity location viaresolveClawbooDir.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, andlib/capabilitySource/hermes.tsall resolve paths and load settings through this package.
Source
Barrel:packages/config/src/index.ts
See also
- Configuration reference,
settings.jsonshape + file/dir locations - Environment variables,
CLAWBOO_HOME,OPENCLAW_STATE_DIR, and the rest - Data and state, SQLite, file locations, backup/reset
@clawboo/gateway-proxy, the primary package consumer