> ## Documentation Index
> Fetch the complete documentation index at: https://docs.1tx.fi/llms.txt
> Use this file to discover all available pages before exploring further.

# AI Agents

> Why 1tx enables autonomous DeFi agents

## The Challenge

AI agents need to optimize yields across protocols, but face major obstacles:

* **No Automation:** Every transaction requires user signature
* **Complex Workflows:** Multi-step operations are error-prone
* **Limited Scope:** Manual approvals restrict what agents can do
* **Poor UX:** Users must be online to approve transactions
* **High Friction:** Switching between protocols requires multiple approvals

## Why 1tx is Better

### True Automation

With embedded wallets and session keys, agents can execute trades 24/7 without user intervention - within preset limits.

### Universal Protocol Access

One interface to access Aave, Compound, Morpho, and more. Agents don't need custom logic for each protocol.

### Intelligent Rebalancing

Agents can automatically move funds to the highest-yielding opportunities as market conditions change.

### Atomic Execution

Single-transaction operations mean agents never get stuck with partial positions or the wrong tokens.

### Risk Controls Built-In

Session keys have time and amount limits, so agents operate safely within user-defined boundaries.

## Example Agent Flow

**Without 1tx:**

* Agent identifies better yield opportunity
* Sends notification to user
* User must manually approve withdrawal
* User must manually approve new deposit
* **Result:** Slow, requires user online, opportunity may be missed

**With 1tx:**

* Agent identifies better yield opportunity
* Automatically withdraws from Protocol A
* Automatically deposits to Protocol B
* **Result:** Fast, autonomous, opportunity captured

## Key Benefits

<CardGroup cols={2}>
  <Card title="Autonomous" icon="robot">
    Operate 24/7 without user intervention
  </Card>

  <Card title="Efficient" icon="gauge">
    Capture opportunities instantly, not hours later
  </Card>

  <Card title="Safe" icon="shield-check">
    Session keys enforce strict limits
  </Card>

  <Card title="Universal" icon="globe">
    Access any protocol through one interface
  </Card>
</CardGroup>

## Use Cases

### Yield Optimizers

Automatically move funds to the highest-yielding protocols as rates change.

### Rebalancing Bots

Maintain target allocations across multiple protocols and assets.

### Dollar-Cost Averaging

Automatically invest on schedules without user intervention.

### Risk Management

Automatically exit positions when risk thresholds are breached.

Agents can also call the Portfolio Analysis API to score an allocation, compare proposed changes, and simulate historical blended yield before executing a rebalance.

### Portfolio Managers

Execute complex multi-protocol strategies autonomously.

## Who This is For

* **AI Yield Optimizers:** Autonomous yield farming
* **Robo-Advisors:** Automated portfolio management
* **Trading Bots:** DeFi strategy execution
* **Telegram/Discord Bots:** User-friendly DeFi interfaces
* **Financial Advisors:** Automated client portfolio management

## Next Steps

<CardGroup cols={2}>
  <Card title="Embedded Wallets" icon="wallet" href="/integration/overview">
    Learn about automated trading setup
  </Card>

  <Card title="API Documentation" icon="code" href="/api-reference/introduction">
    Discover instruments and metrics
  </Card>
</CardGroup>
