Overview
At its core, Skylight hosts stable, cloud-based Windows desktop virtual machines, serving as the infrastructure for deploying agents at scale. Each Skylight instance is a fully functional Windows desktop, preloaded with essential software and ready for agent interaction. These instances can be controlled programmatically or used with built-in or custom agents to perform automated tasks. By default, instances come pre-configured with Microsoft Word, Excel, PowerPoint, VS Code, Firefox, and Paint. You can also install additional apps. This guide walks you through managing your instances — starting, pausing, and terminating them as needed.Start a Windows Instance
start endpoint returns a JSON with these properties:
When starting an instance, you can specify a timeout period (in minutes) after which the instance will automatically terminate. The default timeout is 60 minutes:
Instance State Management
To optimize costs, it is recommended to manage the state of your instances.Check instance state
Instances can be running, pending, hibernated, or terminated:- Running: you can interact with the instance and operate it with the AI agent
- Pending: the instance is starting up
- Hibernated: this preserves the state without incurring full runtime costs. Hibernated instances maintain knowledge, files, and the desktop state.
- Terminated: the instance is shut down and cannot be recovered. All information (including knowledge, files, and desktop state) is wiped, so make sure to save any important data before terminating.
state endpoint returns a JSON with these properties:
Pause an instance
Hibernate your instance to save its state:pause endpoint returns a JSON with these properties:
Note: Paused instances are charged one tenth of the price of a running instance per minute.
Resume an instance
Resume a previously paused instance:resume endpoint returns a JSON with these properties:
Terminate an instance
Completely shut down and remove an instance:terminate endpoint returns a JSON with these properties:
Warning: Termination is irreversible and all unsaved data (including knowledge, files, and desktop state) will be lost.
List all instances
Get a list of all your Windows instances:instances endpoint returns a list of instances with these properties:
Knowledge
Instances gain knowledge from agent runs over time. Knowledge gives agents context of what previous agents have done to avoid task repetition or ‘forgetting’ of information. When an agent completes a task, it produces a summary of its actions and the final result. Information in the summary is automatically stored in the knowledge of the specific instance to provide context to the agent for future tasks. You can also edit knowledge yourself to give the agent any other context it may need to complete its task. Currently, you can only edit knowledge through the Playground UI.Best Practices
- Use timeouts to prevent unintended billing - set an appropriate timeout when starting an instance
- Pause VMs when not in use to reduce costs while preserving state
- Check VM state before performing operations to ensure it’s in the expected state
- Save important data before terminating - download your files and save any other important information before terminating instances
Instance Resources
By default, Windows instances are provisioned with standard CPU and RAM configurations. If you need additional resources such as:- More RAM
- Additional CPU cores
- GPU acceleration