mkirillka

Keenetic Netcraze Manager — Development skill for Claude Code

Development community

Agent skill + CLI to manage Keenetic and Netcraze routers over RCI: object-group fqdn domain lists, dns-proxy split tunneling, access policies, safe CLI apply with config backup.

How to install Keenetic Netcraze Manager

This entry records only its repository, not the path inside it, so there is no exact command to give. Open mkirillka/keenetic-netcraze-manager and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Keenetic Netcraze Manager does

Agent skill + CLI to manage Keenetic and Netcraze routers over RCI: object-group fqdn domain lists, dns-proxy split tunneling, access policies, safe CLI apply with config backup. Works with OpenCode, Claude Code, Cursor and any agent runtime.

Alternatives in Development

  • Backup 14.5k ★
  • Privacy Policy — Draft privacy policies with GDPR compliance considerations 7.8k ★
  • Ian Xiaohei Scenes — Xiaohei 2.0 Codex Skill for Chinese real-object article illustrations and long-scroll story images 486 ★

README

Keenetic / Netcraze Manager — an agent skill for routers

Talk to a **Keenetic** or **Netcraze** router from the command line or from an AI coding agent. Read what is configured, manage `object-group fqdn` domain lists, wire them into DNS-based split tunneling, inspect access policies, and apply CLI commands with an automatic config backup — all over **RCI**, the HTTP-JSON API behind the router web panel.

No address, login or password is baked into the code. Everything site-specific stays in a local profile on your machine.

Works with KeeneticOS 4.x and 5.x, on macOS and Linux, standard-library Python only.

$ python3 scripts/kn.py version
Router:      home (living room)
Address:     http://192.168.1.1:80
Model:       Giga (KN-1012)
KeeneticOS:  5.1.8  [5.01.C.8.0-2, stable]
Arch:        aarch64
Uptime:      12d 4h
CPU / RAM:   3% / 118544/262144 KB

$ python3 scripts/kn.py groups
Router home (living room), http://192.168.1.1:80
object-groups: 12, entries total: 1076

  #  group            type     entries  route                            description
-------------------------------------------------------------------------------------
  1  domain-list0     fqdn         175  Wireguard0 auto                  youtube
  2  domain-list1     fqdn          72  Wireguard0 auto                  instagram
  3  domain-list2     fqdn         191  Wireguard0 auto                  google
 ...

Why this exists

Keenetic routers expose a capable API, but the first request fails in a way that is easy to misread: `GET /auth` with a login and password in the query string returns **401 every time**, even with the correct password. The panel actually uses a challenge:

GET  /auth                     → 401 + X-NDM-Realm, X-NDM-Challenge, session cookie
sha  = SHA256(challenge + MD5("login:realm:password"))
POST /auth {"login":…, "password":sha}  → 200 + session cookie
POST /rci/ {"parse": ""}
GET  /rci/               → JSON

On top of that,