MikroTik Skill
Manage MikroTik RouterOS devices through the AgentOS OpenClaw gateway.
Overview
This skill provides comprehensive MikroTik router management capabilities including hotspot user management, system monitoring, and network diagnostics.
Tools
User Management
mikrotik.user.kick- Disconnect a hotspot usermikrotik.user.add- Create new hotspot usermikrotik.users.active- List active sessions
System Operations
mikrotik.system.stats- CPU, memory, uptimemikrotik.system.reboot- Restart router (requires confirmation)
Network Tools
mikrotik.network.ping- ICMP ping testmikrotik.network.traceroute- Route tracingmikrotik.firewall.list- View firewall rules
Configuration
Set in your .env file:
ROUTER_HOST=192.168.88.1
ROUTER_PORT=8728
ROUTER_USERNAME=admin
ROUTER_PASSWORD=yourpassword
Or configure per-request via the config parameter.
Safety
The following operations require explicit confirmation:
- System reboot
- User disconnection (kick)
- Firewall modifications
Examples
// Kick a user
await runtime.executeTool('mikrotik.user.kick', { user: 'john' });
// Add a user
await runtime.executeTool('mikrotik.user.add', {
username: 'guest',
password: 'temp123',
profile: '1Day'
});
// Get stats
const stats = await runtime.executeTool('mikrotik.system.stats', {});