Skip to content

Migrate template to OpenClaw (rename + new defaults)#33

Merged
vignesh07 merged 1 commit into
mainfrom
openclaw-support
Jan 30, 2026
Merged

Migrate template to OpenClaw (rename + new defaults)#33
vignesh07 merged 1 commit into
mainfrom
openclaw-support

Conversation

@vignesh07

@vignesh07 vignesh07 commented Jan 30, 2026

Copy link
Copy Markdown
Owner

Summary

Updates this Railway template to deploy OpenClaw (openclaw/openclaw) instead of the legacy Clawdbot repo/name.

Also adds an initial Debug Console in /setup (Option A) with an allowlist of safe actions + an advanced raw config editor.

Key changes

  • Docker build now clones/builds openclaw/openclaw (arg: OPENCLAW_GIT_REF)
  • Runtime wrapper calls openclaw and defaults to ~/.openclaw + openclaw.json
  • UI routes updated to OpenClaw defaults (/openclaw)
  • Template env vars renamed to OPENCLAW_* (with backward-compat support for existing CLAWDBOT_* env vars)

Setup UI improvements (Debug Console + Config Editor)

Inside /setup (password-protected):

  • Debug console (no shell):
    • gateway.restart|stop|start (wrapper-managed)
    • openclaw status|health|doctor|--version
    • openclaw logs --tail N
    • openclaw config get <path>
  • Raw config editor (advanced):
    • GET/POST the full config file (openclaw.json by default)
    • Writes a timestamped .bak-* backup on save
    • Restarts the gateway after save

Railway / deploy notes

  • Wrapper still prefers an explicit public port env var and guards against Railway's default PORT behavior
  • Healthcheck remains /setup/healthz
  • Strongly recommend mounting a Railway Volume at /data and setting:
    • OPENCLAW_STATE_DIR=/data/.openclaw
    • OPENCLAW_WORKSPACE_DIR=/data/workspace

How to test

  • npm install
  • npm run lint
  • (In Railway) deploy with a Volume at /data, set SETUP_PASSWORD, visit /setup, run setup, then open /openclaw
  • Try Debug Console actions (restart, status, logs)
  • Edit config (e.g. gateway.controlUi.basePath) and save; confirm restart + new route works

@vignesh07 vignesh07 merged commit fbafbce into main Jan 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant