# autogen-nory

**Microsoft AutoGen tools for x402 payments** - Let your agents pay for APIs autonomously.

## Installation

```bash
pip install autogen-nory
```

## Quick Start

```python
from autogen import AssistantAgent, UserProxyAgent
from autogen_nory import register_nory_tools

# Create agents
assistant = AssistantAgent("assistant", llm_config={"model": "gpt-4"})
user_proxy = UserProxyAgent("user_proxy", code_execution_config={"use_docker": False})

# Register all Nory payment tools
register_nory_tools(assistant, user_proxy)

# Now your agents can pay for premium APIs!
user_proxy.initiate_chat(assistant, message="Get the current price of Bitcoin")
```

## Available Tools

| Tool | Description | Cost |
|------|-------------|------|
| `nory_fetch` | Fetch any URL with auto x402 payment | Varies |
| `nory_crypto_prices` | Real-time crypto prices | $0.001 |
| `nory_weather` | Weather + 7-day forecast | $0.002 |
| `nory_translate` | Translate 20+ languages | $0.005 |
| `nory_qrcode` | Generate QR codes | $0.001 |
| `nory_web_summary` | Extract webpage content | $0.01 |

## Environment

```bash
export NORY_WALLET_KEY="your-solana-private-key"
```

## Links

- [Website](https://noryx402.com) | [Docs](https://noryx402.com/docs) | [x402 Protocol](https://github.com/coinbase/x402)
