guac-bridge 1.0.0__py3-none-win_amd64.whl
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.
- guac_bridge/__init__.py +20 -0
- guac_bridge/__main__.py +2 -0
- guac_bridge-1.0.0.data/scripts/guac-bridge.exe +0 -0
- guac_bridge-1.0.0.data/scripts/guac-llm-client.exe +0 -0
- guac_bridge-1.0.0.data/scripts/guac-ssh-client.exe +0 -0
- guac_bridge-1.0.0.dist-info/METADATA +97 -0
- guac_bridge-1.0.0.dist-info/RECORD +10 -0
- guac_bridge-1.0.0.dist-info/WHEEL +4 -0
- guac_bridge-1.0.0.dist-info/licenses/LICENSE +21 -0
- guac_bridge-1.0.0.dist-info/sboms/guac-bridge.cyclonedx.json +10871 -0
guac_bridge/__init__.py
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"""Optional Python launcher for the standalone Rust application."""
|
|
2
|
+
import shutil
|
|
3
|
+
import subprocess
|
|
4
|
+
import sys
|
|
5
|
+
from pathlib import Path
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def run(arguments=()):
|
|
9
|
+
"""Run the native CLI and return its exit code; no protocol work occurs in Python."""
|
|
10
|
+
name = 'guac-bridge.exe' if sys.platform == 'win32' else 'guac-bridge'
|
|
11
|
+
executable = Path(sys.executable).parent / name
|
|
12
|
+
if not executable.exists():
|
|
13
|
+
executable = shutil.which(name)
|
|
14
|
+
if not executable:
|
|
15
|
+
raise RuntimeError('The guac-bridge executable is missing from this installation')
|
|
16
|
+
return subprocess.call([str(executable), *arguments])
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def cli():
|
|
20
|
+
raise SystemExit(run(sys.argv[1:]))
|
guac_bridge/__main__.py
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: guac-bridge
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
License-File: LICENSE
|
|
5
|
+
Summary: SSH and OpenAI-compatible endpoints through Guacamole, powered by Rust
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Requires-Python: >=3.10
|
|
8
|
+
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
|
|
9
|
+
Project-URL: Issues, https://github.com/himbeles/guac-bridge/issues
|
|
10
|
+
Project-URL: Repository, https://github.com/himbeles/guac-bridge
|
|
11
|
+
|
|
12
|
+
# 🐸 Guac Bridge
|
|
13
|
+
|
|
14
|
+
SSH and OpenAI-compatible endpoints through Guacamole.
|
|
15
|
+
|
|
16
|
+
Expose a remote server’s SSH service or OpenAI-compatible API on your computer through its Guacamole web terminal. Use your usual SSH tools or LLM applications with the local port.
|
|
17
|
+
|
|
18
|
+
## First-time setup
|
|
19
|
+
|
|
20
|
+
On **Windows x86-64**, run the installer from [Releases](https://github.com/himbeles/guac-bridge/releases). Select **Add Guac Bridge to my user PATH** if desired. On **Linux x86-64**, extract the native release archive.
|
|
21
|
+
|
|
22
|
+
Alternatively, install on either client with uv:
|
|
23
|
+
|
|
24
|
+
```shell
|
|
25
|
+
uv tool install guac-bridge
|
|
26
|
+
uv tool update-shell
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
No installation is needed on the server. The client uploads its bundled Linux x86-64 helper through the Guacamole terminal and reuses it on later connections. The server needs a normal shell and core utilities, with an executable user cache directory; no Python, uv, root access or internet connection is required there.
|
|
30
|
+
|
|
31
|
+
Open the desired Guacamole terminal in your browser and copy its full URL. Use it as `CONNECTION_URL` below.
|
|
32
|
+
|
|
33
|
+
## SSH bridge
|
|
34
|
+
|
|
35
|
+
### Connect
|
|
36
|
+
|
|
37
|
+
```shell
|
|
38
|
+
guac-bridge ssh --url CONNECTION_URL
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
Enter your Guacamole username and password. In another terminal:
|
|
42
|
+
|
|
43
|
+
```shell
|
|
44
|
+
ssh -p 2222 SERVER_USERNAME@127.0.0.1
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Keep the bridge running while connected. Stop it with **Ctrl+C**.
|
|
48
|
+
|
|
49
|
+
### Use an SSH config
|
|
50
|
+
|
|
51
|
+
Add to `~/.ssh/config`, replacing the URL and both usernames:
|
|
52
|
+
|
|
53
|
+
```sshconfig
|
|
54
|
+
Host guac-server
|
|
55
|
+
HostName 127.0.0.1
|
|
56
|
+
Port 2222
|
|
57
|
+
User SERVER_USERNAME
|
|
58
|
+
|
|
59
|
+
Match originalhost guac-server exec "guac-bridge ssh --ensure-running --save-password --url CONNECTION_URL --username GUACAMOLE_USERNAME --port %p"
|
|
60
|
+
Match all
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Connect with `ssh guac-server`. The hook starts or reuses the background bridge. On first login it prompts in the calling console and saves your password to the system credential store after successful authentication.
|
|
64
|
+
|
|
65
|
+
The bridge stays running after SSH exits. Check or stop it with:
|
|
66
|
+
|
|
67
|
+
```shell
|
|
68
|
+
guac-bridge ssh --status --port 2222
|
|
69
|
+
guac-bridge ssh --stop --port 2222
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Use a dedicated local port for each destination. Windows users can add `--show-console` to see the background bridge in a separate console.
|
|
73
|
+
|
|
74
|
+
## LLM bridge
|
|
75
|
+
|
|
76
|
+
```shell
|
|
77
|
+
guac-bridge llm --url CONNECTION_URL
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Enter your Guacamole credentials. The default local port is **8000**, forwarding the server’s HTTP endpoint at **127.0.0.1:8000**, including streamed responses. Use `--target-port` for a different server port and `--port` for a different local port.
|
|
81
|
+
|
|
82
|
+
Keep the bridge running while using the application. Stop it with **Ctrl+C**.
|
|
83
|
+
|
|
84
|
+
The commands `guac-ssh-client` and `guac-llm-client` also work. Run any client with `--help` for credential storage, certificates, background operation and transport tuning.
|
|
85
|
+
|
|
86
|
+
## Contribution
|
|
87
|
+
|
|
88
|
+
The native CLI, helper and shared transport live in one [Cargo package](crates/guac-bridge). Python packaging uses maturin to install the same executables.
|
|
89
|
+
|
|
90
|
+
See [Building](docs/building.md), [Testing](docs/testing.md) and [Benchmarking](docs/benchmarking.md). Submit issues and pull requests on [GitHub](https://github.com/himbeles/guac-bridge).
|
|
91
|
+
|
|
92
|
+
## Architecture
|
|
93
|
+
|
|
94
|
+
Each bridge opens a Guacamole WebSocket connection, checks or uploads its bundled helper, and runs it inside the remote terminal. Both bridge types forward TCP streams with bounded flow control; HTTP headers, bodies and streaming responses pass through unchanged. The helper exits with the session; only its cached executable remains.
|
|
95
|
+
|
|
96
|
+
See [Connection details](docs/connections.md) for diagrams, loopback interfaces and process lifetimes.
|
|
97
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
guac_bridge/__init__.py,sha256=YI9p8c9mYomQSsdFKGYd4qZm64FAnJzjD5Fcj1WxIN8,695
|
|
2
|
+
guac_bridge/__main__.py,sha256=-BzXXBzsW-vFBmLR3g56UYnDRUOPNb0Px7VcuiuSZ-c,26
|
|
3
|
+
guac_bridge-1.0.0.data/scripts/guac-bridge.exe,sha256=mrj6tDHVC2L63V8E7fMXahsFcoJccuuCIIjCO80CfaI,6398464
|
|
4
|
+
guac_bridge-1.0.0.data/scripts/guac-llm-client.exe,sha256=f88tsQ_avgU5LoH5mbNO3K8ITYrdMDRQA1wn2n9wZL0,6331904
|
|
5
|
+
guac_bridge-1.0.0.data/scripts/guac-ssh-client.exe,sha256=d1GBJzMrL-YCaiaJ2dkqihXtWEGeu31B5tEzvHd6WvI,6331904
|
|
6
|
+
guac_bridge-1.0.0.dist-info/METADATA,sha256=xBWppVOFxHi4_-J4xJZ3zuFkcDL5u9iRKE2vWmUdGGM,4051
|
|
7
|
+
guac_bridge-1.0.0.dist-info/WHEEL,sha256=Uvw7WSmy7Kj2FBk8Va4L_dq4MDW8X5Ynby-pOX3ZNS0,94
|
|
8
|
+
guac_bridge-1.0.0.dist-info/licenses/LICENSE,sha256=vDHh7i2XTpy21rrkE63aQGun9G7vJTMEIhAfSdSfBtA,1090
|
|
9
|
+
guac_bridge-1.0.0.dist-info/sboms/guac-bridge.cyclonedx.json,sha256=i5oucO1BpP2eFmVQLbKYG7IR0Jyu19mRySRBxRP7cEY,352318
|
|
10
|
+
guac_bridge-1.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Luis Riegger 2026
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|