@ollamawg/cli 0.0.0 → 0.2.0
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 +5 -0
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -51,6 +51,8 @@ ollamawg connect --config laptop.yaml
|
|
|
51
51
|
curl http://127.0.0.1:11434/api/tags # any Ollama client works unchanged
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
+
On a phone, run `ollamawg add-peer --name phone --qr`, scan the QR code in the official WireGuard app, and open `http://10.77.0.1:11434/chat` for a built-in chat interface.
|
|
55
|
+
|
|
54
56
|
See [Getting started](docs/getting-started.md) for the full walkthrough.
|
|
55
57
|
|
|
56
58
|
## Features
|
|
@@ -70,6 +72,8 @@ See [Getting started](docs/getting-started.md) for the full walkthrough.
|
|
|
70
72
|
- Traffic graphs per device for 1, 6 or 24 hours, plus token usage per model.
|
|
71
73
|
- Prometheus `/metrics`.
|
|
72
74
|
- **Dashboard:** add devices and download their config, edit policy, block and unblock, and manage firewall rules. It is one embedded page with no CDN, so it works offline.
|
|
75
|
+
- **Phones and chat.** Phones connect with the official WireGuard app by scanning a QR code. A built-in, mobile-friendly chat page at `/chat`, styled like ChatGPT, streams replies from your models. Its only login is the device's WireGuard key.
|
|
76
|
+
- **Two-factor login.** Optionally protect the dashboard with an authenticator app (Google Authenticator, Authy, 1Password, ...). Turn it on from the dashboard or with `ollamawg 2fa enable`.
|
|
73
77
|
- **Hot reload.** `add-peer`, `block` or a hand edit of `server.yaml` applies within 2 seconds without dropping sessions.
|
|
74
78
|
- **Safety checks.** The server warns if Ollama is also reachable outside the tunnel or if the config file is world-readable. Configs are written with mode 0600.
|
|
75
79
|
- **Go library.** You can embed the server, or call Ollama from Go code through the tunnel without opening a local port.
|
|
@@ -96,6 +100,7 @@ Server Client
|
|
|
96
100
|
block block --device / --ip keygen print a key pair
|
|
97
101
|
unblock undo a block version
|
|
98
102
|
serve run tunnel, proxy, dashboard
|
|
103
|
+
2fa two-factor dashboard login
|
|
99
104
|
```
|
|
100
105
|
|
|
101
106
|
## Building from source
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ollamawg/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Reach your Ollama server from anywhere through a user-space WireGuard tunnel, with per-device access control and a dashboard.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ollama",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"node": ">=16"
|
|
29
29
|
},
|
|
30
30
|
"optionalDependencies": {
|
|
31
|
-
"@ollamawg/darwin-arm64": "0.
|
|
32
|
-
"@ollamawg/darwin-x64": "0.
|
|
33
|
-
"@ollamawg/freebsd-x64": "0.
|
|
34
|
-
"@ollamawg/linux-arm64": "0.
|
|
35
|
-
"@ollamawg/linux-x64": "0.
|
|
36
|
-
"@ollamawg/win32-x64": "0.
|
|
31
|
+
"@ollamawg/darwin-arm64": "0.2.0",
|
|
32
|
+
"@ollamawg/darwin-x64": "0.2.0",
|
|
33
|
+
"@ollamawg/freebsd-x64": "0.2.0",
|
|
34
|
+
"@ollamawg/linux-arm64": "0.2.0",
|
|
35
|
+
"@ollamawg/linux-x64": "0.2.0",
|
|
36
|
+
"@ollamawg/win32-x64": "0.2.0"
|
|
37
37
|
}
|
|
38
38
|
}
|