ak-cli
A small CLI I built for my own server management needs — quick answers to "what's using the RAM", "is this port open", "how full is the disk", without reaching for a full monitoring stack. Sharing it in case it's useful to someone else too.
Every command works both as a direct CLI call and from an interactive menu,
so you can script it or just run ak and pick from a list.
Features
| Command | Description |
|---|---|
system-info |
OS, architecture, Python version, hostname |
disk-usage |
Usage for every mounted disk/partition |
network-info |
IPv4 address of every network interface |
memory-info |
RAM and swap usage |
cpu-info |
Core count, current usage, frequency |
process-list |
Top processes by memory usage |
uptime |
System boot time and uptime |
users |
Currently logged-in users |
port-check |
Check whether a TCP port on a host is open |
Requirements
- Python 3.10+
Installation
Clone the repo and install it in a virtual environment. uv is recommended:
git clone https://github.com/AmirKenzo/ak-cli.git
cd ak-cli
uv sync
uv run ak
Or with plain pip:
git clone https://github.com/AmirKenzo/ak-cli.git
cd ak-cli
python -m venv .venv
.venv/Scripts/activate # on Linux/macOS: source .venv/bin/activate
pip install -e .
ak
Usage
Running ak with no arguments opens the interactive menu:
ak
Every command is also available directly, which is handy for scripts and one-liners:
ak system-info
ak disk-usage
ak memory-info
ak cpu-info
ak process-list --limit 5
ak port-check example.com 443
ak uptime
ak users
Roadmap
- Folder backups with scheduled/on-demand runs
- Sending backup archives straight to a Telegram chat (via Telethon or Pyrogram), delivered to a numeric chat ID you configure
License
MIT — see LICENSE.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file akctl-0.1.0.tar.gz.
File metadata
- Download URL: akctl-0.1.0.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7eef15d5237f406fad3c213c2bce7e35601b6e99159a0ed0f915dcf21020204f
|
|
| MD5 |
4f975c7c23fe0e7c8b9639a99f344e75
|
|
| BLAKE2b-256 |
ad2e9aea54d70059e2d6602b345b8d93ddd1a7b54edb14d71c89ea16acaf7b27
|
File details
Details for the file akctl-0.1.0-py3-none-any.whl.
File metadata
- Download URL: akctl-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2941ecb81bdf78eb2be0bf3813cba8140d5bad1a5fea80b610a014be47adbb29
|
|
| MD5 |
edb4beba300c6d23f02be6755023ec0a
|
|
| BLAKE2b-256 |
7ec3fdfb47e3e6c3da282564c3906fb457fac2e19b6b919bbb9c467cdaa1fc5f
|