rauto Overview

rauto is a Rust-based network automation toolkit that unifies reusable credentials, connectivity, show queries, TextFSM parsing, execution, orchestration, recording, and replay for network devices and Linux hosts through CLI, Svelte Web, and agent APIs.

What problem does it solve?

Traditional network automation often runs into the same set of issues:

  • command execution is fragmented and ad-hoc scripts are hard to reuse
  • prompt and mode handling varies across vendors
  • changes lack rollback-aware execution models
  • multi-device operations lack consistent orchestration and audit history
  • AI-driven control needs a more reliable execution and templating layer

rauto is designed to unify these low-level concerns into one execution engine that can be reused by network engineers, automation developers, and AI agents.

Core surfaces

CLI

The most direct interface, suitable for:

  • ad-hoc command execution
  • multi-target exec, flow, show, and configuration fetch with bounded concurrency
  • profile-aware show-object inspection with TextFSM parsing
  • batch show queries across saved connections, inventory groups, and labels
  • rendering and running saved templates
  • interactive command flow execution
  • transaction blocks, workflows, and orchestration

Web console

rauto web starts a local self-managed console, suitable for:

  • managing reusable credentials, saved connections, templates, command flow templates, and custom show objects
  • executing direct commands, show objects, batch show queries, templates, command flows, transactions, and orchestration in the browser
  • managing custom TextFSM templates, profile-command mappings, and parser bindings
  • inspecting async tasks, recordings, replays, blacklists, and backups

Agent mode

rauto agent connects a node to rauto-manager, turning it into a managed execution endpoint for centralized control.

  • distributed execution across sites and regions
  • centralized task dispatch and visibility from the manager side
  • HTTP or gRPC communication with the manager

Key capabilities

  • two-layer templating: command templates and device profiles
  • default autodetect profile resolution with local host:port cache
  • built-in multi-vendor profiles with support for custom profiles
  • show objects mapped to platform commands and parsed with bundled NTC TextFSM templates
  • batch show queries selected by saved connection, inventory group, or label/tag
  • custom TextFSM templates, command mappings, and show objects stored in SQLite
  • reusable device credentials with encrypted storage, reference protection, and CSV/Excel import
  • password, encrypted inline private-key, runtime private-key-file, and SSH-agent authentication
  • saved connections with credential references, import, and grouping support
  • automatic SSH device discovery across IPs, CIDRs, ranges, ports, and ordered credentials
  • running/startup configuration fetch with raw and normalized SHA-256 drift hashes
  • opt-in transient session retries with capped exponential backoff and flow resumption
  • ordered mode candidates such as Enable,Config and Root|User
  • optional device model and software version facts with Web detection and searchable summaries
  • unified Web Profile catalog with state-machine diagnostics and command-flow lifecycle Hooks
  • global command blacklist for dangerous command protection
  • session recording and replay with JSONL-based audit history
  • tx for rollback-aware single-target changes
  • tx-workflow for multi-block transactional workflows
  • orchestrate for staged multi-device rollout plans
  • upload for direct SFTP transfers to supported hosts
  • backup for saving and restoring ~/.rauto runtime data

When to use each surface

GoalRecommended entryNotes
Run one command quicklyrauto execBest for troubleshooting and quick validation
Run a profile-aware show objectrauto showBest for parsed operational checks
Run multi-target show queriesrauto show --groupBest for inventory-wide read-only checks
Render and apply a templaterauto templateBest for reusable command logic
Drive an interactive prompt flowrauto flowBest for copy scp: and wizard-like device flows
Manage and execute in a browserrauto webBest for local self-service and visual operations
Join a central control planerauto agentBest when managed by rauto-manager
Execute a rollback-aware changerauto txBest for compact single-target transactions
Run a workflow JSON filerauto tx-workflowBest for block-based transaction logic
Roll out to multiple targetsrauto orchestrateBest for staged and batch delivery

Product boundary

rauto and rauto-manager serve different layers:

ProjectRoleBest for
rautoExecution engine and local operator toolSingle-node execution, local UI, and agent runtime
rauto-managerCentral control planeMulti-agent management, shared inventory, and centralized dispatch

If your priority is:

  • automation from a single workstation
  • local templates, recordings, replays, and transaction tools
  • a stable execution layer for AI or higher-level platforms

then rauto should be your primary entry point.

Next, continue with Quick Start, Automatic Device Discovery, Configuration Fetch and Drift Hashes, and Command Selection and CLI.