Partner content. Prepared by the CaptchaAI team.
Moving an automation project to a VPS solves one problem: the application no longer depends on someone keeping a laptop open.
But a server that stays online does not guarantee a workflow that keeps moving. A scheduled task can launch successfully, open its target page, and then wait indefinitely at a CAPTCHA.
The missing piece is usually a way to recognize that interruption, handle the supported challenge, and confirm that the original task actually finished.
This guide explains how to add CaptchaAI to a VPS-based workflow, from preparing the server to managing concurrent tasks and investigating failures.
This type of workflow should only be used in owned, client-authorized, or contractually permitted environments.
What Runs on the VPS, and What Does CaptchaAI Handle?
The VPS runs your application: its scheduler, browser or HTTP client, task queue, and output storage.
CaptchaAI handles the supported CAPTCHA-solving task through its API. Your application submits the required inputs, retrieves the result, and applies it to the workflow.
That means using the API does not require installing a local CAPTCHA-solving model on the server. You still need enough VPS resources for your application, particularly if it launches several browser instances.
For a project hosted on PSB Hosting VPS, separate these responsibilities:
| Component | Responsibility |
|---|---|
| VPS | Runs the application and its dependencies. |
| Scheduler or process manager | Starts jobs and manages their lifecycle. |
| Application | Detects interruptions, submits tasks, applies results, and validates completion. |
| CaptchaAI | Processes supported CAPTCHA-solving requests. |
| Logs and storage | Preserve results and enough diagnostic information to investigate failures. |
Prepare the Server Before Adding CAPTCHA Handling
Start with one working task.
Install the runtime your application needs, create an isolated project environment, and verify that the task can reach its permitted target from the VPS.
For a Python project, a minimal environment might begin with:
python3 -m venv .venv
source .venv/bin/activate
python -m pip install requests
Browser automation requires additional setup. If the project uses Playwright or Selenium, install the browser and system dependencies required by that tool.
Run the application under the same operating-system user and environment that will execute scheduled jobs. A command that works in an interactive terminal can fail under a scheduler because its working directory, environment variables, or executable paths differ.
Keep the CaptchaAI key in a protected environment file or secret store. Avoid hard-coding it into source files or printing it in logs.
Add CAPTCHA Handling at the Point of Interruption
Do not send every page to a solver.
First identify whether the application encountered a supported CAPTCHA, a network failure, an authentication problem, or unexpected content.
CaptchaAI supports several challenge families, including reCAPTCHA, Cloudflare Turnstile, Cloudflare Challenge, GeeTest v3, and image CAPTCHAs. Each method has its own inputs and result-handling requirements.
The CaptchaAI API quickstart describes the basic submission-and-retrieval flow.
A useful application structure is:
- Start the permitted task.
- Check the response or browser state.
- If a supported challenge appears, pause that task.
- Submit the method-specific inputs to CaptchaAI.
- Retrieve and apply the result.
- Check whether the original action completed.
- Save the outcome or record a failure.
The final check matters. A successful solver response is not the same as a successful website action.
Keep the Browser Session Available
Suppose a browser reaches a verification challenge during an authorized form test.
Restarting the browser while the solving task runs may discard the cookies or page state needed to continue. Keep the relevant session available and apply the result according to the website's integration.
There is no universal "apply solution" function that works for every CAPTCHA and every page. Some workflows use a token; others require different response fields or session handling.
Use the documentation for the selected method rather than assuming that the same browser code applies everywhere.
Test One Complete Job Before Scheduling It
Consider a daily check of a client-authorized product catalogue.
The useful success condition is not "the Python process exited." It is "the expected records were collected and saved."
For the first test:
- Run one catalogue page.
- Confirm that CAPTCHA detection works when needed.
- Complete the solving flow.
- Validate the expected content.
- Save the output.
- Review the logs.
Only then add scheduling.
For short periodic jobs, a scheduler may be sufficient. For a continuously running worker, use an appropriate process manager. In either case, prevent overlapping copies unless the application is designed to coordinate them.
Try the Workflow Before Increasing Its Size
PSB Hosting users can test CaptchaAI with 50 free threads for 3 days, including unlimited CAPTCHA solves within the trial's 50-thread capacity.
To request activation, send PSBHosting50 to @AskCaptchaAI on Telegram.
Use the trial to test a complete server-side job: detection, solving, result application, and final output. There is no need to start with 50 simultaneous tasks.
Understand Unlimited Solves and Thread Capacity
All CaptchaAI subscription plans include unlimited solves within the selected thread capacity. There is no fixed daily or monthly solve quota.
A thread represents one simultaneous solving task. For example, five threads allow five tasks to be processed at once; those threads become available again as tasks finish.
The application should queue additional work when all threads are occupied. Requests exceeding the active capacity can return ERROR_NO_SLOT_AVAILABLE.
Also distinguish solving capacity from VPS capacity. Having 50 solving threads does not mean the server can comfortably run 50 browser instances. Increase concurrency gradually while watching memory, CPU, and completed-job rates. If browser instances become the bottleneck, a Hi-CPU VPS with higher clock speeds gives each instance more headroom.
Handle Waiting and Failures Deliberately
A solver task may still be processing when the application checks its result.
For API methods using the standard polling flow, CAPCHA_NOT_READY means the existing task is not finished. Continue checking that task according to the method's documented timing rather than immediately submitting a duplicate.
Add a deadline and bounded retries to the application. Avoid a loop that can wait forever.
Useful diagnostic fields include:
| Field | What it helps explain |
|---|---|
| Application job ID | Which business task was interrupted. |
| Solver task ID | Which submitted challenge is being checked. |
| CAPTCHA method | Which integration path was used. |
| Submission and completion times | Where time was spent. |
| Final validation result | Whether the intended action succeeded. |
Keep API keys, proxy passwords, and sensitive session data out of routine logs.
A Practical Checklist Before Leaving the Job Unattended
Before enabling the production schedule, confirm that:
- The application runs under the scheduled execution environment.
- Required browsers and dependencies are installed.
- Secrets are loaded without appearing in logs.
- Waiting and retries have limits.
- Extra work is queued when solving capacity is occupied.
- A restart does not blindly repeat an already completed action.
- Success is measured using the expected output.
A VPS keeps the application available. These controls make its behavior observable when verification interrupts a task.
CaptchaAI Discount for PSB Hosting Users
After testing the workflow, PSB Hosting users can get up to 15% off through the CaptchaAI partner offer for PSB Hosting.
Choose thread capacity according to the simultaneous solving workload you have measured. Every subscription plan includes unlimited solves within that capacity.
Stay Connected with the CaptchaAI Community
Using CaptchaAI in your automation workflow? Follow our community channels for product updates, announcements, and special offers: Telegram | Discord.
More server guides are in the PSB Hosting blog.









