MTik – A Ruby implementation of the MikroTik RouterOS API

The MTik gem implements the MikroTik RouterOS API for connecting to devices running RouterOS (with the API enabled) over the network.


Included in the bin subdirectory are four example ruby scripts that use the Ruby API implementation:


A command-line-like API interface


A tool for executing a single API command from a unix command-line


A tool for instructing devices to download files from specified URLs (unix command-line tool)


Like 'tikcommand' a tool for executing a single API command, except the output is formatted in JSON-style


The latest version of MTik can be found at

Ruby RDoc documentation can be found online at

Additional documentation is available at

Source code is available on GitHub:

For documentation on the MikroTik RouterOS API, see


To install MTik is through its GEM file:

% [sudo] gem install mtik-4.1.1.gem


This gem and all other scripts and documentation files are licensed under a BSD-style license. (See the LICENSE.txt file.)

Report Bugs

Bugs/issues may also be reported via GitHub:

ALSO, please send the author a note regarding the issue by clicking on the “Contact Me” link in the left-hand menu of the author's web site. The direct URL is:

Thank you!

– Aaron D. Gifford