Say that the admin API wants its token, and that ctl runs with sudo

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ilker ManapandClaude Opus 5.5 committed 2026-10-04 10:02:56 +02:00
1 parent c0421bc7ee
commit 9d961c3fc8
2 files changed
+20 -4

No files matched your search

+10 -4
View File
@@ -184,7 +184,7 @@ forwarded headers right; both are attached to every release.
```
curl -s -o /dev/null -w '%{http_code}\n' http://127.0.0.1:8080/health # 200
llmgw ctl status
sudo llmgw ctl status
```
`ctl status` will report no nodes and no models, which is correct — nothing has
@@ -196,9 +196,15 @@ password, change it, and issue yourself a key from the profile page.
`/etc/llmgw/server.yaml` is yours from here on. Three things in it are worth
knowing before you edit it:
- `admin_listen` is on loopback on purpose. It serves pprof, which can dump the
process heap, and API keys sit in that heap in plaintext. To see the dashboard
from elsewhere use `/admin` on the client port — do not move this listener.
- `admin_listen` is on loopback on purpose, and the server refuses any other
address unless `admin_remote: true`. Its API under `/api` adds models and
upgrades nodes, so it also wants a token: the server writes one, 0600, to
`/var/lib/llmgw/admin-token` the first time it starts, and `llmgw ctl`
reads it from there — which is why `llmgw ctl` runs with sudo.
`LLMGW_ADMIN_TOKEN` gives it from elsewhere. pprof, whose heap holds the API
keys requests presented, is off unless `debug_pprof: true`, and then behind
the token too. To see the dashboard from elsewhere use `/admin` on the
client port — do not move this listener.
- `default_rpm`, `default_tpm` and `default_price` are what make limits and
budgets mean anything. Without a price every request costs zero and a budget
never binds; without the defaults, a project created without limits is