ClawHub Login Helper for Openclaw

A specialized OAuth assistant for authenticating ClawHub on headless servers without a graphical web browser.

mengwuzhi
v1.0.0
Feb 28, 2026
0
962
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install clawhub-login

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install clawhub-login using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is ClawHub Login Helper?

The ClawHub Login Helper is a dedicated utility designed to solve authentication hurdles on remote, headless servers. When developers attempt to log in to ClawHub via CLI in environments lacking a GUI, standard browser-based triggers often fail with errors like xdg-open ENOENT.

This skill streamlines the process by providing a manual OAuth 2.0 bridge. By leveraging Openclaw Skills, it allows users to generate authorization URLs that can be opened on a local machine, with the final callback URL being passed back to the server to complete the secure handshake.

ClawHub Login Helper Use Cases

  • Logging into ClawHub on remote SSH servers or CI/CD environments without a browser.
  • Resolving the spawn xdg-open ENOENT error during standard CLI login attempts.
  • Using an AI agent to handle the manual steps of the OAuth flow via natural language.
  • Managing secure token storage on servers for persistent CLI access.

How ClawHub Login Helper Works

  1. The utility generates a unique OAuth 2.0 authorization URL containing a specific state parameter.
  2. The developer copies this URL from the terminal and opens it in their local browser.
  3. Upon successful login and authorization on the website, the browser redirects to a callback page.
  4. The developer copies the entire callback URL (containing the auth code) and pastes it back into the server terminal.
  5. The script extracts the authorization code, exchanges it for an access token, and saves it to the local token store.

ClawHub Login Helper Setup

To begin using this skill within your Openclaw workspace, run the following command to start the interactive login assistant:

python3 ~/.openclaw/workspace/skills/clawhub-login/scripts/clawhub_login.py

You can also use specialized flags for status checks or logging out:

# Check if you are currently logged in
python3 ~/.openclaw/workspace/skills/clawhub-login/scripts/clawhub_login.py --check

# Securely log out and clear tokens
python3 ~/.openclaw/workspace/skills/clawhub-login/scripts/clawhub_login.py --logout

ClawHub Login Helper Data Schema & Taxonomy

The skill manages sensitive authentication data and configuration within the user's home directory:

Data Type File Path Description
Access Token ~/.clawhub/token The active OAuth token used for API requests.
Configuration ~/.config/clawhub/config.json Stores CLI settings and environment metadata.

ClawHub Login Helper Advanced Features

  • Headless Environment Detection: Automatically identifies when a browser cannot be opened and switches to manual mode.
  • Agent-Driven Authentication: Can be triggered via a simple agent command like "help me log in to ClawHub" using Openclaw Skills.
  • CLI-First Design: Provides non-interactive flags (--get-url, --check, --logout) for integration into other scripts or automation workflows.
  • Secure Token Management: Implements standard OAuth 2.0 best practices for state validation and token storage.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*