A command-line interface for using kyun.host.
Note: This project is currently in beta. OS installation and Stripe payments are not yet supported.
The following assumes you are on Linux. You will need to change some commands if on Windows
sudo apt install pipx
pipx ensurepath
git clone https://git.kyun.host/nthpyrodev/kyuncli.git
cd kyuncli
python3 -m venv .venv
source .venv/bin/activate
pip install build
python -m build
deactivate
pipx install dist/kyuncli-0.1.0-py3-none-any.whl
# Now you can use Kyun CLI
kyun account login
# To uninstall
pipx uninstall kyuncligit clone https://git.kyun.host/nthpyrodev/kyuncli.git
cd kyuncli
python3 -m venv .venv
source .venv/bin/activate
pip install -e .clickhttpxrequestsqrcode
# Create a new account
kyun account create
# Login to your account to create the API to use
kyun account login
# Switch between accounts
kyun account switch <hash>
# List all accounts
kyun account list
# Check balance
kyun account balance
# Remove an account (non-destructive, just removes it locally)
kyun account remove <hash># List SSH keys
kyun account ssh list
# Add SSH key from file
kyun account ssh add --file ~/.ssh/id_rsa.pub --name "My Key"
# Add SSH key directly
kyun account ssh add --key "ssh-rsa AAAAB3..." --name "My Key"
# Rename SSH key
kyun account ssh rename <key_id> "New Name"
# Delete SSH key
kyun account ssh delete <key_id># Get contact information
kyun account contact get
# Update email address
kyun account contact update --email "[email protected]"
# Update Matrix ID
kyun account contact update --matrix "@user:matrix.org"
# Update both email and Matrix
kyun account contact update --email "[email protected]" --matrix "@user:matrix.org"
# Link Telegram account
kyun account contact telegram link --code "ABC123"
# Unlink Telegram account
kyun account contact telegram unlink# Check if 2FA is enabled
kyun account otp status
# Enable 2FA (Also creates backup scratch token)
kyun account otp enable
# Disable 2FA
kyun account otp disable# List all Danbos
kyun danbo list
# Get detailed Danbo info
kyun danbo get <danbo_id>
# Buy a new Danbo
kyun danbo buy
# Rename a Danbo
kyun danbo rename <danbo_id> "New Name"
# View Danbo resource usage statistics
kyun danbo stats <danbo_id>
# View stats for last 60 minutes
kyun danbo stats <danbo_id> --minutes 60
# Delete a Danbo (Irreversible)
kyun danbo management delete <danbo_id>
# Cancel a Danbo (deleted on next renewal)
kyun danbo management cancel <danbo_id># Start a Danbo
kyun danbo power start <danbo_id>
# Stop a Danbo
kyun danbo power stop <danbo_id>
# Reboot a Danbo
kyun danbo power reboot <danbo_id>
# Graceful shutdown
kyun danbo power shutdown <danbo_id># View current specs
kyun danbo get <danbo_id>
# Check max upgrade options
kyun danbo specs max-upgrade <danbo_id>
# Change specs
kyun danbo specs change <danbo_id># Show danbo information
kyun danbo get <danbo_id>
# Add IPv4
kyun danbo ip add <danbo_id>
# Remove IPv4
kyun danbo ip remove <danbo_id> <ip_address>
# Set primary IP
kyun danbo ip set-primary-ip <danbo_id> <ip_address># View authorized keys
kyun danbo ssh get-authorized <danbo_id>
# Set authorized keys from account (Replaces existing)
kyun danbo ssh set-authorized <danbo_id> --from-account
# Set authorized keys from file (Replaces existing)
kyun danbo ssh set-authorized <danbo_id> --file ~/.ssh/authorized_keys
# Add key to authorized keys
kyun danbo ssh add-to-authorized <danbo_id> --key "ssh-rsa AAAAB3..."
# Remove key from authorized keys
kyun danbo ssh remove-from-authorized <danbo_id> --key "ssh-rsa AAAAB3.."
# Get SSH host keys
kyun danbo ssh get-host-keys <danbo_id># Check current bandwidth limit
kyun danbo bandwidth get <danbo_id>
# Set bandwidth limit (--limit flag optional)
kyun danbo bandwidth set <danbo_id> --limit 100
# Clear bandwidth limit
kyun danbo bandwidth clear <danbo_id># List subdomains
kyun danbo subdomains list <danbo_id>
# Create subdomain
kyun danbo subdomains create <danbo_id> --name "subdomain" --domain "kyun.li" --ip "ip_address"
# Delete subdomain
kyun danbo subdomains delete <danbo_id> <subdomain_id># List attached Bricks
kyun danbo bricks list <danbo_id>
# Attach Brick to Danbo
kyun danbo bricks attach <danbo_id> <brick_id>
# Detach Brick from Danbo
kyun danbo bricks detach <danbo_id> <brick_id># List all Bricks
kyun brick list
# Get Brick details
kyun brick get <brick_id>
# Buy a new Brick
kyun brick buy
# Grow a Brick
kyun brick grow <brick_id>
# Check max growth
kyun brick max-grow <brick_id>
# Delete a Brick (Irreversible)
kyun brick delete <brick_id>
# Unsuspend a Brick
kyun brick unsuspend <brick_id># View exchange rates
kyun deposit rates
# List pending deposits
kyun deposit pending
# Create new deposit
kyun deposit create
# Get deposit info
kyun deposit get <deposit_id>
# Check deposit status
kyun deposit status <deposit_id># List all chats
kyun chat list
# Create new chat
kyun chat create
# Create chat using ultra private mode
kyun chat create --private
# View chat messages
kyun chat open <chat_id>
# Delete chat
kyun chat delete <chat_id>
# Check online staff
kyun chat staff
# Enable ultra private mode
kyun chat privacy enable <chat_id>
# Disable ultra private mode
kyun chat privacy disable <chat_id>Account information is stored in ~/.config/kyuncli/config.json. This includes:
- Account hash
- API key
- User ID
If you find a bug, want to request a feature, or anything else, please send me a message or create an issue here: https://github.com/nthpyrodev/kyuncli
- Add support for installing OS to danbo
- Store API in keyring
- Add Stripe support
- Add serial access
- Allow sending chat messages