Install
Usage
captures defaults to @external:
every program Mirage does not have itself. Name @python to run
Python on the machine too.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Run captured programs on any machine reachable over SSH.
pip install 'mirage-ai[ssh]'
captures defaults to @external:
every program Mirage does not have itself. Name @python to run
Python on the machine too.
from mirage import RAMVFS, MountMode, Workspace
ws = Workspace(
{"/data": RAMVFS()},
mode=MountMode.EXEC,
machines={
"box": {
"provider": "ssh",
"host": "mybox",
"username": "deploy",
"identity_file": "~/.ssh/id_ed25519",
"captures": ["@python", "@external"],
}
},
)
await ws.shell("python3 -c 'print(1 + 1)'")