Networka is a lightweight CLI for network engineers and integrators. Run ad hoc commands or reusable sequences across network devices from multiple vendors, then save the output and later compare a device with that saved output.
Use Networka for on-demand troubleshooting and before-and-after checks. Pair it with continuous monitoring for alerting, telemetry, and ongoing checks.
- Installation: see the docs → https://narrowin.github.io/networka/getting-started/
- Platform compatibility → https://narrowin.github.io/networka/platform-compatibility/
- Shell completion → https://narrowin.github.io/networka/shell-completion/
- CLI reference → https://narrowin.github.io/networka/reference/cli/
- API reference → https://narrowin.github.io/networka/reference/api/
See how to run a reusable sequence, save the output, and compare it with saved output.
| Networka | Ansible | Nornir | |
|---|---|---|---|
| Primary interface | CLI commands | YAML playbooks | Python scripts |
| Time to first command | Seconds after install | After writing playbook + inventory | After writing Python script |
| Learning curve | Familiar CLI patterns | YAML, Jinja2, modules | Python programming |
| Execution | Concurrent by default | Sequential by default | Depends on implementation |
| Best for | Daily operations, ad-hoc commands | Infrastructure-as-code, compliance | Custom automation frameworks |
Networka is built for network engineers who want to run commands now. Ansible excels at declarative infrastructure-as-code. Nornir shines when you need full Python programmability. Different tools, each great at what they do.
- Multi-vendor network automation: Native support for MikroTik RouterOS, Cisco IOS/IOS-XE/NX-OS, Arista EOS, Juniper JunOS, and more
- Scalable device management: Execute commands across individual devices or groups
- Cross-platform compatibility: Scrapli 2 wheels for Linux and Apple Silicon
- Flexible configuration: YAML and CSV configuration options with powerful device tagging and grouping
- Command execution: Run single commands or predefined sequences across devices and groups
- File management: Upload/download files to/from network devices with verification and error handling
- Device backup: Automated configuration and comprehensive backups with vendor-specific implementations
- Firmware management: Upgrade, downgrade, and BIOS operations with platform validation
- CLI session management: Direct CLI access with tmux integration for interactive sessions
- Lab tests and state checks check that devices are in the planned state and measure traffic while the network changes.
nw intentchecks device state on any device whose platform has checks, today MikroTik RouterOS and Linux.nw testadds ping measurement and actions such as cable changes, reboots and injected faults, and it runs against containerlab labs. Both save their evidence and can replay it without the lab or the devices. The Small MLAG lab has runnable examples.
- Intelligent completions: Context-aware shell completions for devices, groups, and sequences
- Vendor-aware sequences: Predefined command sets optimized for different network platforms
- Results management: Organized storage with multiple output formats and automatic timestamping
- Configuration validation: Schema-based validation with detailed error reporting
- Credential management: Secure credential handling via environment variables with device-specific overrides
- Type safety: Full mypy type checking for reliability and maintainability
- Modern architecture: Built with scalable scrapli and nornir support
- Extensible design: Plugin-friendly architecture for adding new vendors and operations
- Rich output: Professional CLI interface with color coding and structured information display
- Operating System: Linux x86-64/arm64 or macOS arm64
- Python: 3.15 or later
- Network Access: SSH connectivity to target devices
- Package Manager: uv (recommended) or pip
- tmux for
nw cli: Install tmux to use the multi-pane CLI command (brew install tmuxon macOS,apt install tmuxon Debian/Ubuntu). libtmux is installed automatically with Networka.
With uv in this checkout, use a project environment to keep the native driver isolated.
uv sync --locked
uv run --locked nw --version
uv run --locked nw --helpNetworka uses Scrapli 2 via the scrapli==2026.11.12 distribution. An in-place upgrade replaces legacy Scrapli through pip or uv. Early candidate installations that included scrapli2==2.0.4 should use a fresh environment. Transport selection · Platform compatibility
Inspect a packaged sequence and run it on a RouterOS device. Replace the example address and enter your device credentials when prompted.
nw info system_info --vendor mikrotik_routeros
nw run 192.0.2.10 system_info --platform mikrotik_routeros --interactive-authFor recurring work, use nw config init to create your
configuration and target devices by name.
Use Networka programmatically in your Python applications:
from network_toolkit import NetworkaClient, DeviceSession
client = NetworkaClient()
with DeviceSession("router1", client.config) as session:
output = session.execute_command("show version")
print(output)See the Library Documentation for:
- Multi-command workflows with persistent sessions
- Ad-hoc IP targeting without configuration files
- Credential handling patterns
- Integration recipes
Run directly against an IP without creating files. --platform selects the network OS driver; --interactive-auth prompts for credentials.
# MikroTik RouterOS
nw run --platform mikrotik_routeros 192.0.2.10 "/system/identity/print" --interactive-auth# Cisco IOS-XE
nw run --platform cisco_iosxe 198.51.100.20 "show version" --interactive-authdevice_typeis the logical platform used to select commands and the native connection definition.- The inventory
platformfield describes hardware architecture for firmware. --platformnames the logical platform for a raw IP target.--transportselects the Scrapli driver family. The underlying connection backend defaults to OpenSSH. Transport settings
- Getting started → https://narrowin.github.io/networka/getting-started/
- Running commands → https://narrowin.github.io/networka/running-commands/
- Configuration → https://narrowin.github.io/networka/configuration/
- Environment variables → https://narrowin.github.io/networka/environment-variables/
- Results → https://narrowin.github.io/networka/results/
- Output modes → https://narrowin.github.io/networka/output-modes/
- Backups → https://narrowin.github.io/networka/backups/
- CLI reference → https://narrowin.github.io/networka/reference/cli/
- API reference → https://narrowin.github.io/networka/reference/api/
- For current usage and commands, see the CLI reference:
- https://narrowin.github.io/networka/reference/cli/
- Quick checks:
nw --helpandnw --version
- Visit our documentation for detailed guides and examples
- Create GitHub Issues for bug reports and feature requests
- See CONTRIBUTING.md for contribution guidelines
- Check SECURITY.md for security policy and reporting vulnerabilities
Have a look through existing Issues and Pull Requests that you could help with. If you'd like to request a feature or report a bug, please create a GitHub Issue using one of the templates provided.
- Docs Home → https://narrowin.github.io/networka/
- Platform Compatibility → https://narrowin.github.io/networka/platform-compatibility/
- Development Guide → https://narrowin.github.io/networka/development/
- Multi-Vendor Support → https://narrowin.github.io/networka/multi-vendor-support/
- IP Address Support → https://narrowin.github.io/networka/ip-address-support/
- Transport Selection → https://narrowin.github.io/networka/transport/
- Environment Variables → https://narrowin.github.io/networka/environment-variables/
- File Upload Guide → https://narrowin.github.io/networka/file_upload/
- Interactive Credentials → https://narrowin.github.io/networka/interactive-credentials/
Apache License 2.0 - Free for commercial and personal use. No paid tiers, no enterprise versions, no licensing restrictions.
Community-driven project with contributions from narrowin and network engineers worldwide. See GOVERNANCE.md for maintenance and decision-making model.
- Scrapli - Network device connections
- Nornir - Network automation framework
- Netmiko - Multi-vendor CLI connections to network devices
- Typer - CLI framework
- Pydantic - Data validation
- Rich - Terminal formatting
Built for network engineers who value clean, reliable automation

