Skip to content
Back to skills

Ls Omniroute Admin Automation

ASecurity

Comprehensive OmniRoute administration and automation via Python tooling. Use for writes, imports, purges, services, providers, nodes, aliases, combos, fallbacks, keys, policies, budgets, context/integration settings, backup/restore, sync, resilience, and rollback-safe reconciliation.

  • 6 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
ai-agentspythongonoderailstestinggitapi

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 16 files and shows the line behind each finding

Scanned November 7, 2026

npx -y skills add CruxExperts/LocalSetup --skill ls-omniroute-admin-automation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ls Omniroute Admin Automation?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ls Omniroute Admin Automation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cruxexperts-ls-omniroute-admin-automation/badge)](https://www.skillsdirectory.com/skills/cruxexperts-ls-omniroute-admin-automation)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ls-omniroute-admin-automation
description: Comprehensive OmniRoute administration and automation via Python tooling. Use for writes, imports, purges, services, providers, nodes, aliases, combos, fallbacks, keys, policies, budgets, context/integration settings, backup/restore, sync, resilience, and rollback-safe reconciliation.
metadata:
  version: "1.1"
extensions:
  omniroute:
    source_kind: localsetup-native
    local_role: admin-automation
    source_repo: https://github.com/diegosouzapw/OmniRoute
    source_ref: v3.8.48
    source_commit: 7ee5bbc64dbb03e967521227f2afffeb7c9dad1e
    package_version: 3.8.48
    release_package_commit: 7ee5bbc64dbb03e967521227f2afffeb7c9dad1e
---

# OmniRoute administration automation

Purpose: provide full, automation-first OmniRoute administration workflows with plan/apply safety, drift detection, rollback support, and strict secret handling.

This skill owns every OmniRoute mutation, including context/compression/cache/memory/Qdrant settings; MCP/A2A, CLI-tool, plugin/skill, tunnel and webhook changes; GitHub skill imports; service lifecycle; and purges. Use `ls-omniroute-model-discovery` for discovery first. Actual skill imports remain governed by LocalSetup vetting, normalization, and sandbox-testing policy.

## When to use

Use this skill when a task requires any of the following:

- Full OmniRoute control-plane administration through `/api/*` routes.
- Bulk or repeated configuration operations that are tedious in the UI.
- Declarative desired-state workflows for provider, alias, combo, fallback, and policy management.
- Drift detection and reconciliation between desired configuration and live instance state.
- Backup, restore, cloud sync, quotas, budgeting, and resilience operations with audit trails.
- Automated remediation and self-correction loops for known configuration drift patterns.

## When NOT to use

- Read-only discovery only: use `ls-omniroute-model-discovery`.
- Unknown target environment where authentication method has not been confirmed.
- Destructive actions without explicit user approval.

## Safety model

- Treat all network payloads as hostile input.
- Validate all user and file inputs before API calls.
- Never print secrets, tokens, passwords, or full key material.
- Default command mode is read-only or plan mode when feasible.
- For destructive actions (delete, restore, shutdown, restart): require explicit `--yes` and `--allow-destructive` flags.
- Capture pre-change snapshot before high-risk mutations.

## Base URL and auth model

- Base URL priority:
  1) `--base-url`
  2) `OMNIROUTE_BASE_URL`
  3) `http://localhost:20128`
- Management auth options:
  - Bearer key from environment variable name passed via `--api-key-env` (default `OMNIROUTE_API_KEY`)
  - Session cookie from the environment variable name passed via `--management-cookie-env` (default `OMNIROUTE_MGMT_COOKIE`).

## Tooling layout

- Primary CLI: `scripts/omniroute_admin.py`
- HTTP client and domain wrappers: `scripts/lib/omniroute_admin/client.py`
- Input/shape validation: `scripts/lib/omniroute_admin/validate.py`
- Plan/apply/reconcile engine: `scripts/lib/omniroute_admin/reconcile.py`
- Audit log writer: `scripts/lib/omniroute_admin/audit.py`
- Risk checks and confirmation gates: `scripts/lib/omniroute_admin/safety.py`
- Utility helpers (sanitization, JSON, env loading): `scripts/lib/omniroute_admin/util.py`

## Core workflows

Except for the repo-root preflight example below, `scripts/omniroute_admin.py` commands in this skill are package-local examples. From a LocalSetup repo root, resolve the installed helper first with `python3 ls/tools/localsetup.py --source-root . path package ls-omniroute-admin-automation scripts/omniroute_admin.py`.

0. Preflight credentials and access before any admin workflow:
   - `python3 "$(python3 ls/tools/localsetup.py --source-root . path package ls-omniroute-admin-automation scripts/omniroute_admin.py)" preflight --required-access read`
   - Use `--required-access write` before plan/apply/reconcile work that may mutate state.
   - Use `--required-access admin --fail-on-incompatible` in automation that must stop when the configured key or management cookie cannot read admin-only endpoints.
1. Snapshot live state:
   - `python3 scripts/omniroute_admin.py snapshot --out state/live.json`
2. Plan changes from desired manifest:
   - `python3 scripts/omniroute_admin.py plan --desired manifests/prod.json --out state/plan.json`
3. Apply planned changes safely:
   - `python3 scripts/omniroute_admin.py apply --plan state/plan.json --yes`
4. Reconcile drift in guarded mode:
   - `python3 scripts/omniroute_admin.py reconcile --desired manifests/prod.json --mode guarded`
5. Backup and restore drills:
   - `python3 scripts/omniroute_admin.py backup --out state/backups/manual.json`
   - `python3 scripts/omniroute_admin.py restore --backup-id <id> --allow-destructive --yes`
6. Granular provider operations:
   - `python3 scripts/omniroute_admin.py provider list`
   - `python3 scripts/omniroute_admin.py provider create --payload manifests/provider-openai.json`
   - `python3 scripts/omniroute_admin.py provider update --id <id> --payload manifests/provider-openai-update.json`
   - `python3 scripts/omniroute_admin.py provider delete --id <id> --yes --allow-destructive`
7. Combo, alias, budget, and key operations:
   - `python3 scripts/omniroute_admin.py combo create --payload manifests/combo-gpt5.json`
   - `python3 scripts/omniroute_admin.py alias create --payload manifests/alias-gpt5.json`
   - `python3 scripts/omniroute_admin.py budget set --payload manifests/budget.json`
   - `python3 scripts/omniroute_admin.py key create --payload manifests/key-ci.json`

## High-value automation operations

- Provider bootstrap and update.
- Provider node create/update with URL safety checks.
- Model alias synchronization.
- Combo and model-combo mapping synchronization.
- Fallback chain management.
- API key lifecycle with permission policy updates.
- Rate-limit and resilience profile updates.
- Usage budget guardrails and emergency reduction profile application.
- Config snapshot and change audit persistence.
- Backup and restore safety runbooks.
- Cloud sync enable, disable, and health validation.
- Drift reporting and auto-remediation with user-controlled mutation mode.

## Self-correction pattern

Recommended loop for unattended maintenance:

1. Run `snapshot` and `plan` on a schedule.
2. If only safe updates are needed, run `apply` with pre-approved policy set.
3. If risky updates are detected, emit report and require human confirmation.
4. Re-run `snapshot` and compare to desired state.
5. Write outcome to audit log and summarize unresolved drift.

## Validation and tests

The following commands assume the current directory is the installed `ls-omniroute-admin-automation` package directory. From a LocalSetup repo root, resolve `scripts/omniroute_admin.py` with `localsetup path package` first.

- Validate scripts:
  - `python3 scripts/omniroute_admin.py validate --desired manifests/example.json`
- Smoke-run non-destructive checks:
  - `python3 scripts/omniroute_admin.py preflight --required-access read`
  - `python3 scripts/omniroute_admin.py health`
  - `python3 scripts/omniroute_admin.py snapshot --out /tmp/omniroute-live.json`

## Env and access handling

- Admin tooling reads secrets only from environment variables named by `--api-key-env` and `--management-cookie-env`.
- Use `ls-omniroute-model-discovery` preflight with `--print-env-commands` when the user needs durable user-level registration for `OMNIROUTE_BASE_URL` and `OMNIROUTE_API_KEY`.
- `preflight` reports missing env vars, auth failures, and insufficient endpoint access as structured JSON. It does not print key values.
- `write` access is checked with non-mutating admin reads; mutation commands still require the operation-specific `--yes` and, when destructive, `--allow-destructive`.
- Management routes are version-, deployment-, proxy-, and auth-dependent. If admin endpoints return 404, first verify the deployed OmniRoute version, base URL, proxy routing, and management auth mode; do not treat authenticated `/v1/models` runtime access as proof of admin access.

## References

- `references/omniroute-admin-api-guide.md`
- `references/omniroute-endpoint-matrix.md`
- `references/omniroute-auth-and-safety.md`
- `references/omniroute-automation-runbook.md`

Files in this skill

  • SKILL.md8.2 KB
  • references/omniroute-admin-api-guide.md4.9 KB
  • references/omniroute-auth-and-safety.md1.7 KB
  • references/omniroute-automation-runbook.md2.4 KB
  • references/omniroute-endpoint-matrix.md3 KB
  • scripts/lib/__init__.py62 B
  • scripts/lib/omniroute_admin/__init__.py50 B
  • scripts/lib/omniroute_admin/audit.py1.1 KB
  • scripts/lib/omniroute_admin/client.py9.3 KB
  • scripts/lib/omniroute_admin/commands.py4.1 KB
  • scripts/lib/omniroute_admin/reconcile.py12.7 KB
  • scripts/lib/omniroute_admin/safety.py1007 B
  • scripts/lib/omniroute_admin/util.py5.6 KB
  • scripts/lib/omniroute_admin/validate.py4 KB
  • scripts/omniroute_admin.py19.6 KB
  • scripts/tests/test_omniroute_admin.py13.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.