Skip to main content

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

  • 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 up to max_usdg).
  • run - run another command on a GPU already leased this session.
  • end_lease - release a lease's local session.

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=0x62C042265991bEa17B07229322A01850974626dA   # optional, this is the default

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_run blocks while the machine provisions, usually one to four minutes. Give your agent a long tool-call timeout.
  • AgentKit emits a harmless cca-lite.coinbase.com analytics warning when it runs offline; it does not affect the actions.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prism_agentkit-0.1.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file prism_agentkit-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: prism_agentkit-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for prism_agentkit-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7913233083c0f6270fc310d9639e9efef38fa017f4ff228f30f7d94ea7026558
MD5 1c9e89e76be86dc4275815e9bf8a3893
BLAKE2b-256 a6097f8698c1bcf40f508f2da5434e60c04cc02a59b238e2b3902c2e663bb690

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page