Skip to content

NeuralBlitz/Agent-Gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

OpenClaw on Replit

Personal AI assistant running on Replit with the gateway on port 3000.

Access the Control UI

The URL must include the auth token in the hash fragment:

http://localhost:3000/#token=ec907a1f86fd4601654abbb1e2c485b85b2a832ee0e314b4

⚠️ Without #token=... you will get "origin not allowed" errors. The WebSocket connection requires this token to authenticate.

Quick Start

1. Start the Gateway

bash start-openclaw.sh

2. Open the Webview

Click the webview for port 3000, then append #token=ec907a1f86fd4601654abbb1e2c485b85b2a832ee0e314b4 to the URL.

Or run from the terminal:

openclaw dashboard

This prints the correct URL with the token baked in.

3. Configure a Model Provider

The gateway defaults to openai/gpt-5.4 but needs an API key to respond:

export OPENAI_API_KEY="sk-..."
bash start-openclaw.sh

Or add to ~/.openclaw/openclaw.json:

{
  "gateway": { ... },
  "agent": {
    "model": "openai/gpt-5.4"
  }
}

Configuration

Gateway Config (~/.openclaw/openclaw.json)

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

Environment Variables

Variable Purpose
OPENAI_API_KEY OpenAI model API key
ANTHROPIC_API_KEY Anthropic model API key
OPENCLAW_PORT Override port (default: 3000)

Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚         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}         β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

File Layout

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

Logs

  • Gateway log: /tmp/openclaw/openclaw-YYYY-MM-DD.log
  • Runtime: stdout (visible in Replit console)

Commands

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

About

Alternative to OpenClaw with OpenClaw Support πŸ‘

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors