You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-6Lines changed: 13 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,6 +26,17 @@ pip install opengradient
26
26
27
27
**Note**: > **Windows users:** See the [Windows Installation Guide](./WINDOWS_INSTALL.md) for step-by-step setup instructions.
28
28
29
+
### Claude Code Integration
30
+
31
+
If you use [Claude Code](https://claude.ai/code), you can enhance your development experience with OpenGradient:
32
+
33
+
-**CLAUDE.md context file**: Copy [docs/CLAUDE_SDK_USERS.md](docs/CLAUDE_SDK_USERS.md) to your project's `CLAUDE.md` to enable context-aware assistance with OpenGradient SDK development.
34
+
35
+
-**Claude Code Plugin**: Install the [OpenGradient Claude Plugin](https://github.com/OpenGradient/claude-plugins) for skills, commands, and agents tailored to OpenGradient development. To install, run:
36
+
```bash
37
+
claude plugin marketplace add https://github.com/OpenGradient/claude-plugins
Before making LLM requests, your wallet must approve OPG token spending via the [Permit2](https://github.com/Uniswap/permit2) protocol. Call this once (it's idempotent — no transaction is sent if the allowance already covers the requested amount):
102
+
Before making LLM requests, your wallet must approve OPG token spending via the [Permit2](https://github.com/Uniswap/permit2) protocol. This only sends an on-chain transaction when the current allowance drops below the threshold:
92
103
93
104
```python
94
-
llm.ensure_opg_approval(opg_amount=5)
105
+
llm.ensure_opg_approval(min_allowance=5)
95
106
```
96
107
97
108
See [Payment Settlement](#payment-settlement) for details on settlement modes.
@@ -324,10 +335,6 @@ For comprehensive documentation, API reference, and guides:
If you use [Claude Code](https://claude.ai/code), copy [docs/CLAUDE_SDK_USERS.md](docs/CLAUDE_SDK_USERS.md) to your project's `CLAUDE.md` to enable context-aware assistance with OpenGradient SDK development.
330
-
331
338
## Model Hub
332
339
333
340
Browse and discover AI models on the [OpenGradient Model Hub](https://hub.opengradient.ai/). The Hub provides:
0 commit comments