> For the complete documentation index, see [llms.txt](https://help.refractbot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.refractbot.com/modules/target/in-bot-shape-generation.md).

# In-Bot (Shape Generation)

The in-bot harvester generates Target Shape cookies from inside Refract, no extension needed. It covers both cookie types: login cookies and add to cart (product) cookies. It has been passing Shape better than the extension, so this is the recommended place to start. You can also run both at the same time.

{% hint style="info" %}
**New to Shape?** Read the general Target guide first. It explains what cookies are, why you need about 3 per running task, and why generating more is not better.
{% endhint %}

{% content-ref url="/pages/de243ea28de3a65e45a06c8368425b47f9aa7f45" %}
[General Target Release Guide](/modules/target/general-target-release-guide.md)
{% endcontent-ref %}

Harvesters live in the bot under **Settings > Harvesters**. The toolbar buttons, left to right: the cookie button opens Shape Harvester Settings, **+** adds a harvester, the play button starts your harvesters, the square button stops them, the pencil edits, and the red **X** deletes.

<figure><img src="/files/KHV9HF3duE7S1wuJEG2m" alt="The Harvesters tab in bot Settings with the toolbar buttons"><figcaption><p>The Harvesters tab. Toolbar, left to right: Shape settings, add, start, stop, edit, delete.</p></figcaption></figure>

## Create a harvester

{% stepper %}
{% step %}

#### Add a harvester

Click **+** on the Harvesters tab. Leave **Type** set to **Shape**, give the harvester a name, and set the **Quantity** you want.

<figure><img src="/files/VmayEWBAnzhYHsqbGqiR" alt="The Add Harvester window" width="420"><figcaption><p>Leave Type on Shape. Blank Browser Path means Chrome.</p></figcaption></figure>
{% endstep %}

{% step %}

#### Set the browser path

Leave **Browser Path** blank to use Chrome. To harvest on Brave, Edge, or any other Chromium browser instead, you must link that browser's executable file. See below for how to find it on Windows and Mac.
{% endstep %}

{% step %}

#### Pick a proxy list

Ideally select a residential (resi) proxy list. Resis have been passing Shape far better than ISPs. If you are on a local machine, you can run up to 2 harvesters with no proxies at all, generating on your home IP.
{% endstep %}

{% step %}

#### Show Browser: does not matter

You do not need to turn on **Show Browser**, and it does not matter at all whether it is on or off. Harvesting works the same either way. Click **Add** and your harvester appears in the list.
{% endstep %}
{% endstepper %}

### Finding the browser executable

Only needed if you are not using Chrome. The Browser Path must point at the browser's actual executable file. A desktop shortcut itself will not work, but a shortcut is the easiest way to find where the real file lives.

{% tabs %}
{% tab title="Windows" %}
{% stepper %}
{% step %}

#### Find the browser's shortcut

Look on your desktop for the browser's icon. If it is not there, open the Start menu, type the browser's name, right-click it in the results, and choose **Open file location**.
{% endstep %}

{% step %}

#### Open its Properties

Right-click the shortcut and choose **Properties**. A window opens on the **Shortcut** tab.
{% endstep %}

{% step %}

#### Copy the Target path

The **Target** field contains the full path to the executable, ending in `.exe`. Select the whole thing and copy it. If the path is wrapped in quotation marks, do not include them.
{% endstep %}

{% step %}

#### Paste it into Refract

Paste the path into the **Browser Path** box in the Add Harvester window. The most common paths:

```
Brave:  C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe
Edge:   C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
```

You can also click the Browser Path box and browse to the `.exe` at that location directly instead of copying from Properties.
{% endstep %}
{% endstepper %}
{% endtab %}

{% tab title="Mac" %}
{% stepper %}
{% step %}

#### Open the file picker

In the Add Harvester window, click the **Browser Path** box. A file picker opens.
{% endstep %}

{% step %}

#### Go to Applications

Click **Applications** in the sidebar of the picker, or press **Cmd + Shift + A** to jump straight there.
{% endstep %}

{% step %}

#### Select the browser

Click the browser's app and confirm. It may show without the `.app` ending in the picker; that is normal, macOS hides it. The most common paths:

```
Brave:  /Applications/Brave Browser.app
Edge:   /Applications/Microsoft Edge.app
```

{% endstep %}
{% endstepper %}
{% endtab %}
{% endtabs %}

{% hint style="warning" %}
**Only Chromium browsers work.** Brave, Edge, and other Chromium-based browsers are fine. Safari and Firefox are not Chromium and will not work as a harvester browser.
{% endhint %}

## Configure the Shape settings

Click the cookie button on the toolbar to open **Shape Harvester Settings**.

<figure><img src="/files/s2FQd5y2izAvx7kQWy0V" alt="The Shape Harvester Settings window" width="450"><figcaption><p>Expiry between 300 and 600 seconds. Max Cookie Count: 3x your running tasks.</p></figcaption></figure>

* **Current Cookie Count:** how many cookies the in-bot harvesters have banked right now. This counts in-bot cookies only, not the extension's.
* **Cookie Expiry (seconds):** set between `300` and `600`. From our testing, most Shape cookies last a maximum of about 10 minutes, so there is no point keeping them longer.
* **Max Cookie Count:** set this to 3x your running tasks. 20 tasks need 60 cookies. 20 tasks duplicated across 3 groups need 180. Remember from the general guide: generating far beyond what you need raises your flag risk, so 3 per task is the target, not the floor.

Click **Save Changes** when done.

## Start and stop harvesting

* The **play** button starts your harvesters, and the **square** button stops them.
* Use the **pencil** to edit a harvester, or right-click it for the same options.
* While generating, tasks show a **Harvesting** status. Once your Max Cookie Count is reached, they switch to **Sleeping (Max Cookies Reached)**. Both are normal.
* While the in-bot harvester is generating, your current cookie count also shows next to the cookie icon in the top bar of the bot, so you can watch your bank without opening Settings.

<figure><img src="/files/BFKfTCOLt5llns5GO6PL" alt="The bot top bar showing the cookie icon with the current count" width="355"><figcaption><p>Your in-bot cookie bank, always visible in the top bar while generating.</p></figcaption></figure>

## Schedule harvesters

You can have harvesters start themselves on a schedule instead of babysitting them.

{% stepper %}
{% step %}

#### Open the scheduler

Select the harvester or harvesters you want, right-click, and click **Schedule**.

<figure><img src="/files/31YY0YQnPz0DXlHOlAK2" alt="The Schedule Harvester window with the Startup checkbox, days, and time slots" width="420"><figcaption><p>The Startup checkbox at the top is Auto start on app launch.</p></figcaption></figure>
{% endstep %}

{% step %}

#### Decide on auto start

The **Startup** section at the top has an **Auto start on app launch** checkbox. Tick it and these harvesters start generating as soon as you open the bot, no schedule or manual start needed. This is the easiest way to never forget to start your harvesters.
{% endstep %}

{% step %}

#### Choose your days

Select days of the week to repeat weekly on those days. With no days selected, the schedule runs once at the next occurrence.
{% endstep %}

{% step %}

#### Add time slots

Click **+ Add Slot** and set the start and stop times. You can add multiple slots. All times are your device's local time.

<figure><img src="/files/Watza8arcJTxJxBrILZr" alt="A schedule with a day selected and a start and stop time slot" width="450"><figcaption><p>Selected days repeat weekly. Times are always your device's local time.</p></figcaption></figure>
{% endstep %}

{% step %}

#### Save

Click **Save** to apply the schedule.
{% endstep %}
{% endstepper %}

## How many harvesters do I need?

There is no task-to-harvester ratio. It takes as many harvesters as it takes to generate the cookies you need, which depends on your machine, your proxies, and the product's current security level. Watch your Current Cookie Count against your target of 3 cookies per running task, and scale the harvester count until you hold it comfortably.

## FAQ

<details>

<summary>Extension or in-bot: which should I run?</summary>

The in-bot harvester has been passing Shape better than the extension, so start there. Both are viable, and you can run them at the same time. Test each on your setup and keep what generates best for you.

</details>

<details>

<summary>Does the in-bot harvester generate both login and ATC cookies?</summary>

Yes. The in-bot harvester covers both cookie types: login cookies (to log your accounts in) and add to cart (product) cookies (to cart Shape-protected products). You do not need the extension for either type.

</details>

<details>

<summary>Why does my harvester status say "Error"?</summary>

This usually means the browser path is wrong. Double-check it points at the browser's executable, then try again. If it persists with a correct path, open a support ticket.

</details>

<details>

<summary>My harvester says "Browser Failed"?</summary>

First, verify your Browser Path actually points at the browser's executable (see [Finding the browser executable](#finding-the-browser-executable)).

If the path is right and you are on Mac, macOS is blocking Refract from launching the browser. Open **System Settings**, search `privacy`, go to **Privacy & Security** > **Developer Tools**, and enable **Refract** in the list ("Allow the applications below to run software locally that does not meet the system's security policy"). Then start the harvester again. This fix is Mac only.

<figure><img src="/files/VwZi8ijEHO6O6M0y9qmD" alt="macOS Privacy &#x26; Security > Developer Tools with Refract enabled"><figcaption><p>Privacy &#x26; Security > Developer Tools: enable Refract, then start the harvester again.</p></figcaption></figure>

</details>

<details>

<summary>Which sites need Shape harvesters?</summary>

Only Target. Shape is Target's anti-bot system, and no other supported site uses these cookies.

</details>

<details>

<summary>Should my harvesters use proxies?</summary>

On a local machine, up to 2 harvesters run fine with no proxies on your home IP. Beyond that, or on a server, use a residential (resi) proxy list. Resis have been passing Shape far better than ISP proxies.

</details>

<details>

<summary>Do I need to be signed in to Chrome or Brave?</summary>

No. The harvester launches its own browser session, and you never need to sign in to the browser itself (a Google account in Chrome, a Brave account, and so on).

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.refractbot.com/modules/target/in-bot-shape-generation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
