Gateway Setup
Get the gateway running locally in under five minutes.
Prerequisites
- → Go 1.23+
- → An Anthropic API key
- → At least one channel bot or app configured (see Channels)
Install
bash
git clone https://github.com/akshaymemane/superclaw-gateway
cd superclaw-gateway
go build -o gateway ./cmd/gatewayConfigure
Copy the example config and fill in your tokens.
bash
cp gateway.json.example gateway.jsonSecret fields (bot tokens, signing secrets) can be left empty in gateway.json and set via environment variables instead — see Configuration.
Run
bash
ANTHROPIC_API_KEY=sk-ant-... ./gateway -config gateway.json
# Listening on :8080
# GET /health
# POST /webhook/slack
# POST /webhook/discord
# POST /webhook/telegramHealth check
bash
curl http://localhost:8080/health
# {"status":"ok","channels":["slack","telegram"]}Exposing the gateway publicly
Chat platforms need to reach your webhook URL over the internet. For local development, use ngrok:
bash
ngrok http 8080
# Forwarding: https://abc123.ngrok.io -> http://localhost:8080
# Use https://abc123.ngrok.io/webhook/slack as your Slack webhook URLFor production, deploy behind a reverse proxy or use Docker — see Deployment.