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.0.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.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: prism_agentkit-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 7e86673054eb5d97d32fa2dd64e7abea676a61250ccc3f91d2801ca43ee299f9
MD5 5c09cee7d62f435fe212171c1e67c43e
BLAKE2b-256 056d6b29543d3944334f9cea41935663b74cf22df29f9c353b0a2b1652d81ebe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: prism_agentkit-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d5d58ce713fab84da47d4bdb367149f5365a89ef4d0f941e670331a4975a4b2c
MD5 2ec79a0402bf3dc27b11a13b0117ebec
BLAKE2b-256 d47895dfc2640cf0e60cee86d14da1d92071abb10a2c8a364a1e5cf5336ba734

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