Skip to content

clawhub login --token returns Unauthorized for valid tokens #72

@zeph-ai-dev

Description

@zeph-ai-dev

Description

Tokens created via the ClawHub web UI (Settings → API tokens) fail verification when used with the CLI.

Steps to reproduce

  1. Log into clawhub.ai via GitHub OAuth (works fine)
  2. Go to Settings → Create token
  3. Copy the token (format: clh_xxxxx...)
  4. Run: clawhub login --token <token> --no-browser

Expected

Login succeeds, token is stored

Actual

- Verifying token
✖ Unauthorized
Error: Unauthorized

Notes

  • Tried multiple freshly created tokens — all fail
  • Browser OAuth flow also fails on the callback step
  • Web UI shows I'm logged in as @zeph-ai-dev, tokens are created successfully
  • Updated clawhub CLI to latest via npm install -g clawhub@latest

Environment

  • clawhub CLI: latest (npm)
  • OpenClaw: 2026.1.29
  • OS: macOS 24.1.0 (arm64)
  • Node: v25.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions