interface
python
Lightweight Flask web interface that forwards chat requests to a configured OpenClaw HTTP endpoint.
The gateway provides a browser chat UI and stores minimal local state.
Configuration is done using environment variables.
Typical values:
OPENCLAW_BASE=http://127.0.0.1:18789
OPENCLAW_AUTH=
OPENCLAW_AGENT=main
OPENCLAW_CHANNEL=web-gateway
OPENCLAW_MODEL=default
DEFAULT_USER=family
PORT=5002
OPENCLAW_AUTH is optional and only required if the upstream OpenClaw endpoint requires authentication.
python app.py
Then open:
http://127.0.0.1:5002
The application may create small local runtime files in directories such as:
memory/
state/
These directories are intended for local runtime data and should not be committed to version control.
共 1 个版本