Webctl enables browser automation via CLI for AI agents and humans. Operations teams use it to automate web tasks, reducing manual effort. It integrates with supported AI agents like Claude, streamlining workflows.
git clone https://github.com/cosinusalpha/webctl.gitWebctl is a command-line browser automation tool designed for AI agents and operations teams. Unlike MCP-based alternatives, webctl gives you control over what enters your agent's context—filter snapshots, pipe output through Unix tools, and cache results to reduce token costs. It supports Claude, Cursor, Gemini, Copilot, and other AI agents through both native skills and prompt integration. Webctl uses landmark-aware filtering, structured data extraction, and smart network detection to complete web tasks efficiently. Benchmarks show webctl achieves higher quality scores than comparable tools while reducing token usage and operational costs.
[{"step":"Install webctl and its dependencies (e.g., `pip install webctl` and ensure Chrome/Chromium is installed).","tip":"Use `webctl --version` to verify installation. For headless mode, ensure your system supports GUI-less execution."},{"step":"Define the task in a structured format. Break complex workflows into smaller steps (e.g., login → navigate → export).","tip":"Test each step individually first. Use `webctl --debug` to log actions for troubleshooting."},{"step":"Execute the task via CLI or integrate with an AI agent. For CLI: `webctl --task \"[TASK]\" --output [FILE]`. For AI agents, use the prompt template above.","tip":"Adjust `BROWSER_MODE` (headful/headless) and `DELAY_MS` based on network speed and page load times."},{"step":"Verify the output (e.g., check file existence, data accuracy). Log errors for debugging.","tip":"Use `webctl --replay` to replay the session and inspect failures. For AI agents, ask the model to validate the output."},{"step":"Automate the task in a cron job or CI/CD pipeline if it’s recurring. Example: `0 2 * * * webctl --task \"[DAILY_EXPORT]\" --output /backups/users_$(date +%Y%m%d).csv`","tip":"Store credentials securely (e.g., environment variables) to avoid hardcoding sensitive data."}]
Automate the process of filling out web forms and submitting them.
Capture interactive snapshots of web pages for testing or documentation purposes.
Navigate complex web applications and extract specific data elements based on ARIA roles.
Integrate web browsing capabilities into AI agents for enhanced task automation.
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/cosinusalpha/webctlCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Use webctl to automate the following web task: [TASK_DESCRIPTION]. Execute the steps in [BROWSER_MODE] mode with [DELAY_MS] milliseconds between actions. Save the output to [OUTPUT_FILE_PATH]. Example: 'Use webctl to log in to the admin dashboard at https://admin.example.com, navigate to the Users section, and export the user list as a CSV to /tmp/users.csv in headless mode with 500ms delays between actions.'
``` ✅ Task completed successfully in 12.4 seconds. Output saved to /tmp/users.csv: ``` User ID,Name,Email,Status 1001,Alex Johnson,[email protected],Active 1002,Maria Garcia,[email protected],Inactive 1003,Chen Wei,[email protected],Active 1004,Sophia Patel,[email protected],Pending 📊 Summary: - Pages visited: 3 (login, users list, export) - Actions performed: 12 (clicks, form fills, downloads) - Errors encountered: 0 - Total time: 12.4s 🔍 Verification: - CSV file exists: ✅ - Data integrity: ✅ (4 users, 4 columns) - Export button clicked: ✅ ```
Automate your browser workflows effortlessly
Get more done every day with Microsoft Teams – powered by AI
Automate security compliance and monitor real-time security posture seamlessly.
Automate your spreadsheet tasks with AI power
Agentic AI Workflow platform
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan