clawker-socket-server

command
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

socket-forwarder is a multiplexing socket forwarder that runs inside clawker containers. It communicates with the host via stdin/stdout using a simple length-prefixed binary protocol, similar to VS Code's muxrpc approach.

This allows socket forwarding without requiring network access from the container to the host - all communication happens over the docker exec channel.

Build: go build -o socket-forwarder main.go Usage: Launched via `docker exec -i <container> socket-forwarder`

Environment:

  • CLAWKER_REMOTE_SOCKETS: JSON array of socket configs, e.g.: [{"path": "/home/claude/.gnupg/S.gpg-agent", "type": "gpg-agent"}]

Protocol:

Message format: [4-byte length][1-byte type][4-byte stream][payload]
Types: DATA=1, OPEN=2, CLOSE=3, PUBKEY=4, READY=5, ERROR=6

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL