New to Claude Skills? Learn how to install them →

hkuds on GitHub

CLI Anything JumpServer

Free

Manage JumpServer bastion hosts via a stateful CLI.

by hkuds46.9k stars on hkuds/cli-anything
5 views
Updated Aug 3, 2026
Get this skill

Free · Opens the source repo

What CLI Anything JumpServer does

CLI Anything JumpServer provides a stateful command-line interface for managing JumpServer bastion hosts. This tool allows users to interact with various components of JumpServer, including assets, users, permissions, accounts, sessions, and audits, through a REST API. It supports both one-shot commands and an interactive REPL mode, making it flexible for different use cases. The CLI is particularly designed for AI agents, allowing for easy integration into automated workflows.

The CLI supports JSON output for all commands, making it suitable for machine parsing and scripting. This is beneficial for developers and system administrators who need to automate tasks or integrate JumpServer management into larger systems. Additionally, the dry run mode allows users to preview changes before executing them, reducing the risk of unintended modifications. The tool can also be configured with environment variables for convenience, streamlining the authentication process.

Typical workflows include discovery and inventory of assets, user and permission management, and security auditing. Users can check the status of connections, list hosts, create users, grant permissions, and review audit logs—all from the command line. This capability is essential for organizations that require secure access management and auditing in their infrastructure. By providing a comprehensive set of commands, CLI Anything JumpServer enhances operational efficiency and security management for teams using JumpServer.

When to use it

Use this tool when you need to manage JumpServer assets and users from a command line, especially in automated workflows.

When not to use it

This skill may not be suitable for users who prefer graphical interfaces or those not using JumpServer for bastion host management.

What you can build with it

Asset Management

Quickly list and manage assets within JumpServer, including creating and modifying host entries.

User Creation and Permissions

Easily create new users and assign permissions to assets, ensuring proper access control.

Security Auditing

Conduct audits by checking login attempts and reviewing command history for compliance and security monitoring.

How to install CLI Anything JumpServer

View source

1. Install with the skills CLI

npx skills add hkuds/cli-anything/skills --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by hkuds

cli-anything-jumpserver

Stateful CLI harness for JumpServer bastion host. Manage assets, users, permissions, accounts, sessions, audits, and more via the JumpServer REST API.

Quick Start

# Install
cd agent-harness && pip install -e .

# Authenticate
cli-anything-jumpserver auth login --url https://jumpserver.example.com --username admin

# List hosts
cli-anything-jumpserver asset list --type host

# Interactive REPL mode
cli-anything-jumpserver --interactive

Agent Usage Guidance

This CLI is designed for AI agent consumption. Key features for agents:

JSON Output Mode

All commands support --output json for machine-parseable output:

cli-anything-jumpserver asset list --type host --output json

Dry Run Mode

All mutation commands support --dry-run to preview without execution:

cli-anything-jumpserver asset create --name test --address 10.0.0.1 --platform 1 --dry-run --output json

Environment Variables

  • JUMPSERVER_URL - Default JumpServer URL
  • JUMPSERVER_USERNAME - Default username
  • JUMPSERVER_PASSWORD - Default password

Typical Agent Workflows

1. Discovery and Inventory

# Check connection
cli-anything-jumpserver auth status --output json

# List all hosts
cli-anything-jumpserver asset list --type host --output json

# Get asset details
cli-anything-jumpserver asset get <ID> --type host --output json

# List all users
cli-anything-jumpserver user list --output json

2. User and Permission Management

# Create user
cli-anything-jumpserver user create --name "New User" --username newuser --email user@example.com --output json --dry-run

# Grant asset access
cli-anything-jumpserver perm create --name "App Access" --users "user1,user2" --assets "asset1,asset2" --output json --dry-run

# Verify permissions
cli-anything-jumpserver perm users <PERM_ID> --output json

3. Security Audit

# Check failed logins
cli-anything-jumpserver audit login --status failed --output json

# Review operations
cli-anything-jumpserver audit operate --action delete --output json

# Check active sessions
cli-anything-jumpserver session list --active --output json

# View command history
cli-anything-jumpserver session command list --risk 5 --output json

4. Session Management

# Monitor active sessions
cli-anything-jumpserver session list --active --output json

# Check terminal health
cli-anything-jumpserver session terminal list --output json
cli-anything-jumpserver session terminal status <TERMINAL_ID> --output json

Output Formats

FormatFlagUse Case
Table--output table (default)Human-readable display
JSON--output jsonAgent consumption, scripting
YAML--output yamlConfiguration, readability

Exit Codes

CodeMeaning
0Success
1CLI error (auth, API, etc.)
2Usage error (invalid options/arguments)
130Interrupted (Ctrl+C)

File Locations

PathPurpose
~/.jumpserver-cli/session.jsonAuthentication session
~/.jumpserver-cli/state.jsonCLI operational state

Frequently asked questions about CLI Anything JumpServer

Similar skills