ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified system Safety 3/5

mikrotik

通过 API 连接和管理 MikroTik RouterOS 设备。支持查看设备状态、防火墙规则、网络配置,执行自定义 RouterOS 命令。

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/2944721178/mikrotik
Or

What This Skill Does

The MikroTik skill allows the OpenClaw AI agent to interface directly with MikroTik RouterOS hardware. By utilizing the RouterOS API (typically on port 8728), this skill provides an abstraction layer over low-level router commands, allowing users to interact with their infrastructure using natural language. It covers a vast range of tasks, including device monitoring, firewall management, interface configuration, routing, and system maintenance. Whether you are checking system health, managing VPN tunnels, or running custom CLI commands, this skill provides a seamless bridge between your intent and the network equipment.

Installation

You can install the skill via the OpenClaw CLI by running: clawhub install openclaw/skills/skills/2944721178/mikrotik. Once installed, you need to configure your device credentials. The recommended approach is creating a ~/.openclaw/workspace/TOOLS.md file listing your devices with their IP addresses, usernames, and passwords. Alternatively, you can use environment variables (MIKROTIK_HOST, MIKROTIK_USER, MIKROTIK_PASS) for single-device setups.

Use Cases

This skill is perfect for network administrators and DevOps engineers who want to automate repetitive tasks or troubleshoot remote routers without manual CLI logins. Common use cases include:

  • Monitoring: Quickly fetching CPU, memory, and interface traffic statistics.
  • Troubleshooting: Running diagnostic commands like ping, traceroute, or viewing system logs directly from the chat interface.
  • Security: Reviewing firewall filter rules or NAT configurations to verify network security postures.
  • Administration: Managing DHCP leases, VLANs, or system scheduler tasks without needing to remember complex RouterOS CLI syntax.
  • Multi-Site Management: Managing a fleet of routers by simply specifying the device name (e.g., 'home' or 'office') in your prompt.

Example Prompts

  1. "Check the current CPU and memory status of my office router."
  2. "Show me the active firewall NAT rules for the home device."
  3. "Run a ping test to 8.8.8.8 on the office router to check for connectivity issues."

Tips & Limitations

  • Tip: If you have many devices, use the TOOLS.md file to maintain a clean directory of your network assets.
  • Tip: You can execute raw RouterOS commands by prefacing them with 'run command'.
  • Limitation: Ensure the API service is enabled on your MikroTik device (IP > Services > api), otherwise the agent cannot connect.
  • Security: Avoid storing plain-text passwords in shared folders; always manage your credentials securely within the recommended workspace configuration.

Metadata

Stars4473
Views0
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-2944721178-mikrotik": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#mikrotik#networking#routeros#automation#sysadmin
Safety Score: 3/5

Flags: network-access, external-api, code-execution