> For the complete documentation index, see [llms.txt](https://hxz-1.gitbook.io/redelegator-finance/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hxz-1.gitbook.io/redelegator-finance/how-redelegator-works/getting-started.md).

# Getting Started

> ℹ️ **Requirements:** Node ≥ 20, pnpm, MetaMask ≥ 13.23 (EIP-7715 support), and a little USDC on Base in your connected wallet (budget + \~0.05 headroom for the relayer fee).

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

#### 1. Install & configure

```bash
cd frontend
pnpm install
cp .env.example .env.local   # fill in keys — see the template comments
```

`.env.local` needs at minimum `VENICE_API_KEY`, `LIFI_API_KEY`, an RPC URL, and the five agent private keys (generate fresh ones — server-side signers, never commit).

#### 2. Run the app

```bash
pnpm dev   # http://localhost:3000
```

#### 3. One-time agent setup (live runs)

```bash
pnpm fund 0.0001      # funder EOA distributes gas ETH to the agents
pnpm upgrade-agents   # each agent self-upgrades to a Stateless7702 smart account (EIP-7702)
```

#### 4. Connect & run an intent

Connect MetaMask, then type or tap a suggestion chip. The EIP-7715 prompt appears once; everything after that single grant is autonomous.

> ⚠️ Quality gates before committing: `pnpm biome check`, `npx tsc --noEmit`, `pnpm build` (the pre-commit hook runs them anyway).


---

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

```
GET https://hxz-1.gitbook.io/redelegator-finance/how-redelegator-works/getting-started.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.
