Metadata-Version: 2.4
Name: llamaindex-nory
Version: 0.1.0
Summary: LlamaIndex tools for x402 payments - let agents pay for APIs autonomously
Author-email: Nory <hello@noryx402.com>
License: MIT
Project-URL: Homepage, https://noryx402.com
Project-URL: Repository, https://github.com/TheMemeBanker/llamaindex-nory
Keywords: llamaindex,llama-index,ai-agents,payments,x402,solana,usdc
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Description-Content-Type: text/markdown
Requires-Dist: llama-index-core>=0.10.0
Requires-Dist: requests>=2.28.0

# llamaindex-nory

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

## Installation

```bash
pip install llamaindex-nory
```

## Quick Start

```python
from llama_index.core.agent import ReActAgent
from llama_index.llms.openai import OpenAI
from llamaindex_nory import NoryPaymentToolSpec

# Create tool spec
tool_spec = NoryPaymentToolSpec()

# Create agent with Nory tools
llm = OpenAI(model="gpt-4")
agent = ReActAgent.from_tools(tool_spec.to_tool_list(), llm=llm)

# Agent can now pay for premium data!
response = agent.chat("Get the current price of Bitcoin")
print(response)
```

## Available Tools

| Tool | Description | Cost |
|------|-------------|------|
| `fetch_paid` | Fetch any URL with auto x402 payment | Varies |
| `crypto_prices` | Real-time crypto prices | $0.001 |
| `weather` | Weather + 7-day forecast | $0.002 |
| `translate` | Translate 20+ languages | $0.005 |
| `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)
