htb-cli-0.1.0 is not a library.
htb-cli
A terminal client for Hack The Box. Browse machines, challenges, Sherlocks, and seasons. Spawn instances, submit flags, manage VPN connections.
Works with any HTB account (free or VIP).
Install
Or download a binary from releases.
Setup
# Save your API token (from https://app.hackthebox.com/profile/settings)
# Verify it works
Usage
# Machines
# Challenges
# Sherlocks
# Seasons
# VPN
# User
# Search
Output
Table output by default. Use --json on any command for machine-readable output:
MCP Server
Run as an MCP server for AI agent integration:
Exposes tools: list_machines, get_machine_info, list_challenges, get_challenge_info, start_challenge, submit_challenge_flag, get_active_machine, list_seasons, search, get_user_profile.
Claude Code config
Config
Optional config at ~/.htb-cli/config.toml:
= "table" # or "json"
= 1 # default VPN server ID
= false
Token stored at ~/.htb-cli/.token (0600 permissions).
License
MIT