Skip to main content

Ghost in Shell via SSH

Project description

Ghost in Shell via SSH

# From within TMUX
export SSH_CALLER_PATH=$(mktemp -d); export AGI_SOCK="${SSH_CALLER_PATH}/agi.sock"; export INPUT_SOCK="${SSH_CALLER_PATH}/input.sock"; export OUTPUT_SOCK="${SSH_CALLER_PATH}/text-output.sock"; export NDJSON_OUTPUT_SOCK="${SSH_CALLER_PATH}/ndjson-output.sock"; export MCP_REVERSE_PROXY_SOCK="${SSH_CALLER_PATH}/mcp-reverse-proxy.sock"; ssh -NnT -p 2222 -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o PasswordAuthentication=no -R /tmux.sock:$(echo $TMUX | sed -e 's/,.*//g') -R "${OUTPUT_SOCK}:${OUTPUT_SOCK}" -R "${NDJSON_OUTPUT_SOCK}:${NDJSON_OUTPUT_SOCK}" -R "${MCP_REVERSE_PROXY_SOCK}:${MCP_REVERSE_PROXY_SOCK}" -R "${INPUT_SOCK}:${INPUT_SOCK}" -L "${AGI_SOCK}:${AGI_SOCK}" user@localhost

asciicast

Hosting

# Temporary branch installs present until pending PRs close
pip install sshai \
    "mcp-proxy@git+https://github.com/johnandersen777/mcp-proxy@mcp_enable_over_unix_socket" \
    "mcp@git+https://github.com/johnandersen777/python-sdk@mcp_enable_over_unix_socket" \
    "openai-agents@git+https://github.com/johnandersen777/openai-agents-python@additional_properties_dict_keys_mcp_enable_over_unix_socket"

export OPENAI_API_KEY=AAA
sshai --uds /tmp/agi.sock

# Now connect to port 2222

TODOs

  • We need to re-try TMUX connect when it doesn't work on ssh client connect

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sshai-0.0.3.tar.gz (5.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sshai-0.0.3-py3-none-any.whl (5.0 MB view details)

Uploaded Python 3

File details

Details for the file sshai-0.0.3.tar.gz.

File metadata

  • Download URL: sshai-0.0.3.tar.gz
  • Upload date:
  • Size: 5.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sshai-0.0.3.tar.gz
Algorithm Hash digest
SHA256 b297cadaac5ba2808053dde172bec2e200eefc22125816e58288f7242f499526
MD5 1c6bbc590e137c2ff8c3071d16085f9f
BLAKE2b-256 4c7f05fab61c48555e7ef26db98b40d3fafbf3f39ecbe52c5ff2df03b4ecb4b8

See more details on using hashes here.

Provenance

The following attestation bundles were made for sshai-0.0.3.tar.gz:

Publisher: release.yml on publicdomainrelay/sshai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sshai-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: sshai-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sshai-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b462bc7d737d851e8f3917c2e18860fa3a3e69f65feefd9d93f162bcf5adb935
MD5 8a137e8c4c8fd23a133b946a348e34f0
BLAKE2b-256 31de8fc234ec66d62b22880c8f5c576ac31f108dbc07c7f0fb14be7505ae0e95

See more details on using hashes here.

Provenance

The following attestation bundles were made for sshai-0.0.3-py3-none-any.whl:

Publisher: release.yml on publicdomainrelay/sshai

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page