Skip to content
OpenSmartRoute
Skillv1.0.0

cli-anything-jumpserver

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

by hkuds(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from hkuds/cli-anything (skills/cli-anything-jumpserver/SKILL.md). Install upstream with npx skills add hkuds/cli-anything --skill cli-anything-jumpserver. Copyright stays with the author.

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

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/hkuds-cli-anything-cli-anything-jumpserver/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

hkuds-cli-anything-cli-anything-jumpserver.ocm.jsonjson
{
  "ocm": "1",
  "id": "hkuds-cli-anything-cli-anything-jumpserver",
  "kind": "skill",
  "name": "cli-anything-jumpserver",
  "description": "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.",
  "publisher": "hkuds",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding"
    ],
    "tags": [
      "skill-md",
      "jumpserver",
      "bastion",
      "pam",
      "security",
      "ssh",
      "cli",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "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."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/hkuds/cli-anything",
      "path": "skills/cli-anything-jumpserver/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/hkuds/cli-anything/blob/HEAD/skills/cli-anything-jumpserver/SKILL.md",
      "key": "hkuds/cli-anything/skills/cli-anything-jumpserver/SKILL.md"
    }
  },
  "instructions": "# cli-anything-jumpserver\n\nStateful CLI harness for JumpServer bastion host. Manage assets, users, permissions, accounts, sessions, audits, and more via the JumpServer REST API.\n\n## Quick Start\n\n```bash\n# Install\ncd agent-harness && pip install -e .\n\n# Authenticate\ncli-anything-jumpserver auth login --url https://jumpserver.example.com --username admin\n\n# List hosts\ncli-anything-jumpserver asset list --type host\n\n# Interactive REPL mode\ncli-anything-jumpserver --interactive\n```\n\n## Agent Usage Guidance\n\nThis CLI is designed for AI agent consumption. Key features for agents:\n\n### JSON Output Mo",
  "cost": {
    "context_tokens": 797
  }
}

Fetch it by URL: GET /api/v1/registry/hkuds-cli-anything-cli-anything-jumpserver/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.