OpenGradient SDK
Description
Python SDK for using verifiable AI inference on OpenGradient
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
OpenGradient Python SDK
[](https://github.com/OpenGradient/sdk/actions/workflows/test.yml) [](https://github.com/OpenGradient/sdk/actions/workflows/e2e.yml) [](https://pypi.org/project/opengradient/)
A Python SDK for decentralized model management and inference services on the OpenGradient platform. The SDK provides programmatic access to distributed AI infrastructure with cryptographic verification capabilities.
Quick Summary for Developers
**New to OpenGradient?** Start here.
| Question | Answer |
|---|---|
| What is it? | A decentralized network that runs AI inference inside TEEs and settles every request on-chain |
| What problem does it solve? | Centralized AI is a black box. OpenGradient gives cryptographic proof for every inference |
| How do I use it? | Install the SDK, get a private key, call llm.chat() like OpenAI but with transaction_hash and tee_signature in every response |
| What is Model Hub? | A decentralized registry to upload, discover, and run custom ONNX models on-chain |
| What is MemSync? | A long-term memory layer for AI agents with persistent context across sessions |
30-Second Quickstart
Install, set up a private key with OPG tokens, and run:
import asyncio, os, opengradient as og
async def main():
llm = og.LLM(private_key=os.environ["OG_PRIVATE_KEY"])
llm.ensure_opg_approval(min_allowance=0.1)
result = await llm.chat(
model=og.TEE_LLM.GEMINI_2_5_FLASH,
messages=[{"role": "user", "content": "Hello!"}],
)
print(result.chat_output["content"]) # AI response
print(result.transaction_hash) # on-chain proof
asyncio.run(main())
Overview
OpenGradient enables developers to build AI applications
Related Skills
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
AI Awesome Llm Apps
100+ AI Agents, Agent Skills and RAG Apps - Free and Open Source.
AI Firecrawl
🔥 The API to search, scrape, and interact with the web for AI
AI Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
AI Headroom
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agen
AI CrewAI
Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewA
AI