Personal AI assistant running on Replit with the gateway on port 3000.
The URL must include the auth token in the hash fragment:
http://localhost:3000/#token=ec907a1f86fd4601654abbb1e2c485b85b2a832ee0e314b4
#token=... you will get "origin not allowed" errors. The WebSocket connection requires this token to authenticate.
bash start-openclaw.shClick the webview for port 3000, then append #token=ec907a1f86fd4601654abbb1e2c485b85b2a832ee0e314b4 to the URL.
Or run from the terminal:
openclaw dashboardThis prints the correct URL with the token baked in.
The gateway defaults to openai/gpt-5.4 but needs an API key to respond:
export OPENAI_API_KEY="sk-..."
bash start-openclaw.shOr add to ~/.openclaw/openclaw.json:
{
"gateway": { ... },
"agent": {
"model": "openai/gpt-5.4"
}
}| Field | Value | Purpose |
|---|---|---|
gateway.auth.token |
ec907a1...14b4 |
Auth token for WebSocket |
gateway.port |
3000 |
Gateway port |
gateway.bind |
"lan" |
Bind to all interfaces |
gateway.controlUi.dangerouslyAllowHostHeaderOriginFallback |
true |
Allows Replit's dynamic origins |
| Variable | Purpose |
|---|---|
OPENAI_API_KEY |
OpenAI model API key |
ANTHROPIC_API_KEY |
Anthropic model API key |
OPENCLAW_PORT |
Override port (default: 3000) |
ββββββββββββββββββββββββββββββββββββββββββ
β Replit Webview (port 3000) β
β β
β ββββββββββββββββ ββββββββββββββββββ β
β β Control UI ββββ€ Gateway WS β β
β β (Lit+Vite) β β + HTTP Server β β
β β β β port 3000 β β
β ββββββββββββββββ βββββββββ¬βββββββββ β
β β β
β Plugins loaded: β β
β β’ openai (model provider) β β
β β’ browser (tool) β β
β β’ memory-core β β
β β’ memory-wiki β β
β β’ lobster (tool) β β
β β β
β Canvas: /__openclaw__/canvas/ β
β MCP: http://127.0.0.1:*/mcp β
β Health: /health β {"ok":true} β
ββββββββββββββββββββββββββββββββββββββββββ
| Path | Purpose |
|---|---|
start-openclaw.sh |
Gateway launcher (Node 22 from Nix) |
.replit |
Replit config β runs start-openclaw.sh |
replit.nix |
Nix deps |
~/.openclaw/openclaw.json |
Gateway config |
~/.openclaw/workspace/ |
Agent workspace directory |
openclaw-lrs-agents/ |
OpenClaw source + built dist |
- Gateway log:
/tmp/openclaw/openclaw-YYYY-MM-DD.log - Runtime: stdout (visible in Replit console)
bash start-openclaw.sh # Start the gateway
openclaw dashboard # Print access URL with token
openclaw status # Check gateway status
openclaw security audit # Run security audit