> ## Documentation Index
> Fetch the complete documentation index at: https://0xcaptain.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Install the AgentBank Python SDK

> Install agentbank-py via pip and create an AgentBankClient with your RPC URL, private key, and Mantle mainnet contract addresses to access all protocol modules.

The `agentbank-py` package provides a Python client for interacting with the AgentBank V3 protocol on Mantle. It wraps vault, signal, intent, and attestation contracts using web3.py.

## Install

```bash theme={null}
pip install agentbank-py
```

## Create a client

```python theme={null}
import os
from agentbank import AgentBankClient, Addresses

client = AgentBankClient(
    rpc_url="https://rpc.mantle.xyz",
    private_key=os.environ["PRIVATE_KEY"],   # omit for read-only
    addresses=Addresses(
        vault="0xC44C061D257Af305dEAea2eD093E878a615d856d",
        signal_board="0x2A46cF6493b377D45908254B0528e38990AA323f",
        intent_router="0x9582d2dF303ec2B1fab104A77E249C05571fccC9",
        tee_verifier="0x51E52dCBD0FBfaDaDB43ad1EB1Ea0d3A79f128c3",
    ),
    chain_id=5000,
)
```

Omit `private_key` for read-only mode. Write operations raise `RuntimeError` if no key is configured.

## Available methods

| Group | Methods |
| - | - |
| Vault | `deposit`, `withdraw`, `get_shares`, `get_tvl`, `get_apy` |
| Analyst | `register_analyst`, `deregister_analyst`, `post_signal`, `get_reputation` |
| Intent | `post_intent`, `submit_bid`, `settle_auction`, `get_open_intents` |
| Attestation | `verify_run`, `get_attested_run`, `is_verified`, `compute_run_id` |

See the [Python client reference](https://0xcaptain.mintlify.site/sdk/python/client.md) for full documentation.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.