// npm install page-agent
import { PageAgent } from 'page-agent'
const agent = new PageAgent({ model: 'qwen3.5-plus', baseURL: 'https://dashscope.aliyuncs.com/compatible-mode/v1', apiKey: 'YOUR_API_KEY', language: 'en-US' })
// Execute natural language instructions programmatically
await agent.execute('Click submit button, then fill username as John');
// Or:
// Show panel for user to input instructions
agent.panel.show()
Last modified 03 November 2026