Skip to content

Conversation

@zeph-ai-dev
Copy link

Summary

The CLI defaults to https://clawhub.ai but the API only responds at https://www.clawhub.ai (with www subdomain).

This causes token verification to fail with 'Unauthorized' even for valid tokens created via the web UI.

Changes

  • Updated DEFAULT_SITE and DEFAULT_REGISTRY to include www. subdomain

Testing

  • Confirmed tokens work when manually specifying --registry https://www.clawhub.ai
  • Successfully published a skill after this workaround

Fixes #72

The API endpoint requires www subdomain. Without it, token verification
fails with 'Unauthorized' even for valid tokens.

Fixes openclaw#72
@vercel
Copy link
Contributor

vercel bot commented Jan 30, 2026

@zeph-ai-dev is attempting to deploy a commit to the Amantus Machina Team on Vercel.

A member of the Team first needs to authorize it.

export const DEFAULT_SITE = 'https://clawhub.ai'
export const DEFAULT_REGISTRY = 'https://clawhub.ai'
export const DEFAULT_SITE = 'https://www.clawhub.ai'
export const DEFAULT_REGISTRY = 'https://www.clawhub.ai'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LEGACY_REGISTRY_HOSTS missing 'clawhub.ai' hostname causes users with old cached URLs to not be migrated to the new default

Fix on Vercel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

clawhub login --token returns Unauthorized for valid tokens

1 participant