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.1.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.1-py3-none-any.whl (5.0 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sshai-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 382a0752c6d81ede5307886cbf463f25154f709ead70d9b79107ed6af6623d7a
MD5 f45d68afccd16256e5c93ef7ca836824
BLAKE2b-256 774e45c4944e8afb5249c96c469204bcf82982c553192f6eb9b8d56a6acdc355

See more details on using hashes here.

Provenance

The following attestation bundles were made for sshai-0.0.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: sshai-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e2eea841f7268fdae5fdf5e79b3d9b8a31cd516f5950bb647d5cbb3e15795a75
MD5 449f0651b5989f2ee2817af150f9938b
BLAKE2b-256 7d1d533c2ccb0019d2791efbfb4a0f0ced5a93c8b7dee709048e314debe4bda6

See more details on using hashes here.

Provenance

The following attestation bundles were made for sshai-0.0.1-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