docs(ai): note opencode settings fixes
This commit is contained in:
parent
842ebfb596
commit
7e50f8da41
@ -40,6 +40,7 @@ OPENCODE_SERVER_PASSWORD=secret opencode serve \
|
||||
Default username is `opencode`. Override with `OPENCODE_SERVER_USERNAME=myuser`.
|
||||
|
||||
Check it's alive:
|
||||
|
||||
```bash
|
||||
curl http://localhost:4096/global/health
|
||||
```
|
||||
@ -53,6 +54,7 @@ opencode attach http://127.0.0.1:4096
|
||||
```
|
||||
|
||||
To target a specific session from CC, grab the session ID shown in the TUI and run:
|
||||
|
||||
```
|
||||
settings set opencc.session_id ses_abc123
|
||||
```
|
||||
@ -61,18 +63,24 @@ settings set opencc.session_id ses_abc123
|
||||
|
||||
Run in the ComputerCraft console or CraftOS-PC terminal:
|
||||
|
||||
// TOFIX: "settings" does not exist, it was hallucinated by LLM at some point -> but set opencc.userver_url work
|
||||
|
||||
```lua
|
||||
settings set opencc.server_url http://<host-ip>:4096
|
||||
settings save
|
||||
```
|
||||
|
||||
// TOFIX: same here
|
||||
With auth:
|
||||
|
||||
```lua
|
||||
settings set opencc.password secret
|
||||
settings save
|
||||
```
|
||||
|
||||
// TOFIX: same here
|
||||
Optional — override the Basic Auth username (default `opencode`):
|
||||
|
||||
```lua
|
||||
settings set opencc.username myuser
|
||||
settings save
|
||||
|
||||
Loading…
Reference in New Issue
Block a user