Guide · Agent skill
How to use the JumpServer Bastion CLI Harness agent skill
Updated · written with AI from the project's own documentation and checked against our catalogue data
cli-anything-jumpserver is an agent skill that lets an AI agent operate a JumpServer bastion host through a command-line harness. JumpServer is a server that controls privileged access to other machines, so this skill is for people who already run one. This guide explains what the skill does, how to install it, how to trigger it with plain requests, and which safety checks to apply before letting an agent change anything.
Quick start
- 1Download and unzip the skill. Download the skill ZIP from this page and unzip it into ~/.claude/skills/ for a personal install or into .claude/skills/ in your project for a project install.
- 2Install the Python harness. From the agent-harness folder, run pip install -e . to install the cli-anything-jumpserver package.
- 3Log in to JumpServer. Run cli-anything-jumpserver auth login with your JumpServer URL, username, and password so the harness stores a session token.
- 4Check authentication status. Run auth status to confirm the session is active before asking the agent for work.
- 5Ask for a task in plain language. Describe the JumpServer object and action you want, such as listing assets or reviewing audit logs.
- 6Dry-run any change. For create, update, or delete requests, ask for a dry run and review the output before approving the real change.
What the skill lets the agent do
The skill wraps the JumpServer REST API in a stateful CLI harness. It covers asset, user, permission, account, session, audit, and operations management. Commands are grouped by area, such as auth, asset, user, perm, account, session, audit, ops, system, label, and role.
The harness supports one-shot commands and an interactive REPL mode. It keeps a stored session token between commands, so the agent does not need to log in again for each step.
- Log in, check status, switch organizations, and log out (auth group)
- List, get, create, update, and delete assets and asset nodes
- Create and manage users, user groups, and roles
- List and manage asset permissions and the assets they authorize
- View and create asset accounts, view secrets and password change history
- List and view terminal sessions and replays, kill active sessions, review command history
- Read login, operation, FTP, password, and activity audit logs
cli-anything-jumpserver auth login --url <your JumpServer URL> --username <username> --password <password>Install the skill
Download the skill ZIP from this page. Then choose one of the two install routes below.
For a personal install, unzip the file into ~/.claude/skills/. For a project-only install, unzip it into the .claude/skills/ folder inside your project. Claude Code will then find the skill as a folder containing SKILL.md.
To use the skill in the Claude apps instead, upload the ZIP under Settings → Capabilities → Skills.
- Personal: unzip into ~/.claude/skills/
- Project: unzip into .claude/skills/ in the project root
- Claude apps: Settings → Capabilities → Skills, then upload the ZIP
Install the Python harness
The skill calls a Python package named cli-anything-jumpserver. The SKILL.md quick start installs it from the agent-harness folder of the source repository in editable mode. The file does not list the exact dependencies, so check the package files if the install fails.
You need Python available on your machine and a network path to your JumpServer instance.
cd agent-harness && pip install -e .Connect to your JumpServer bastion
Authenticate first. The login command takes the JumpServer URL and your credentials and stores a session token for later commands. Use an account with appropriate roles for the tasks you want the agent to perform.
The login command also accepts an --org option for choosing an organization and an --insecure option. Check status at any time to confirm the session is still active, and run logout to clear it.
- Use --org to select an organization when your deployment has several
- Run auth status before a batch of work to confirm the stored session is valid
- Run auth logout when you are finished
cli-anything-jumpserver auth statusTrigger the skill with natural requests
You do not need to type commands yourself. Ask the agent in plain language and name the JumpServer task. The agent can then choose the right command group. Good requests name the object, the action, and the scope, for example which asset type, user, or time window.
For any change, ask for a dry run first. The create, update, and delete commands accept a --dry-run option, and the create and update commands for users, permissions, and accounts also accept it. Review the dry-run output before asking for the real change.
- "List the database assets on the production node that are inactive."
- "Show me the login audit logs for user alice from the last week."
- "Dry-run creating a user named bob with the auditor role, then show me the result."
- "List the active sessions on asset web-01 and show command history for them."
Safety notes before you use it
The skill runs scripts and uses the network. It talks only to the JumpServer instance you log in to, but it can change that system. Commands can create, update, and delete assets, users, permissions, and accounts. The kill command ends an active session.
The account secret view command returns account passwords. If agents must never see passwords, do not give this skill access to that environment. Use a test JumpServer for trial runs, and keep a human in the loop for any change to a production bastion.
- Use a non-production JumpServer for your first tests
- Always run --dry-run on create, update, and delete commands
- Keep a human review step before any kill, delete, or secret view
- Use an account with the minimum roles needed for the task
- Avoid unattended runs on production bastions
Tips for better results
Keep the session token in mind. Because the harness stores it between commands, a long session may expire, so re-run auth status if commands start failing. Use the --limit and --offset options on list commands when you expect many results, and use --search or type filters to narrow the output.
Interactive REPL mode suits exploratory work, where you ask follow-up questions about the same data. One-shot commands suit repeatable checks and are easier to review afterwards.
- Narrow lists with --search, --type, --user, or --asset to keep output readable
- Use --limit and --offset to page through large result sets
- Use the session commands with --active or --finished to separate live and past sessions
- Use REPL mode for exploration and one-shot commands for repeatable tasks
What people use it for
- Listing assets, nodes, and platforms to answer an inventory question
- Provisioning users and permissions with a dry-run check first
- Reviewing login, operation, password, and FTP audit logs for a compliance request
- Pulling session and command history for a specific user or asset during an investigation
- Checking system health and gateway connectivity during routine maintenance
Frequently asked questions
Is cli-anything-jumpserver free to use?
The skill is published under the Apache-2.0 licence, as listed for the HKUDS/CLI-Anything repository. Check the licence file in the source repository for the full terms before using it in your organisation.
What do I need before installing the skill?
You need a Python environment with the cli-anything-jumpserver package installed, a reachable JumpServer instance URL, and a JumpServer username and password or equivalent credentials with suitable roles. The skill only talks to a live JumpServer API, so it will not work without one.
Where do I put the skill files?
Unzip the downloaded ZIP into ~/.claude/skills/ for a personal install, or into .claude/skills/ inside a project for a project-only install. In the Claude apps, upload the ZIP under Settings → Capabilities → Skills.
Can the agent delete things on my bastion?
Yes. The asset, user, permission, and account commands include delete actions, and the session kill command ends active sessions. Use the --dry-run option first and require human review before any delete or kill.
Does the skill show account passwords?
Yes. The account secret view command returns an account's password or secret, and the history subcommand shows password change history. If your agents must never see passwords, do not use this skill in that environment.
What are the alternatives to this skill?
The source does not compare this skill with other tools, so it makes no claims about alternatives. If you need a different way to manage JumpServer, you can use the JumpServer web interface or its REST API directly, and this skill is simply one command-line wrapper around that API.
New agent skills, repos and AI tools — every week
The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.
Our verdict
Use this skill if you already run a JumpServer bastion and want an agent to handle routine lookups, audit and session review, and carefully checked provisioning changes. Pick something else if you have no JumpServer deployment, or if your agents must not see account passwords or make unreviewed changes to production.
Download the skill