# Automations and Claude

## Connecting Claude

1. In the dashboard, click **Connect MCP** at the bottom left of the menu.
2. Open the **Claude** tab.
3. In Claude, open **Settings → Connectors** and choose **Add custom connector**.
4. Name it 0bull and paste the URL shown in the dialog.
5. Click **Connect**, then approve access in the browser window that opens.

![The Connect MCP dialog in the 0bull dashboard with the Claude tab open](/images/guide/connect-mcp-dialog.webp)

There is no key to copy: you sign in with your 0bull account the first time. The same
dialog has tabs for Claude Code, Codex, ChatGPT, Cursor and any other MCP client.

Once connected, ask Claude things like "Show me what's on my first phone" or "Post this
video to @myaccount tonight at 8". More in [Claude connector](/mcp/claude).

## Three ways to make a phone do something

| | What it is | Where |
|---|---|---|
| **Macro** | A recording of your taps, replayed exactly. No AI. | Macros |
| **Agent** | One task in plain words, run once on one phone. | The Agent tab in live view |
| **Automation** | A saved task for the agent, on many phones, on a schedule. | Automations |

## Writing your own automation

1. Go to **Automations** and click **New automation**.
2. Choose **Start from scratch**.
3. Give it a **Name**.
4. Under **What should the agent do?**, write the task in plain words. Say how many or how
   long, and what to report. For example: "Open TikTok, scroll the For You page for two
   minutes and like three videos. Report how many you liked."
   Under it, **Model** shows which model runs it. Keep the default or pick another, see
   [Choosing the AI model](#choosing-the-ai-model).
5. Under **When it runs**, choose **Schedule**, **Webhook** or **By hand**.
6. Under **Phones**, choose **All live** or pick phones.
7. Click **Create automation**.

Before saving, try it on one phone with **Test on this phone**. Any automation can also
start with **Run now**.

Scheduled and webhook runs happen without you, so the agent can't ask you questions. If it
hits a code it wasn't given, that run fails. You get an email when a run ends, unless you
turn that off.

## Ready-made automations

These exist today under **New automation**:

![The Automations page showing the four ready-made automations and Start from scratch](/images/guide/automation-templates.webp)

- **Warm up TikTok accounts (humanized):** 0bull's own warm-up, run on every phone you
  pick. See [The built-in TikTok warm-up](/guide/accounts#the-built-in-tiktok-warm-up).
- **Like videos about a topic on TikTok:** likes 10 videos on a topic from the For You
  feed, stopping after 10 likes or 30 minutes. The text starts with cars as the topic, so
  change it to yours.
- **Follow creators about a topic:** follows 5 creators about your topic from the For You
  feed and reports who it followed.
- **Post the latest draft:** posts the newest TikTok draft with its caption and reports
  whether it worked.

## Limits

- Up to 50 automation runs a day for your whole account, all automations together (the day
  is counted in UTC).
- A run doesn't start while the same automation is still running.
- An automation that fails 3 times in a row is switched off. Fix the task, then switch it
  back on.
- **Hours to avoid** keeps scheduled and webhook runs out of the hours you cross out.
  **Run now** always works.

## Choosing the AI model

The agent and your automations run on the 0bull model, included in your plan. You can run
them on your own model instead, with your own API key.

### Bring your own model

1. Go to **Settings → AI model** and click **Use your own model**.
2. Pick a **Provider**: OpenRouter, OpenAI, Anthropic, Google or **Custom**. A provider
   fills in the **API format** and **Base URL** for you. For Custom, choose the format your
   server speaks (OpenAI Chat, OpenAI Responses, Anthropic or Gemini) and paste its base
   URL. It must be a public HTTPS address.
3. Paste your **API key**.
4. Click **Load models** and pick one, or type the model id from your provider's docs. The
   agent needs a model that can call tools.
5. Click **Test and save**. We send one short test message first, so a wrong key, a key
   without credit or a model without tool calling shows up here, not in a run.

Your model applies to every phone your account rents, whoever on your team starts the run.
Your provider bills you for what it uses. The saved key is never shown again, only its last
4 characters. Change the base URL or the format and you type the key again.

To go back, click **Use the 0bull model**. Your API key is deleted from 0bull.

### A model per chat or automation

- **In a chat with the agent,** the model menu at the bottom of the message box picks the
  model for that conversation: the 0bull model, or any model on your provider that can call
  tools. A change applies from your next message. Without a model of your own, the menu
  shows the 0bull model and a link to bring yours.
- **Thinking** appears for a model that thinks before it answers: **Low**, **Medium** or
  **High**. **Default** leaves it to your provider.
- **In an automation,** **Model** under **What should the agent do?** sets the model and
  thinking level for every run. Each run shows the model it ran on. The TikTok warm-up
  always runs on the 0bull model.

### Usage

**Settings → AI model** also shows the tokens your agent and phones used in the last 30
days, per phone and per model, and how much came from the prompt cache. On your own model
it shows the cost when your provider sends prices.
