# Manage an Auto Farm Vault

Once your Auto Farm Vault is created, you can manage and fine-tune its behavior in the **Agent Config** tab. Inside you will see the following sector:

* **Agent Config**: High-level goal & strategy of this particular vault
* **Auto-Farm Config**: Give your agent permissions to manage the vault’s LP assets

## Agent Config

These are the settings you have selected in the Create menu, they will shape how the AI Agent selects pools, allocates funds, and performs actions like rebalancing, harvesting, and exiting.

<figure><img src="/files/NobnM3hlxWJTpR5JkMAW" alt=""><figcaption></figcaption></figure>

## Auto-Farm Config

The **Auto-Farm Config** section lets you fine-tune how the AI Agent is allowed to operate and under what conditions it can farm on your behalf. This is where you turn your strategy into concrete, executable rules.

It’s designed to balance **automation, control, and safety**.

{% hint style="info" %}
By default, **Auto-Farm Config** is not activated when a vault is created. Make sure to turn it on if you want the AI Agent to operate.

To activate the AI Agent, verify your wallet, click **Activate**, and remember to save the configuration.
{% endhint %}

### Permissions

<figure><img src="/files/wzLcVQB1PlilrMEe0Kxd" alt=""><figcaption></figcaption></figure>

**Permissions** define *what actions* the AI Agent is allowed to perform.

Here, you decide whether the Agent can:

* Run transactions automatically
* Add or remove liquidity
* Rebalance positions
* Harvest and compound rewards

Think of this as giving the Agent a set of tools.\
The more permissions you enable, the more autonomous and powerful the Agent becomes.

> **Tip:** Start with essential actions (add, rebalance, harvest) and expand as you gain confidence.

#### Action Mapping Reference

The Action Mapping Reference helps you understand how actions in the interface translate into what the Agent actually does behind the scenes.

Each **User-Facing Action** maps to an internal action key used by the Agent. You can see these action keys in the **Agent Terminal**, where every step the Agent takes is shown.

You can also use these same action keys in **Agent Instructions** to clearly tell the Agent how you want it to behave.

| User-Facing Action     | Internal Action Key |
| ---------------------- | ------------------- |
| **Add Liquidity**      | `swap_and_mint`     |
| **Remove Liquidity**   | `withdraw_and_swap` |
| **Increase Liquidity** | `swap_and_increase` |
| **Rebalance**          | `adjust_range`      |
| **Compound**           | `compound`          |
| **Harvest**            | `harvest`           |

### Scopes

<figure><img src="/files/srvtUgOznGqrwWoJTBrZ" alt=""><figcaption></figcaption></figure>

**Scopes** limit *where* and *how broadly* the Agent can farm.

You can use scopes to:

* Restrict pools by minimum TVL or liquidity depth
* Enforce minimum price range widths
* Whitelist specific pools or protocols

Scopes act as guardrails, ensuring the Agent only operates within environments you consider safe and acceptable.

> **Tip:** Tighter scopes = more control and safety. Broader scopes = more opportunities and flexibility.

### Instructions

<figure><img src="/files/EMMXGITxkrRx1NQvapI5" alt=""><figcaption></figcaption></figure>

**Instructions** are the brain of your Auto-Farm strategy.

This is where you describe:

* How to select pools
* When to enter or exit positions
* How often to check performance
* When to redeploy or compound

You can write them manually for full control, or use **Generate with AI** to let Krystal suggest a strategy based on your goals and preferences.

The Agent will follow these instructions continuously while farming.

> **Tip:** Focus on logic and conditions (e.g. yield thresholds, price movements), not on individual transactions.

### Execution Config

<figure><img src="/files/zntMMDh6QIrNbK2f9wqy" alt=""><figcaption></figcaption></figure>

**Execution Config** controls *how* the Agent executes actions on-chain.

Here you define limits such as:

* Acceptable slippage for swaps and liquidity actions
* Cool-down time between operations
* Gas fee ceilings
* Maximum value allocated per strategy

These settings protect you from excessive costs and overly aggressive behavior, even when the Agent is fully automated.

> **Tip:** Conservative execution settings help avoid surprises during volatile or congested network conditions.


---

# Agent Instructions: 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:

```
GET https://docs.krystal.app/products/vaults/auto-farm/manage-an-auto-farm-vault.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
