#disconnected (1008): unauthorized: gateway token missing (open the dashboard URL and paste the token

1 messages · Page 1 of 1 (latest)

austere nimbusBOT
#

That disconnect means your Gateway has auth enabled, but the Control UI isn’t sending a token (or it’s sending an old one).

Fix (fast path):

  1. On the machine running the Gateway, run:
openclaw dashboard

Open the URL it prints (it includes ?token=...). That one-time link will also store the token in the browser for future loads.

  1. If you’re already in the Control UI: open Settings (gear) → Connection / Auth and paste the same token there, save, then reload.

If you don’t have a token yet / it was never generated:

openclaw doctor --generate-gateway-token
openclaw gateway restart
haughty swift
austere nimbusBOT
# haughty swift 🦞 OpenClaw 2026.2.9 (33c75cb) — Greetings, Professor Falken Dashboard URL: htt...

Perfect — that output means the Gateway is fine and you do have a valid token. Now you just need to open the Control UI through a tunnel and import that token once.

  1. From your laptop/desktop (the machine with a browser), run:
ssh -N -L 18789:127.0.0.1:18789 igny@<host>
  1. In your browser, open exactly:
http://localhost:18789/#token=b90c99614340a5b3add834e994ad67277d452b12760e8dd9
  1. If it still says unauthorized: click the gear icon in the Control UI → paste the same token into the token field → save → reload.

Security note: you just pasted your gateway token into a public channel. I’d rotate it after you’re connected. The “generate” doctor command won’t rotate an existing token; easiest is:

#
openclaw config set gateway.auth.token "$(openssl rand -hex 32)"
openclaw gateway restart
openclaw dashboard
haughty swift
#

I need new token

austere nimbusBOT
# haughty swift I need new token

That error means your Control UI doesn’t have a gateway token saved (or the Gateway is now requiring one).

Do this on the machine running the Gateway:

  1. Run:
openclaw dashboard

This prints a dashboard URL that includes your token (and/or shows it in the dashboard).

  1. Open the Control UI → Settings → paste the token into the Gateway token field (it’s connect.params.auth.token), then reconnect.

If you don’t have a token at all (or config/env got wiped), generate one:

openclaw doctor --generate-gateway-token

Then run openclaw dashboard again and paste that token into the Control UI.

haughty swift
#
  1. Open the Control UI → Settings → paste the token into the Gateway token field (it’s connect.params.auth.token), then reconnect. where find?
#

I need new gateway token

austere nimbusBOT
# haughty swift 2) Open the Control UI → Settings → paste the token into the Gateway token field...

In the Control UI page (the dashboard at http://<gateway-host>:18789/), there’s a Settings panel (gear icon / “Settings” button on the disconnected screen).

Inside Settings → Connection you’ll see a field for Token (this is what the docs refer to as connect.params.auth.token). Paste the gateway token there and reconnect.

Fastest path (no hunting in the UI):

  1. Run on the gateway machine:
openclaw dashboard
  1. Open the printed URL — it’s “tokenized” and will auto-fill/save the token for that browser, then the UI connects.
austere nimbusBOT
# haughty swift I need new gateway token

If you want to rotate (make a new) gateway token, do it on the machine running the Gateway:

openclaw config set gateway.auth.mode token
openclaw config set gateway.auth.token "$(openssl rand -hex 32)"
openclaw gateway restart
openclaw dashboard

Then open the printed dashboard URL and it’ll save the new token into that browser’s Control UI settings.

Notes:

  • openclaw doctor --generate-gateway-token only generates one if missing (it won’t rotate an existing token).
  • Don’t paste the token into Discord; paste it into the Control UI only.

Docs: https://docs.openclaw.ai/help/faq (gateway token section)

haughty swift
#

update chatgpt api key

austere nimbusBOT
# haughty swift update chatgpt api key

If you mean an OpenAI API key (usage-based billing, sk-... from the OpenAI Platform), update it on the Gateway host (don’t paste it into Discord):

openclaw config set env.OPENAI_API_KEY "sk-..."
openclaw gateway restart

Alternative (equivalent): set models.providers.openai.apiKey, but the docs recommend the env var.

If you actually meant ChatGPT/Codex subscription sign-in (no API key), that’s a different auth path:

openclaw models auth login --provider openai-codex

Docs: https://docs.openclaw.ai/providers/openai

haughty swift
#

how to check my chatgpt balance?

austere nimbusBOT
# haughty swift how to check my chatgpt balance?

Depends what you’re using:

1) ChatGPT subscription (Plus/Team/Enterprise): there isn’t a “balance” like prepaid credits.

  • In ChatGPT: Settings → Subscription (shows plan/renewal).
  • Usage limits are generally shown in-product (and can vary), not as a dollar balance.

2) OpenAI API key (Platform, pay-as-you-go / prepaid credits):

  • Go to https://platform.openai.com/ → Billing
  • Usage (spend/requests)
  • Credits / Billing overview (remaining prepaid credits, if you’re on prepaid)
  • Limits (monthly hard/soft limits)

OpenClaw itself won’t show your OpenAI “balance” — you check it in the OpenAI Platform/ChatGPT UI depending on which auth method you chose.

haughty swift
#

So why doesn't my chat assistant go if he has money? and the api is good? why dont answer my question

#

A
Assistant
5:27
U
Hello

You
5:29
A
Assistant
5:29

austere nimbusBOT
#

Ez általában nem “pénz” kérdés, hanem auth / beállítás.

  1. ChatGPT Plus/előfizetés ≠ OpenAI API kredit
  • Ha OpenClaw-t OpenAI API key-jel akarod használni, kell egy Platform API key (sk-...) Ă©s aktĂ­v billing a https://platform.openai.com/ oldalon.
  • Ha ChatGPT/Codex elĹ‘fizetĂ©ses (OAuth) utat használod, akkor openai-codex/... provideren kell bejelentkezni.
  1. A képernyődön lévő konkrét hiba: “gateway token missing”
  • EttĹ‘l a Control UI nem tud csatlakozni a Gatewayhez, ezĂ©rt nem fog menni a chat ott, hiába van rendben a model oldali fizu.
  • JavĂ­tás: a gateway gĂ©pen:
openclaw dashboard

és a megnyíló linken a token automatikusan betöltődik / elmentődik a böngészőben.

  1. Ha ezek után sem válaszol az asszisztens, küldd be (kimenetet, de ne tokeneket/kulcsokat):
#
openclaw --version
openclaw models status --probe
openclaw logs --limit 200

Ebből megmondható, hogy token/auth, API key hiány, rate limit, vagy provider-probléma a gond.

haughty swift
#

Hol tudom megnézni mennyi tokent töltöttem fel? az apihoz?

austere nimbusBOT
# haughty swift Hol tudom megnézni mennyi tokent töltöttem fel? az apihoz?

Az OpenAI API-hoz feltöltött “kredit/tokens” mennyiséget nem az OpenClaw-ban látod, hanem az OpenAI Platform felületén:

  • https://platform.openai.com/ → Billing
  • Credits / Billing overview: mennyi prepaid kredit maradt (ha prepaidet használsz)
  • Usage: eddigi költĂ©s / használat idĹ‘szak szerint
  • Limits: havi limitek (soft/hard)

Fontos: a “token” itt nem mindig szó szerint token-darabszám, inkább $ kreditek / költés nézetek vannak. ChatGPT előfizetésnél (Plus/Team) megint más: ott nincs ilyen prepaid kredit-egyenleg.

haughty swift
#

Credit Grants
USD
$18.00 / $18.00
Received State Balance Expires
Jan 06, 2023 Expired $0.00 / $18.00 May 01, 2023
valamiért régebbit ír ki pedig már új van

austere nimbusBOT
# haughty swift Credit Grants USD $18.00 / $18.00 Received State Balance Expires Jan 06...

Az a Credit Grants tábla sokszor csak a régi promo / grant krediteket mutatja (pl. a 2023-as $18), és attól még lehet, hogy most már pay‑as‑you‑go (kártyás) vagy prepaid top-up van aktív.

Ezt érdemes ellenőrizni:

  1. Billing → Overview / Payment method
  • van-e hozzáadott kártya, aktĂ­v számlázás
  1. Billing → Usage
  • itt látszik, hogy az utĂłbbi napokban/hetekben volt-e költĂ©s (ha itt 0 Ă©s nem frissĂĽl, akkor valĂłszĂ­nű nem azon az orgon/projekten vagy)
  1. Billing → Credits / Prepaid (ha van ilyen nálad)
  • a prepaid egyenleg itt szokott látszani, nem a “Credit Grants”-ben

Leggyakoribb okok, ha “régi”-t látsz:

  • rossz org / project van kiválasztva a Platform UI-ban (jobb felsĹ‘ sarokban válts orgot)
  • az “új” amire gondolsz az ChatGPT elĹ‘fizetĂ©s, nem API kredit
  • az “új” fizetĂ©s pay‑as‑you‑go, ami nem grantkĂ©nt jelenik meg
#

Ha megírod: API key-t használsz (sk-...) vagy Codex/ChatGPT OAuth-ot? + melyik oldalon vetted az “új” kreditet, megmondom pontosan hol kell megjelennie.

haughty swift
#

Billing history

Credit grants

Preferences
Showing invoices within the past 12 months

No invoices found

austere nimbusBOT
# haughty swift Billing history Credit grants Preferences Showing invoices within the past 12 ...

Ez alapján (csak régi Credit grants, és No invoices found) nagy eséllyel nem azon az OpenAI Platform “szervezeten” vagy, ahol az új befizetés/előfizetés van, vagy amit “újnak” hiszel az nem API-billing (hanem ChatGPT).

Ami fontos a Platformon:

  • Credit grants = rĂ©gi promo/jĂłváírások (pl. a 2023-as $18)
  • Invoices / Billing history = akkor jelenik meg, ha API usage alapján tĂ©nylegesen számláztak (pay‑as‑you‑go), vagy ha ott vettĂ©l prepaid top-upot (attĂłl fĂĽggĹ‘en, milyen billing mĂłd van az orgon)

Ellenőrző lista:

  1. JĂł account + jĂł Organization
  • platform.openai.com jobb felsĹ‘ sarok → válts Organization-t (ha több van).
  • Nagyon gyakori, hogy a “rĂ©gi” orgot nĂ©zed.
  1. Billing → Overview / Payment method
  • Látszik-e, hogy van Payment method (kártya) Ă©s aktĂ­v-e az API billing?
  • Ha nincs fizetĂ©si mĂłd, akkor nem is lesz invoice.