Skip to main content
onr-admin is a powerful companion binary shipped alongside Open Next Router. It provides an API for web-based GUI management, a Terminal UI (TUI) for debugging, and a suite of CLI tools for cryptography, validation, and token generation.

Basic Usage

You must build the onr-admin binary first if you are compiling from source:
To see available commands:

1. Web Dashboard (Admin Panel)

Start the local web editor for managing provider DSL configurations visually.
Then open http://127.0.0.1:3310 in your browser.
Features of the Web Editor:
  • Validates your DSL syntax before saving.
  • Automatically loads and formats traffic dumps if traffic_dump.enabled=true in your onr.yaml.
  • Supports quick test curls right from the browser.

2. Terminal UI (TUI) log viewer

Open the interactive TUI to debug incoming traffic and outgoing requests.
The TUI reads traffic dump logs from the traffic_dump.dir defined in your config (defaults to ./dumps). Key Bindings:
  • ↑ / ↓: Navigate traffic requests
  • Enter: View detailed request/response dump
  • /: Filter logs by provider, model, path, status, or request ID
  • r: Reload
  • q: Quit

3. Cryptography Tools

Manage encrypted downstream or upstream keys securely.

4. Token Generation

Generate a specialized token key format (onr:v1?...) that clients can use in the Authorization: Bearer ... header.

5. Configuration Validation

Validate all YAML and provider DSL configurations to ensure there are no syntax errors.

6. Upstream Balance Checking

Query upstream balances using your configured credentials.

7. Automated Updates

Update your ONR binaries or provider configurations directly from GitHub Release assets.