Skip to content
Skillpedia
Deploy & cloud (DevOps)58k · #3214

cli-anything-jumpserver

What it does

This skill lets your agent manage JumpServer, a system that controls access to servers through a bastion host. It is for IT and system administrators who need to check access and audit records.

When to use it

  • ✓When you want to list the servers or assets managed by JumpServer.
  • ✓When you want to review user permissions or account access.
  • ✓When you want to check session or audit records.

Skill link

https://github.com/HKUDS/CLI-Anything/blob/main/jumpserver/agent-harness/cli_anything/jumpserver/skills/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/HKUDS/CLI-Anything/blob/main/jumpserver/agent-harness/cli_anything/jumpserver/skills/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“List all the host assets in JumpServer and show who has access to the production group.”

5 new skills a week. 1 minute to read.

How it works

The skill calls the JumpServer REST API with your login details, then lists or changes records. Changes can be previewed first with a dry-run option.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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

Format Flag Use Case
Table --output table (default) Human-readable display
JSON --output json Agent consumption, scripting
YAML --output yaml Configuration, readability

Exit Codes

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

File Locations

Path Purpose
~/.jumpserver-cli/session.json Authentication session
~/.jumpserver-cli/state.json CLI operational state
FAQ

Can I preview changes first?

Yes, mutation commands support a dry-run option that shows what would happen without running it.

How do I log in?

You give your JumpServer URL and username, and the skill can read defaults from environment variables.

Is there an interactive mode?

Yes, you can start an interactive session for step-by-step work.

Details

Original description by the author

Stateful CLI harness for JumpServer bastion host management. Supports asset, user, permission, account, session, audit, and operations management via REST API, with both one-shot and interactive REPL modes.

repo: HKUDS/CLI-Anything

Popularity

GitHub stars
58k
Ranking position
#3214
License
Apache-2.0
Updated
9/21/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills