Metadata-Version: 2.4
Name: invar402-agentkit
Version: 0.1.0
Summary: Coinbase AgentKit (Python) action provider for Invar402. Never holds payment keys and never pays automatically.
Author: invar402
License-Expression: MIT
Project-URL: Homepage, https://invar402.com
Project-URL: Repository, https://github.com/dumeinao441-ux/invar402-mcp
Project-URL: Issues, https://github.com/dumeinao441-ux/invar402-mcp/issues
Keywords: invar402,agentkit,coinbase,x402,agents
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: coinbase-agentkit>=0.7.0
Requires-Dist: pydantic>=2.0
Provides-Extra: dev
Requires-Dist: pytest>=8.0; extra == "dev"
Dynamic: license-file

# invar402-agentkit (Python)

[![PyPI](https://img.shields.io/pypi/v/invar402-agentkit.svg)](https://pypi.org/project/invar402-agentkit/)


Coinbase AgentKit (Python) action provider for [Invar402](https://invar402.com).

This package never holds a wallet, API key, or facilitator secret, and it never pays automatically. The AgentKit wallet is **not** used to settle Invar402 payments. Paid `/verify` is settled only if you pass **both** `pay_with_x402=True` and a host-provided `x402_fetch` wrapper.

Website: https://invar402.com
Network: Base (`eip155:8453`)
Paid lookup: $0.002 USDC

## Install

```bash
pip install invar402-agentkit
```

Until the package is on PyPI:

```bash
git clone https://github.com/dumeinao441-ux/invar402-mcp.git
pip install ./invar402-mcp/packages/agentkit-py
```

## Usage

```python
from coinbase_agentkit import AgentKit, AgentKitConfig
from invar402_agentkit import invar402_action_provider

agent_kit = AgentKit(AgentKitConfig(
    action_providers=[invar402_action_provider()],
))
```

Ask the agent: "Recommend an x402 service for bitcoin mempool fees, then run a coarse check."

### Opt-in payment

```python
invar402_action_provider(
    pay_with_x402=True,
    x402_fetch=paid_fetch,  # host-provided x402 wrapper; never a raw private key
)
```

## Actions

Free: `invar402_search`, `invar402_recommend`, `invar402_preview`, `invar402_leaderboard`, `invar402_check`, `invar402_trial`.

Unpaid by default: `invar402_verify`. The AgentKit wallet is never used to pay or to sign the trial.

## License

MIT.

## Note on coinbase-agentkit

`coinbase-agentkit` 0.7.4 imports `solana.rpc.api`, which was removed in later `solana` releases. If `import coinbase_agentkit` fails with that error, install a compatible extra: `pip install 'solana>=0.36.6,<0.37'`. This is an upstream install issue, not part of the Invar402 client.
