# Starting and stopping

One button starts the whole phone. The agent then carries out the switched-on modules and automations of every account, in its working hours. Planner posts come first.

Section: Automations · HTML version: https://atlanbot.com/docs/running/

## One button per phone

The button sits next to the phone on the **Devices** list and on the phone's page. A run is the agent's work on a phone from start to stop. One phone has only one run at a time. Start or stop several phones at once from the **Selected phones** bar.

| Button | When | What to do |
| --- | --- | --- |
| Start | The phone is ready. | Click it and the agent starts working. |
| Starting... | Atlan checks the phone and the settings. | Wait. |
| Stop | The agent is working. | Click it to stop the agent. |
| Stopping... | The agent is finishing its current action. | Wait. The agent first checks whether the action in progress worked. |
| Resume | The run waits for you, for example for a sign-in. | Do what the message on the phone's page asks, then click it. |
| Unblock | The phone blocks control | Click it and turn on the options Atlan names: [Connecting phones](https://atlanbot.com/docs/phones.md?lang=en). |
| Retry | The start failed. | Read the message, fix the cause and click it. |
| Add account | The phone has no accounts yet. This button shows only on the phone list. | [Add an account](https://atlanbot.com/docs/platforms.md?lang=en#add-account) |
| No button | The phone is disconnected or has not allowed USB debugging. | Connect the phone and allow debugging: [Connecting phones](https://atlanbot.com/docs/phones.md?lang=en#prepare). |

After you click **Start**, Atlan tells you in short messages what is happening. First it shows **Starting the agent on the phone…**, then what the agent did first: **The agent is running Like.** or **The agent has not started anything yet. …** with what the agent is waiting for. When nothing starts, you see **Nothing was started on the phone.**

## Before the agent starts

The agent cannot start without the internet. When the internet works, Atlan checks the phone, the accounts and the settings. If something is worth fixing, it shows the **Check configuration before start** dialog with a list of notes. **Cancel** goes back to the settings, and **Continue anyway** starts the phone anyway. When the OpenAI API key is missing, this dialog also has the **Go to MAVEN** button.

When a new agent version is out, Atlan asks whether to install it before the start or to start the agent without it: [Updates and the Watchdog](https://atlanbot.com/docs/updates.md?lang=en).

| Message | What to do |
| --- | --- |
| This phone has no accounts yet, so nothing was started on it. Add an account on the phone's page and try again. | [Add an account](https://atlanbot.com/docs/platforms.md?lang=en#add-account) |
| Atlan does not see this phone, so nothing was started. Connect it by USB cable, unlock it and allow USB debugging. | [Prepare the phone](https://atlanbot.com/docs/phones.md?lang=en#prepare) |
| Automations already run on as many phones as your plan allows. Stop them on another phone or change your plan on the Atlan website. | [The phone limit](https://atlanbot.com/docs/phones.md?lang=en#limit) |
| No OpenAI API key. Add it on the MAVEN page, under Model access. | [AI model](https://atlanbot.com/docs/ai-model.md?lang=en) |

Other messages and their codes: [Errors and codes](https://atlanbot.com/docs/errors.md?lang=en#codes).

## What one run does

A phone's run is a queue, a list of tasks. The agent takes one task from it at a time and opens the right app for each by itself. The order is:

1. A **Planner** post whose time has come. It goes first, whatever the working hours.
2. The account's switched-on modules, in the order of the **Automations** list.
3. The account's switched-on own automations, in the order they were added.

Platforms go in the order Instagram, TikTok, Threads, X, Facebook, then own platforms. Accounts of one platform that are in their hours take turns. An account works while it has a task ready to work. When each of its tasks is on a break, done for the window or at its limit, the next account with something to do takes over.

- Each task takes a break after its operation and runs again in the same window, until it reaches its daily limit. A window is one range of hours, for example 9–11. On a phone's only account, when it has no hours, the window is the whole day.
- Of the tasks ready to work, the one that has waited longest goes first. When none is ready, the queue waits for the nearest break to end or for the next window.
- When nothing is left to do in the window, the run does not end by itself: All done. The agent waits for the account's next work hours or for tomorrow.
- Atlan remembers the modules' breaks, the tasks done for the window and the daily limits used up. Starting again, even after Atlan restarts, does not run a module before its break ends or after its limit is used up.
- A task cut short by **Stop**, by closing Atlan or by a change of the Atlan account sign-in runs at the next start in that window. After an operation that fails, the module waits at least 10 minutes and tries again in the same window. A module the Planner cut short comes back in the same window: after the post, or after its break. A task that was skipped, paused or waits for you waits for the next window.
- A task that cannot start is skipped. Atlan then shows **The agent skipped …: …** with the task's name, the reason and the error code, and the details under it: [How to read an error](https://atlanbot.com/docs/errors.md?lang=en#read). The reason also goes to the run's log, the record of the agent's work.
- When the phone is disconnected, busy or without internet, when its Remote connection drops, when Atlan's server does not answer or the AI model is unavailable for a moment, the queue waits and tries again. The gap between tries grows, but never goes over 5 minutes.
- When Atlan is still finishing another operation, the queue tries again too. The first try comes after 5 seconds, and the gap grows to 30 seconds at most.

Set the pause between accounts in the [agent behaviour settings](https://atlanbot.com/docs/settings.md?lang=en#agent). There you can also turn on the IP reset or proxy rotation. Both change the address the phone has on the internet when the agent moves to another account.

## Working hours in a run

- An account works only in its hours. Outside them its tasks wait.
- When the hours end, the agent stops the task at a safe point: Stopped because this account's work hours ended. An action already under way finishes first. The next task waits for the next window.
- The Planner ignores working hours: a post goes out at its own time. 5 minutes before it, the phone starts no new tasks, and a module that is working ends: Stopped because the phone is held for a Planner entry. That module comes back in the same window, after the post or after its break.
- Schedule elements in modules set breaks, not times of day. The only schedule with dates is the Planner.

How to set the hours, and what an account without them does: [Platforms and accounts](https://atlanbot.com/docs/platforms.md?lang=en#hours).

## What you see while it runs

A working phone shows **Running locally** on the list. The **Active**, **Needs action**, **Idle** and **Offline** filters show only the phones you pick. Next to the phone you see the account, the module and the progress, for example **3 of 5 done**.

![A phone's page while the agent works: the Running locally status with the account Kwiaty Łódź and the Like module, red marks by Threads, the account and the Like module, and the Stop button.](https://atlanbot.com/static/docs/app-phone-running-en.webp?v=e26afeeab3)

*Under the phone's name: Running locally, the account and the module the agent works on. The same places carry a red mark on the platform strip, the account list and the module tile.*

| On the card | What it means |
| --- | --- |
| Cooldown: … | The module is taking its break between operations, its batches of actions. |
| Waiting for Planner | The Planner is about to publish a post. |
| Outside work hours | The account is outside its working hours. |
| Work hours from 16:00 | Today the account starts work at this time. |
| Window done | Every task has finished its work in this window or reached its daily limit. The queue waits for the next window or the next day. |
| Account change, 5 s | The pause before moving to the next account. |
| IP reset, Proxy rotation | The phone changes its IP address before the next account. |
| Waiting for the phone, Waiting for the phone to be free, Waiting for the portal | The queue waits for the phone or Atlan's server and tries again by itself. |
| Waiting for the internet, Waiting for the Remote connection, Waiting for the AI model | The queue waits for the phone's internet, the Remote connection or the AI model and tries again by itself. |
| Waiting for another operation | Atlan is finishing another operation. The queue tries again by itself, within 30 seconds at most. |

### Automation is waiting for you

When the run needs your help, the phone's tile shows **Automation is waiting for you**, and the **Devices** item in the menu on the left gets the **Needs action** mark. The phone's page shows the message with its error code. Most often the app asks for a sign-in, a code or a CAPTCHA. Then finish it on the phone and click **Resume**. The **Resume this automation?** dialog reminds you: First finish on the phone what the app asks for. Resuming does not do it for you: without it the automation stops again. It starts in the queue's next pass.

Every working phone, each with a **Stop** button, is also in **Watchdog** › **Active agents**. Switch on notifications about errors and limits in the [notification settings](https://atlanbot.com/docs/settings.md?lang=en#notifications).

![The Active agents list: the phone, platform, account and module, the runtime and a Stop button on every row.](https://atlanbot.com/static/docs/app-active-en.webp?v=db00668534)

*Active agents: every working phone in one place. Sample data.*

## The MAVEN console

When you click **Start**, Atlan opens a `Atlan MAVEN` console window for the phone, with the phone's name and serial number. The console is a plain text window that shows what the agent is doing as it happens. Each action is one line with its time, for example `[14:05:12] Opened the Threads app.`

- The window opens even when the queue waits first, for example for the working hours. It then shows what it waits for and when it goes on.
- An error line carries the `[ERROR]` tag and is red. There are no other bracketed tags. The end of the working hours, a limit or your own stop is plain information, not an error.
- The header shows the phone and the current task's platform and account. The console shows no text the agent types.
- The footer shows how many actions the agent did today against the module's daily limit, for example `today 4/20`.
- The window stays through breaks, waits and module changes. It never closes by itself. After the work ends, it shows `Run finished` and `Enter closes the window`.

> **Closing the console stops the phone** When you close the console window while the queue works or waits, you stop the whole phone, as the **Stop** button does. The console then writes: Console closed: stopping the agent. `Ctrl` + `C` stops the work the same way, but the window stays and shows its end. The agent ends at a safe point, never halfway through an action. Closing the window after the work has ended stops nothing. To go back to work, click **Start**.

## How a run ends

A phone's run ends only when:

- You click **Stop**. The agent then writes: Stopping… If an action is in progress, its check finishes first.
- You close the MAVEN console before the run is over.
- OpenAI refuses the key or the model, or reports no credit left on the account. The queue stopped: OpenAI refused the API key, the model or your account's credit, so the next automations would be refused the same way. Start it again once that is fixed.
- Atlan cannot read the settings of the account or its modules.
- You close Atlan. The agent has up to a minute to reach a safe point.
- The sign-in to the Atlan account changes.
- Atlan cannot go on working on this phone, for example when your plan gives no access or allows no more phones, when your account session has ended, or when another computer already controls the phone. Atlan then shows a message with its error code: [Errors and codes](https://atlanbot.com/docs/errors.md?lang=en#codes).

A single task ends with a message. The most common ones:

| Message | What next |
| --- | --- |
| Task completed. | Nothing. The task comes back after its break, until it reaches its daily limit. |
| Stopped at your request. | Click **Start** when you want. |
| The source has no more items to work on. | Add new items to the module's list. |
| The daily action limit for this account was reached. | The module comes back the next day. |
| The hourly action limit for this account was reached. | The message gives the time from which the account can act again. |
| This task reached its action limit. | Raise the task's limit if you want more. |
| Several recent actions did not go through or could not be verified, so this automation is paused on this account for 24 hours. It resumes on its own. | Check the account in the app before the module comes back. |
| The platform showed a warning for this account, so this automation is paused for 24 hours (72 hours after another warning within a week). It resumes on its own. | When warnings keep coming, lower the module's pace. |
| The phone's battery is critically low (below 10%), so Atlan paused automations on this phone. Charge the phone: automations resume once its battery is above 10%. | Put the phone on a charger. |
| The app on the phone is waiting for you: a sign-in, a code, a CAPTCHA or an identity check. Finish it in the app and resume this account's automation. | Finish it on the phone and click **Resume**. |
| The phone had no working internet connection, so this run ended. An unconfirmed action is never sent a second time: Atlan checks it automatically once the connection works. Automations continue when the phone is connected to the internet. | Check the phone's internet connection. |
| The phone blocks ADB control. On Xiaomi/Redmi/POCO (MIUI/HyperOS) enable "USB debugging (Security settings)" and "Install via USB" in Developer options, then reconnect the phone. Automations on this phone are paused until then. | Click **Unblock** next to the phone. |
| Atlan stopped the task to avoid an action on screen that is not in the plan. | Nothing. The agent did nothing outside the plan. |
| Atlan could not verify that the right account is active in the app. | Switch the app to the right account and start the phone again: [The right account](https://atlanbot.com/docs/maven.md?lang=en#account). |
| Atlan could not verify that the right profile is active in the app. | Switch Facebook to the right profile or Page and start the phone again. |
| The same dialog in the app kept coming back after it was answered, so the task was stopped. | Open the app on the phone and close that dialog yourself. |
| The app says this version is out of date and lets you go on only by updating it, so this run ended. Update the app on the phone: Atlan never installs or updates apps. | Update the app on the phone, for example in its app store. The agent does not do it for you. |
| Stopped because the phone is held for a Planner entry. | Nothing. The module comes back in the same window, after the post or after its break. |
| Stopped because this account's work hours ended. | Nothing. The module comes back in the next window of working hours. |

## Statistics

**Statistics** count only the actions the agent confirmed. Pick the period: **24h**, **7 days**, **30 days** or **All**.

- Figures: **Total actions**, **Daily average**, **Avg. actions / account** and **Most active day**.
- Charts: **Actions over time**, **Actions by platform**, **Actions by account**, **Daily activity** over the last 13 weeks and **Actions by method**.
- **No data?** explains why a chart may be empty.
- Published Planner posts are in **Added posts**: [Planner](https://atlanbot.com/docs/planner.md?lang=en#states).
