Web Console and Agent

rauto has two service entry points that may look similar but serve very different purposes:

  • rauto web
  • rauto agent

rauto web: local self-managed console

rauto web \
  --bind 127.0.0.1 \
  --port 3000

Open http://127.0.0.1:3000 and enter the Web password. On the first startup, rauto generates a random password, prints it once, and stores it in an owner-only ~/.rauto/config.toml file:

[web]
password = "generated-password"

Edit web.password while the service is stopped to rotate it. Browser sessions are revocable and memory-only, so restarting rauto requires a new login. Unauthenticated API requests return 401. Keep the password and config file private, and add transport protection before binding to an untrusted network.

It is designed for single-node use and provides a browser UI for:

  • reusable device credentials
  • saved connections
  • command templates
  • command flow templates
  • profile-aware show-object execution
  • batch show queries across saved connections, groups, and labels
  • automatic device discovery with progress, filters, and safe connection import
  • running/startup configuration fetch with raw and normalized SHA-256 hashes
  • custom TextFSM templates and mappings
  • custom show objects
  • direct command execution
  • transaction blocks, workflows, and orchestration
  • async task inspection
  • command blacklist management
  • backup and restore
  • recording and replay

Key web console capabilities

  • credential CRUD, reference protection, CSV/Excel import, and inline creation from connection forms
  • password, encrypted inline private-key, runtime private-key-file, and SSH-agent authentication
  • connection CRUD and import flows using credential references instead of duplicated secrets
  • editable device model and software version facts, with automatic detection from the Profile's version query and TextFSM parser
  • SSH compatibility profiles: secure, balanced, and legacy-compatible
  • one searchable Profile catalog for built-in and custom profiles, with copy-to-custom, state-machine diagnostics, and lifecycle Hook authoring
  • Standard Delivery modes for direct execute, show objects, batch show, template execute, and command flow
  • shared multi-target selectors and bounded concurrency for command, flow, show, and configuration fetch
  • opt-in session retries with capped exponential backoff for repeat-safe operations
  • TextFSM controls, Excel export, strict Error-rule handling, and custom template management
  • Template Manager sections for command templates, flow templates, TextFSM templates, TextFSM mappings, and custom show objects
  • recording, in-browser replay, and execution history
  • English and Chinese UI switching

Current Web interface

The current Profile Management workspace keeps the built-in and custom Profile catalog, read-only built-in details, diagnostics, and copy-to-custom workflow on one screen. Custom Profile lifecycle Hooks can run either one command or a command flow, including prompt-response interactions for long-running commands.

rauto Web Profile Management showing the searchable catalog and cisco_ios profile details

The Device Credentials workspace manages encrypted authentication separately from target metadata. It shows login readiness, optional Enable handling, and every saved connection that references a credential.

rauto Web Device Credentials workspace showing reusable authentication and connection references

Saved connection editing uses the same workspace model. Operators can maintain device_model and software_version manually or ask the Web console to run the resolved Profile's version show query. The detector parses output through the existing NTC/TextFSM pipeline, reports partial results, and keeps manually entered values when a fact cannot be detected.

The Configuration Fetch workspace resolves Profile catalog commands before connecting, displays raw and normalized hashes, and downloads the selected configuration content.

rauto Web Configuration Fetch workspace showing configuration hashes and content

The Auto Discovery workspace scans IPs, CIDRs, or ranges across multiple SSH ports, tries up to three credentials in order, and lets operators filter, select, and save identified devices without importing duplicate endpoints.

rauto Web Auto Discovery workspace showing the latest identified devices

The current Web frontend is built with Svelte 5 and embedded into the release binary. When building from source, build the frontend assets before compiling Rust:

npm run web:build
cargo build --release

For released binaries, no separate static/ directory is required at runtime.

rauto agent: managed execution node

rauto agent is not the local UI. It is the managed runtime used to connect an execution node to rauto-manager.

rauto agent \
  --bind 0.0.0.0 \
  --port 8123 \
  --manager-url http://manager:50051 \
  --report-mode grpc \
  --agent-name agent-beijing-01 \
  --agent-token my-secret-token \
  --probe-report-interval 300

What agent mode provides

After startup, the agent is responsible for:

  • registration and heartbeat with the manager
  • inventory reporting and offline notifications
  • receiving tasks dispatched by the manager
  • sending events and callbacks over HTTP or gRPC
  • exposing protected status and probe endpoints

How web and agent differ

CommandAudiencePurpose
rauto webSingle-node operatorLocal UI, self-managed execution, and resource management
rauto agentrauto-managerA centrally managed execution node

If you only want to manage templates, run commands, and inspect replays on your own machine, rauto web is enough.

If you want multiple execution nodes under one control plane, use rauto agent.

Agent config file

You can also store agent defaults in ~/.rauto/agent.toml:

[manager]
url = "http://manager:50051"
token = "my-secret-token"
report_mode = "grpc"

[agent]
name = "agent-beijing-01"
heartbeat_interval = 30
probe_report_interval = 300

This reduces repeated command-line arguments at startup.

Connecting to rauto-manager

If the manager uses HTTP reporting:

rauto agent \
  --bind 0.0.0.0 \
  --port 8123 \
  --manager-url http://<manager-host>:3000 \
  --report-mode http \
  --agent-name edge-sh-01 \
  --agent-token <same-agent-api-key>

If the manager uses gRPC:

rauto agent \
  --bind 0.0.0.0 \
  --port 8123 \
  --manager-url http://<manager-host>:50051 \
  --report-mode grpc \
  --agent-name edge-sh-01 \
  --agent-token <same-agent-api-key>

When to introduce the manager

When your requirements start to include the following, it is usually time to move from rauto web to rauto-manager + rauto agent:

  • centralized management of multiple execution nodes
  • shared inventory and centralized history
  • centralized task dispatch
  • real-time multi-agent status and task timelines

For more background, continue with rauto-manager Overview.