cli

Manage LobeHub CLI agents, models, providers, skills, and plugins from the terminal.

1|Updated May 9, 2026
One-click install
npx skills add https://github.com/duwenji/generative-ai-oss-tutorials --skill cli-duwenji
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli
Source: https://github.com/duwenji/generative-ai-oss-tutorials/tree/main/sandbox/lobe-chat/.agents/skills/cli
Command: npx skills add https://github.com/duwenji/generative-ai-oss-tutorials --skill cli-duwenji

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers efficiently understand and use the LobeHub CLI for managing agents, skills, models, providers, and related resources without getting lost in command details or project structure.

Core Features & Use Cases

  • Command architecture overview: Understand how @lobehub/cli is structured (entry point, command groups, API client, auth, daemon, utilities).
  • Skill-focused workflows: Use lh skill commands to list/view/create/search/install skills and manage their resources.
  • Operational patterns for CLI usage: Learn common options like --json, --yes, pagination, verbose mode, and how auth/token resolution works.
  • Development guidance: Run the CLI in dev mode with isolated credentials and test against a local server via OIDC Device Code Flow.

Quick Start

Ask your AI assistant to explain how to install a skill from a GitHub repo using the LobeHub CLI and what command to run next to verify it.

Frequently Asked Questions about cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I install a LobeHub skill from a GitHub repository using the command line?

To install a LobeHub skill from a GitHub repository, use the `lh skill install` command in your terminal. You can verify the installation success by listing your available skills with the `lh skill list` command.

How does local OIDC Device Code Flow authentication work for CLI development?

Local OIDC Device Code Flow authentication works by routing token resolution through a local server, enabling isolated credentials. This allows developers to safely test CLI commands in dev mode without affecting production authentication tokens.

What command architecture does the LobeHub CLI use for managing agents and plugins?

The LobeHub CLI uses a Commander.js and TypeScript-based command architecture. It is structured around command groups, an API client, authentication, and utilities to manage agents, models, providers, skills, and plugins.

Can I get JSON output from LobeHub CLI commands for scripting and automation?

Yes, you can get JSON output from LobeHub CLI commands by passing the `--json` flag. This structured output allows you to parse command results programmatically for automation, alongside other operational options like `--yes` and verbose mode.

What are the prerequisites for developing and testing CLI plugins locally?

Prerequisites for local CLI development include a TypeScript environment with Commander.js architecture awareness and token setup via OIDC Device Code Flow. You must also run the CLI in dev mode to ensure isolated credential testing.

How do I search for and view specific skills in the LobeHub marketplace from the terminal?

To search for and view specific skills in the LobeHub marketplace from the terminal, use the `lh skill search` and `lh skill view` commands. These commands support pagination and verbose mode for efficient skill discovery and management.