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

Uploaded Python 3

File details

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

File metadata

  • Download URL: sshai-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 c14e877461a65f350e2f735bb8e4c58e1bb65cccf70edfb6511fffd5c5faf6e3
MD5 7aa604cca5640c67b810d0bb130a3e8a
BLAKE2b-256 7fa437a674d2870c1d99a78cd3d48131f25b3cfc7d0673dddb59afc7e7faaec3

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: sshai-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6a22d192de280c646dd5252e47d2f22025b18886ba21f16257b9104cbd889460
MD5 295c77f3a5097109cf505d83b381e662
BLAKE2b-256 9aa245e16f9dd0151a90baa8877f749105578757aa48c7d21eeb860e3cf5d699

See more details on using hashes here.

Provenance

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