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=0x71Df0eF3bc81022cB3bec0b1a05f52f12bAfcDeD   # 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 Distribution

prism_agentkit-0.1.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

prism_agentkit-0.1.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file prism_agentkit-0.1.1.tar.gz.

File metadata

  • Download URL: prism_agentkit-0.1.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for prism_agentkit-0.1.1.tar.gz
Algorithm Hash digest
SHA256 961c7c9ea49b0e8d406d3bea18e694d31477bfe453aa8a67239028bf2db1c6b0
MD5 8836d8a9c3aaefa248b030c3a31a5e7d
BLAKE2b-256 359354f08445b0d716b33e7fa05f23b352a4950a08d04a2ed00f45ea438fd67c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: prism_agentkit-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for prism_agentkit-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d7e0c118d3a192fe8df3af5caa25d50c1d4796007d385a46eb2b2b7a408a6747
MD5 f29c34ad7b286e31c349b40e26ad729b
BLAKE2b-256 5f64893fe7cb546670c2fc4065f6740b49e5359a39ab7d4e58b2210a5fe82fff

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