cli-anything-jumpserver

Manage JumpServer bastion host assets, users, permissions, and sessions via REST API.

48.8k|4.5k|Updated Mar 8, 2026
One-click install
npx skills add https://github.com/HKUDS/CLI-Anything --skill cli-anything-jumpserver
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cli-anything-jumpserver
Source: https://github.com/HKUDS/CLI-Anything/tree/main/jumpserver/agent-harness/cli_anything/jumpserver/skills
Command: npx skills add https://github.com/HKUDS/CLI-Anything --skill cli-anything-jumpserver

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Managing a JumpServer bastion host through the web UI or raw REST API calls is slow and hard to automate, especially for AI agents that need structured, scriptable access to assets, users, permissions, and audit logs.

Core Features & Use Cases

  • Full Bastion Management: Authenticate, then manage assets, nodes, platforms, gateways, users, user groups, asset permissions, accounts, and labels through one CLI.
  • Session & Audit Operations: List and kill terminal sessions, retrieve replays and command history, and review login, operation, FTP, and password audit logs.
  • Agent-Friendly Design: Every command supports JSON/YAML output, dry-run previews for mutations, and an interactive REPL mode for stateful workflows.
  • Use Case: An AI agent auditing security can run session list --active --output json to find live sessions, check audit login for failed attempts, and kill suspicious sessions, all without human intervention.

Quick Start

Ask the agent to log in to your JumpServer instance with your URL and credentials, then list all host assets in JSON format.

Frequently Asked Questions about cli-anything-jumpserver

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

FAQPage Schema
How do I manage JumpServer assets from the command line?

Use the asset command group to list, get, create, update, and delete hosts, devices, and databases. Run asset list --type host to see inventory, and add --output json for machine-parseable results.

How to audit user logins and sessions in JumpServer?

Use the audit command group to view login, operation, FTP, and password change logs, and the session group to list active sessions, view command history, or kill sessions. All support JSON output for automated analysis.

Can I test JumpServer changes before applying them?

Yes, all mutation commands support a --dry-run flag that previews the operation without executing it. Combine with --output json to inspect the exact payload that would be sent to the API.

Does the JumpServer CLI support scripting and automation?

Yes, every command supports --output json or yaml for machine consumption, environment variables for credentials, and predictable exit codes. An interactive REPL mode is also available for stateful multi-step workflows.

How do I grant asset access to users in JumpServer?

Use perm create with --users, --assets, and --actions flags to define an asset permission. Verify the result with perm users or perm assets to list who and what the permission covers.