
CLI Anything JumpServer
FreeManage JumpServer bastion hosts via a stateful CLI.
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 source1. Install with the skills CLI
npx skills add hkuds/cli-anything/skills --agent claude-code2. 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 hkudscli-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 URLJUMPSERVER_USERNAME- Default usernameJUMPSERVER_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 |
Frequently asked questions about CLI Anything JumpServer
Similar skills
Secret Scanning
Protect your code by preventing secret leaks.
MCP Security Audit
Ensure your MCP configurations are secure and compliant.
iMessage Access Management
Control access to your iMessage channel securely.
Implementing Secret Scanning with Gitleaks
Automate detection of hardcoded secrets in git repositories.
Secrets Vault Manager
Manage and secure your secret infrastructure efficiently.
AWS Secrets Manager
Safely manage secrets without exposing plaintext values.
