import osfrom skylight_sdk import Skylightwith Skylight( apikey=os.getenv("SKYLIGHT_APIKEY", ""),) as skylight: res = skylight.agent.run(instance_id="<id>", query="Search for something on the VM") # Handle response print(res)
Copy
{ "message": "<string>", "status": "<string>"}
Agent
Run Agent
Run a loop with Anthropic’s computer use agent to perform tasks on the VM.
Requires API key authentication.
POST
/
agent
/
run
/
{instance_id}
Python (SDK)
Copy
import osfrom skylight_sdk import Skylightwith Skylight( apikey=os.getenv("SKYLIGHT_APIKEY", ""),) as skylight: res = skylight.agent.run(instance_id="<id>", query="Search for something on the VM") # Handle response print(res)