GAME SDK plugin for OneShot real-world AI agent tools — 52 tools
pip install game-plugin-oneshot==0.20.1 Copy PIP instructions
A GAME SDK plugin that gives Virtuals Protocol agents OneShot's 52 real-world tools plus additional tools from the lookup manifest: email, SMS, calls, research, enrichment, commerce, website builds. Paid tools charge USDC from your wallet on Base Mainnet, so fund it first.
pip install game-plugin-oneshot Quick Start import os from game_sdk.game.agent import Agent from game_plugin_oneshot import OneShotPlugin plugin = OneShotPlugin( private_key=os.environ["WALLET_PRIVATE_KEY"], ) agent = Agent( api_key=os.environ["GAME_API_KEY"], name="my-agent", agent_description="An agent that can interact with the real world", ) agent.add_worker(plugin.get_worker()) agent.run() Access-token sessions Hosted GAME agents that should not hold a wallet key use a delegated token instead:
import os from game_plugin_oneshot import OneShotPlugin plugin = OneShotPlugin(access_token=os.environ["ONESHOT_ACCESS_TOKEN"]) # Inside an async application: # plugin = await OneShotPlugin.acreate(access_token=os.environ["ONESHOT_ACCESS_TOKEN"]) Create the token and set budgets from a wallet session. Calls spend prepaid credits within the stored caps. Tokens cannot manage tokens, raise budgets, or sign USDC payments. Refill credits from a wallet session with OneShotClient.top_up_credits(amount). See the hosted setup guide.
The plugin exposes 52 OneShot tools plus additional oneshot_ functions from the lookup manifest. The lookup tools are read from the generated manifest in oneshot-python (oneshot.lookup_tools()), so a new lookup tool appears here without a plugin change. Core tools:
Paid tools are priced in USDC via x402. Current rates are on the Pricing page.
Paid tools deduct USDC from your wallet on Base Mainnet, settled with the x402 payment protocol. Fund the wallet with USDC first.
Read tools (inbox, SMS inbox, notifications, balance) send a signed EIP-712 read proof (x-agent-proof) so the API can verify you control the X-Agent-ID wallet before returning private data. The underlying oneshot-python client handles this automatically. It requires oneshot-python >= 0.18.0, which is already the dependency floor.
Structured input goes in as strings, because GAME Argument supports only scalar types. commerce_buy, build, and update_build take JSON strings, and list fields on people_search take comma-separated values:
# The agent will generate these automatically, but for manual testing: import json shipping = json.dumps({ "first_name": "John", "last_name": "Doe", "street": "123 Main St", "city": "Austin", "state": "TX", "zip_code": "78701", "phone": "+15551234567", }) product = json.dumps({ "name": "Acme SaaS", "description": "Project management for teams", }) Configuration Parameter Default Description private_key (required) Hex-encoded Ethereum private key base_url None Override API URL budgets None Server-enforced spend cap, e.g. {"daily": 50, "per_transaction": 5} alert_email None Email for budget alerts LinkedIn connection recovery If the active account list is empty or an account is connection_deleted or revoked, ask the human to use oneshot_linkedin_connect and authorize fresh grants. An existing account with reconnect_required must be reconnected through the owning application. Reconnect and revoke are deliberately not agent tools. Do not create a new connection automatically after authentication failures or timeouts.
person_find, person_profile, and person_dossier accept include_phone, off by default. It adds the per-person add-on listed on the pricing page × the requested search limit (default 100) for a search, or once for profile/dossier, for up to that many people with no promised hit. Existing source numbers and published business or record numbers remain available without opting in. Fallbacks and callbacks cost nothing extra; a completed no-match is charged and a failed job is refunded. GAME accepts the string "true" or "false". The full quote is checked before payment.
Plan vehicle routes, pack items into bins, or schedule jobs on resources, returning constraint checks and conflicts. Use oneshot_solve with problem: "routing" and a routing argument containing vehicles, stops and an objective, problem: "packing" and a packing argument containing variant (bin or knapsack), dimensions, bins and items, or problem: "schedule" and a schedule argument containing jobs, resources and an objective. Encode the matching problem block as a JSON object string.
See Solve for input examples, results and limits.
Use oneshot_predict; encode the matching model block as a JSON object string. Supports model: "simulation" with a simulation block of named distributions and arithmetic outputs, or model: "forecast" with a forecast block containing a time series and horizon. Returns uncertainty ranges and consistency checks.
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.




