opencode-remote-login 0.1.4 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/package.json +1 -1
- package/src/index.ts +0 -1
package/README.md
CHANGED
|
@@ -5,16 +5,14 @@ Dispatch opencode sessions to remote hosts via SSH. Migrate context, execute tas
|
|
|
5
5
|
## Install
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
opencode plug opencode-remote-login
|
|
8
|
+
opencode plug -g opencode-remote-login
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Use `-g` to install globally into `~/.config/opencode/opencode.jsonc`. Without `-g`, the plugin is installed into the current project's `.opencode/` directory instead.
|
|
12
12
|
|
|
13
13
|
## Configure hosts
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
**Option 1 — `~/.config/opencode/hosts.json`**
|
|
15
|
+
Create `~/.config/opencode/hosts.json`:
|
|
18
16
|
|
|
19
17
|
```json
|
|
20
18
|
{
|
|
@@ -28,7 +26,7 @@ Hosts are defined via a `hosts` entry in one of these locations (checked in orde
|
|
|
28
26
|
}
|
|
29
27
|
```
|
|
30
28
|
|
|
31
|
-
|
|
29
|
+
Alternatively, configure inline in `opencode.jsonc`:
|
|
32
30
|
|
|
33
31
|
```jsonc
|
|
34
32
|
{
|
|
@@ -42,6 +40,8 @@ Hosts are defined via a `hosts` entry in one of these locations (checked in orde
|
|
|
42
40
|
}
|
|
43
41
|
```
|
|
44
42
|
|
|
43
|
+
Hosts are searched in order: `~/.config/opencode/hosts.json` first, then the platform config directory.
|
|
44
|
+
|
|
45
45
|
### Host fields
|
|
46
46
|
|
|
47
47
|
| Field | Required | Description |
|
|
@@ -50,7 +50,7 @@ Hosts are defined via a `hosts` entry in one of these locations (checked in orde
|
|
|
50
50
|
| `agent` | No | Override agent on the remote |
|
|
51
51
|
| `model` | No | Override model in `provider/id` format |
|
|
52
52
|
|
|
53
|
-
Only host **names** are shown to the LLM
|
|
53
|
+
Only host **names** are shown to the LLM. SSH addresses stay on disk.
|
|
54
54
|
|
|
55
55
|
### SSH setup
|
|
56
56
|
|
package/package.json
CHANGED
package/src/index.ts
CHANGED