bots-garden/razorbillpublic Fork
⑂ v1.0.0
Commits
⬇ Clone ▾
git clone https://git.rickub.com/bots-garden/razorbill.git
git clone ssh://git@rickub.com/bots-garden/razorbill.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP
change-the-server-configuration-from-the-tui.md · 37 lines · 2.2 KBmarkdown
Blame HistoryOpen raw

How to change the server's configuration from rzb tui

This guide shows how to edit the running server's configuration file from rzb tui, have it checked and reloaded, and how to change rzb tui's own preferences. It assumes the server was started with rzb serve --config <file>.

Edit the server's file

  1. Press F4. Under Server configuration, the file: line names the file.
  2. Press Ctrl-O. The file opens in your editor ($VISUAL, else $EDITOR, else vi).
  3. Change it, save, and quit the editor.
  4. Back in rzb tui, read the result under the section:
    • problems are listed with their line numbers, and the server keeps its configuration: press Ctrl-O to fix the file;
    • otherwise the server has reloaded it, and the line says how many models are declared, which loaded models were unloaded, and which server: keys only apply after a restart.
  5. If keys are listed as needing a restart, stop the server and start it again.

To pick the editor for one session: EDITOR=nano rzb tui --config server.yaml.

Reload a file edited elsewhere

Edit the file with any tool, then press Ctrl-R on the Settings screen. It is the same as curl -X POST http://127.0.0.1:7920/rzb/config/reload.

Change rzb tui's preferences

  1. On the Settings screen, move between the fields with Tab or the arrows, and type.
  2. Press Enter to save. A wrong field is named and nothing is saved; Esc undoes the changes.

The reasoning display, the chat sampling, the colours and the poll interval change at once; the server URL and the API key variable apply the next time rzb tui starts.

Variants

  • The file line says none: the server runs without --config. Stop it and start it again with a file; rzb tui cannot add one to a running server.
  • The server has an API key: start rzb tui with --api-key-env naming its variable, or set api_key_env in the preferences.

See also

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# How to change the server's configuration from rzb tui

This guide shows how to edit the running server's configuration file from `rzb tui`, have it checked and reloaded, and how to change `rzb tui`'s own preferences. It assumes the server was started with `rzb serve --config <file>`.

## Edit the server's file

1. Press `F4`. Under Server configuration, the `file:` line names the file.
2. Press `Ctrl-O`. The file opens in your editor (`$VISUAL`, else `$EDITOR`, else `vi`).
3. Change it, save, and quit the editor.
4. Back in `rzb tui`, read the result under the section:
   - problems are listed with their line numbers, and the server keeps its configuration: press `Ctrl-O` to fix the file;
   - otherwise the server has reloaded it, and the line says how many models are declared, which loaded models were unloaded, and which `server:` keys only apply after a restart.
5. If keys are listed as needing a restart, stop the server and start it again.

To pick the editor for one session: `EDITOR=nano rzb tui --config server.yaml`.

## Reload a file edited elsewhere

Edit the file with any tool, then press `Ctrl-R` on the Settings screen. It is the same as `curl -X POST http://127.0.0.1:7920/rzb/config/reload`.

## Change rzb tui's preferences

1. On the Settings screen, move between the fields with `Tab` or the arrows, and type.
2. Press `Enter` to save. A wrong field is named and nothing is saved; `Esc` undoes the changes.

The reasoning display, the chat sampling, the colours and the poll interval change at once; the server URL and the API key variable apply the next time `rzb tui` starts.

## Variants

- **The file line says none**: the server runs without `--config`. Stop it and start it again with a file; `rzb tui` cannot add one to a running server.
- **The server has an API key**: start `rzb tui` with `--api-key-env` naming its variable, or set `api_key_env` in the preferences.

## See also

- What a reload changes, key by key: [configuration reference](../reference/configuration.md#reloading).
- The preferences file: [rzb tui reference](../reference/tui.md#preferences-file-tuiyaml).
- The same from the shell: [watch and steer a running server](watch-and-steer-a-running-server.md#apply-a-configuration-change-without-restarting).