Simple Interface
Built for developers, Pig's SDK plugs into your agent, wherever you need.
Machines You Control
Automations on Pig are self-hosted by default. Securely subscribe your own machines as workers in the Pig system.
Packed With Tools
Agents use natural computer tools like click(), type(), and screenshot() to control Windows apps.
Humans In The Loop
Seamlessly transfer control to human operators when critical operations need oversight.
1from pig import Client23# Initialize client and select machine4client = Client()5machine = client.machines.get("M-6HNGAXR-NT0B3VA-P33Q0R2")67# Run your Agent loop8with machine.connect() as conn:9 while True:10 # View the desktop11 screen = conn.screenshot()1213 # Control using the same API as humans14 conn.left_click(x=330, y=750)15 conn.type("excel")1617 # Transfer control to human operator18 conn.yield_control()19 conn.await_control()