docs(ai): update opencode server auth guide

This commit is contained in:
Guillaume ARM 2026-06-09 00:14:01 +02:00
parent 66124153af
commit ba22bed56a

View File

@ -72,6 +72,12 @@ settings set opencc.password secret
settings save
```
Optional — override the Basic Auth username (default `opencode`):
```lua
settings set opencc.username myuser
settings save
```
- **CraftOS-PC (localhost):** `http://127.0.0.1:4096`
- **In-game ATM10:** use your LAN IP (e.g. `192.168.x.x`) — add it to `http.rules` in `config/computercraft-server.toml`
@ -101,7 +107,7 @@ Set settings inside the harness before running, or inject them via the test API.
|---|---|---|
| `missing opencc.server_url` | Setting not set | `settings set opencc.server_url http://...` |
| `serveur injoignable` | Server not running or wrong URL | Start `opencode serve`, check URL/port |
| `HTTP 401` | Wrong password | Check `opencc.password` matches `OPENCODE_SERVER_PASSWORD` |
| `erreur message: HTTP 401` | Wrong password | Check `opencc.password` matches `OPENCODE_SERVER_PASSWORD` |
| `session introuvable; lance: ai-helloworld --new` | Session was deleted or server restarted | Run `ai-helloworld --new` |
| `HTTP 504` | AI took too long | Retry; consider a faster model |
| `erreur message: HTTP 504` | AI took too long | Retry; consider a faster model |
| `reponse vide` | Reply had no text parts | Check opencode logs |