Skills & Integrations
Agent & CUA
Agent class, CUA workflows, and agent.execute.
Agent Class
Access the agent API through opensteer.agent:
const opensteer = new Opensteer({
name: 'agent-demo',
model: 'openai/gpt-5.1',
})
await opensteer.launch()
const result = await opensteer.agent.execute('Find the pricing page and list all plan names')
console.log(result.message)
await opensteer.close()
CUA Providers
Supported providers: openai, anthropic, google.
Model format:
// String format
model: 'openai/gpt-5.1'
model: 'anthropic/claude-sonnet-4-20250514'
// Object format
model: {
modelName: 'gpt-5.1',
apiKey: 'sk-...',
baseUrl: 'https://api.openai.com/v1',
}
execute
agent.execute(instruction: string | ExecuteOptions): Promise<AgentResult>
// Simple
const result = await opensteer.agent.execute('Click the login button')
// With options
const result = await opensteer.agent.execute({
instruction: 'Extract all product prices',
maxSteps: 10,
highlightCursor: true,
})
| Option | Type | Default | Description |
|---|---|---|---|
instruction | string | — | Task instruction |
maxSteps | number | 30 | Maximum agent steps |
highlightCursor | boolean | false | Visual cursor highlight |
AgentResult
| Field | Type | Description |
|---|---|---|
success | boolean | Whether the task completed |
completed | boolean | Whether all steps executed |
message | string | Agent response message |
actions | Action[] | Actions taken |
usage | object | Token usage stats |
provider | string | Provider used |
model | string | Model used |
Cloud Sessions
CUA agent works in cloud mode after launch():
const opensteer = new Opensteer({ cloud: true, model: 'openai/gpt-5.1' })
await opensteer.launch()
console.log('Session:', opensteer.getCloudSessionUrl())
const result = await opensteer.agent.execute('Navigate to settings and enable dark mode')
await opensteer.close()
