MikroTik RouterOS for Openclaw

A comprehensive automation skill for managing MikroTik RouterOS devices through a secure and programmable API connection.

drodecker
v2026.3.30
Mar 31, 2026
1
881
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install mikrotik-routeros

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install mikrotik-routeros using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is MikroTik RouterOS?

The MikroTik RouterOS skill is a powerful extension for Openclaw Skills that enables seamless management of network infrastructure through the RouterOS API. It allows administrators to interact with their routing hardware using natural language, providing a more intuitive way to monitor system health, modify configurations, and maintain network security without needing to manually log into a web interface or Winbox for every task.

By integrating this skill into your workflow, you gain the ability to manage multiple devices from a centralized AI-driven interface. Whether you are checking CPU usage, updating firewall rules, or performing a network-wide scan, this tool streamlines complex networking operations within the Openclaw Skills ecosystem.

MikroTik RouterOS Use Cases

  • Real-time monitoring of system health, CPU, and memory usage across multiple routers.
  • Auditing and updating firewall rules, including NAT and mangle configurations, via natural language.
  • Managing network interfaces, IP addresses, and routing tables programmatically.
  • Automating routine maintenance tasks such as configuration backups and storage cleanup.
  • Performing network discovery and scanning to identify devices and active services on the local subnet.

How MikroTik RouterOS Works

  1. The skill initializes a connection to the targeted MikroTik device using the dedicated RouterOS API port (default 8728).
  2. Authentication is handled using credentials stored in environment variables or defined in the local configuration file for Openclaw Skills.
  3. User commands are processed by the handler, which maps specific intents to RouterOS API calls or internal command wrappers.
  4. The internal API client library communicates with the device to retrieve raw data or execute administrative commands.
  5. The skill processes the device response and formats it into a human-readable summary, providing clear insights or confirmation of the action performed.

MikroTik RouterOS Setup

To integrate this device management capability into your collection of Openclaw Skills, you can configure your credentials using environment variables or a configuration file.

Option 1: Environment Variables

export MIKROTIK_HOST=192.168.88.1
export MIKROTIK_USER=admin
export MIKROTIK_PASS=yourpassword

Option 2: TOOLS.md Configuration

Add your device details to ~/.openclaw/workspace/TOOLS.md under a MikroTik Devices header:

  • office: 192.168.88.1, admin, yourpassword

MikroTik RouterOS Data Schema & Taxonomy

The skill manages its operations and metadata through a structured file hierarchy designed for reliability within the Openclaw Skills framework:

File/Directory Role
handler.py Main processor for translating user input into device actions.
mikrotik-api/client.py The core client responsible for low-level API communication.
mikrotik-api/commands.py A library of pre-defined command wrappers for RouterOS functions.
mikrotik-api/scanner.py Logic for network discovery and device identification.
SKILL.md Technical documentation and usage guides for the skill.

MikroTik RouterOS Advanced Features

  • Multi-device support: Easily switch between home, office, or server-room devices by name in your commands.
  • Custom Command Execution: Run arbitrary RouterOS commands (e.g., /ip/address/print) directly through the AI agent.
  • Intelligent Scanning: Built-in network scanner to find MikroTik devices and verify API availability on the local network.
  • Traffic and Bandwidth Insights: Query detailed interface statistics and monitor queue limits in real-time.
  • Protocol Support: View and manage advanced configurations for WireGuard VPNs, VLANs, Bridges, and dynamic routing like OSPF/BGP.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*