AskUIDocs
AgentOSDeployment

AgentOS in a pipeline

Connect a pipeline to AgentOS on a separate test machine, and store the credentials of a pipeline.

The workflow files for GitHub Actions, GitLab CI and Azure DevOps are on CI workflow files. This page covers what is specific to AgentOS in a pipeline.

AgentOS on Windows CI runners

Desktop automation on Windows requires AgentOS running as a service. Install it via the AskUI Desktop installer on your runner before running the pipeline. See CI/CD integration for setup details.

Connecting to a remote AgentOS

If your CI runner is not the machine being automated (e.g. a Windows runner automating a separate test VM), the device profile points at the remote AgentOS. Leave the host to the pipeline with a variable in the profile's host field:

devices.json (excerpt)
{
  "id": "win-vm",
  "name": "Windows test VM",
  "type": "agent-os",
  "host": "${AGENTOS_HOST}",
  "port": 26000
}
export AGENTOS_HOST=<vm-ip>
askui run --device win-vm

A remote host is attached to; the CLI starts a local AgentOS only for a profile on localhost. An unset AGENTOS_HOST stops the run with exit code 3. See Remote Windows VM for setting up the VM.

Storing credentials

Never hardcode ASKUI_WORKSPACE_ID or ASKUI_TOKEN in your pipeline files. Use your CI platform's secret store:

PlatformWhere to add secrets
GitHub ActionsRepository Settings → Secrets and variables → Actions
GitLab CISettings → CI/CD → Variables
Azure DevOpsPipeline → Edit → Variables

The project's secrets go into the same store: in a headless run, a secret named QA_PASSWORD resolves from the variable QA_PASSWORD.

Create a dedicated access token per pipeline so you can rotate or revoke individual pipelines without affecting others. See Workspaces.

On this page