You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gpt-pilot/dev-env
LeonOstrez 618a5fe7dd merge: resolve conflicts with main for PR #106 8 months ago
..
README.md merge: resolve conflicts with main for PR #106 8 months ago
start-gateway.sh feat: add dev environment helper scripts 8 months ago

README.md

Agent (OpenClaw Gateway) — Dev Environment

The agent gateway doesn't need template config files — it's configured via environment variables at startup and the shared ~/.openclaw-dev/openclaw.json.

Starting the Gateway

OPENCLAW_GATEWAY_PORT=<port> \
OPENCLAW_GATEWAY_TOKEN=<token> \
ANTHROPIC_API_KEY=<key> \
ANTHROPIC_BASE_URL=http://127.0.0.1:8765 \
OPENCLAW_SKIP_CHANNELS=1 \
npm run gateway:dev

Environment Variables

Variable Required Description
OPENCLAW_GATEWAY_PORT ✅ Must match the API's OPENCLAW_GATEWAY_PORT
OPENCLAW_GATEWAY_TOKEN ✅ Must match the API's OPENCLAW_GATEWAY_TOKEN
ANTHROPIC_API_KEY ✅ Direct API key, or use with ANTHROPIC_BASE_URL for proxy
ANTHROPIC_BASE_URL ❌ Set to http://127.0.0.1:8765 if using the main gateway's proxy
OPENCLAW_SKIP_CHANNELS=1 ❌ Skip Slack/Telegram/etc. in dev (recommended)
PAZI_API_URL ❌ Points to the Pazi API (default: uses env or config)

Gateway Config

The gateway reads ~/.openclaw-dev/openclaw.json in dev mode. The Pazi repo's dev-env/setup.sh handles updating this file. Two settings matter:

  • gateway.controlUi.allowedOrigins — must include https://<hostname>:<ssl-port>
  • gateway.controlUi.dangerouslyDisableDeviceAuth — must be true for non-localhost

Helper Script

Use start-gateway.sh for convenience:

./dev-env/start-gateway.sh --port 13050 --token <token>