prism-agentkit
A Coinbase AgentKit action provider that lets an agent rent and run on real NVIDIA GPUs through Prism Network. One pip install gives your AgentKit agent GPU actions that work in LangChain, LangGraph, and any other AgentKit adapter.
The provider carries its own funded wallet (PRISM_AGENT_KEY) and settles onchain in USDG. It never touches the agent's primary wallet, so it composes with any AgentKit wallet provider you already run.
Install
pip install prism-agentkit
Actions
budget- the spending limits in force and what the wallet has spent in the last 24 hours.wallet- the Prism agent's address and USDG/ETH balances.list_gpus- GPUs available to rent now, with model, VRAM, and price per hour.lease_and_run- rent a GPU, run a command, return the output (one shot, pays onchain).run- run another command on a GPU already leased this session.end_lease- release a lease; billing stops at the release, and the unused deposit returns after settlement.
Use
import os
from coinbase_agentkit import (
AgentKit, AgentKitConfig,
EthAccountWalletProvider, EthAccountWalletProviderConfig,
)
from coinbase_agentkit_langchain import get_langchain_tools
from eth_account import Account
from prism_agentkit import prism_action_provider
# Prism pays with its own wallet (PRISM_AGENT_KEY). AgentKit still wants a wallet
# provider in its config; Prism ignores it, so pass whichever you already use.
wallet = EthAccountWalletProvider(EthAccountWalletProviderConfig(
account=Account.create(), chain_id="8453", rpc_url="https://mainnet.base.org"))
kit = AgentKit(AgentKitConfig(
wallet_provider=wallet,
action_providers=[prism_action_provider()],
))
tools = get_langchain_tools(kit)
tools are standard LangChain tools; hand them to a LangGraph agent (see examples/langgraph_gpu_agent.py), a Vercel AI agent, or any AgentKit adapter.
Configure
Set the Prism agent's wallet:
export PRISM_AGENT_KEY=0x... # agent wallet private key, funded with USDG + gas on Robinhood Chain
export PRISM_ESCROW=0xfD4228eEEfC49e4b76A0CD40af9fdd546220B2FD # optional, this is the default
Set what it may spend:
export PRISM_MAX_USDG=1 # per lease or generation; the default
export PRISM_DAILY_BUDGET_USDG=5 # rolling 24 hours; the default. 0 removes it
export PRISM_LEDGER_PATH=~/.prism/spend.json # optional, this is the default
The real ceiling is the wallet balance, so fund it with what you are willing to
lose. These limits are the second line, and they exist because a max_usdg on
one call says nothing about the fortieth in a row. A model can pass max_usdg
to lower the per-call cap for a single lease; it cannot raise it. The MCP server
and the Python SDK write the same ledger, so one wallet has one daily ceiling
however many clients are holding it.
The wallet needs USDG (0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168) and Robinhood-Chain ETH for gas. See the Prism SDK for how to fund a fresh wallet.
Notes
lease_and_runblocks while the machine provisions, usually one to four minutes. Give your agent a long tool-call timeout.- AgentKit emits a harmless
cca-lite.coinbase.comanalytics warning when it runs offline; it does not affect the actions.
Metadata
Release files for prism-agentkit 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| prism_agentkit-0.1.3.tar.gz | 6.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| prism_agentkit-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.2 kB
Release files / prism_agentkit-0.1.3.tar.gz
| Download URL | prism_agentkit-0.1.3.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
51b18e54a1303446c060546595409fcfbe3fac9f7178f955e83b1399b8d54eef
|
|
BLAKE2b-256 checksum How to use checksums |
913f25e0ecd4a0f3d0b6055104149c76c2fe10bd36c32216ccfb3de5d659c726
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / prism_agentkit-0.1.3-py3-none-any.whl
| Download URL | prism_agentkit-0.1.3-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
79d7c6f964a053646b3aaab406bcdd85decd3e19d6ae4ffa80cf58ec8453773a
|
|
BLAKE2b-256 checksum How to use checksums |
1fe0b646616e7d7166338f6d84cb86fd125b08b1c3dc9476b8c131a6e602e97b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|