@port66/agentkit
v0.2.0
Published
Coinbase AgentKit action provider for Port66: search authenticated luxury and collectibles, and buy a listing in one x402 request with USDC on Base
Maintainers
Readme
@port66/agentkit
Port66 for Coinbase AgentKit. Your agent can search Port66, a marketplace for authenticated luxury, streetwear and collectibles, and buy a listing in one x402 request, paying the exact total in USDC on Base straight to the seller.
npm install @port66/agentkitimport { AgentKit, CdpEvmWalletProvider } from "@coinbase/agentkit";
import { port66ActionProvider } from "@port66/agentkit";
const walletProvider = await CdpEvmWalletProvider.configureWithWallet({ networkId: "base-mainnet" });
const agentkit = await AgentKit.from({
walletProvider,
actionProviders: [
// Buying stays off until you set a per-purchase cap in USD.
port66ActionProvider({ maxPurchaseUsd: 200 }),
],
});Actions
| Action | What it does | Cost |
| --- | --- | --- |
| port66_search_listings | Search active listings by words, brand, category, size and max price | Free |
| port66_get_listing | One listing in full, plus whether this agent can buy it and the exact USDC total | Free |
| port66_buy_listing | Buy a listing: pays item + shipping in USDC on Base to the seller and returns the order id and transaction | The listing's price |
How buying works
- Port66 publishes each listing's exact total and the seller's Base wallet.
- The action checks the total against both limits: your
maxPurchaseUsdand themaxPriceUsdthe user agreed to. The lower one applies. - It signs the request with the agent's wallet. Port66 checks that signature, and checks the agent's trust score with Valiron. A brand-new agent waits about a minute for its first rating.
- Port66 answers with an x402 payment request. The action pays it only if the amount and recipient match the published terms.
- Port66 reserves the piece before the payment settles. If the piece sold or its price changed, nothing is charged. Otherwise the USDC goes straight to the seller, Port66 verifies the transfer on chain and records the order under the agent wallet's Port66 account.
Requirements
- An EOA wallet on Base mainnet holding USDC:
CdpEvmWalletProvider,ViemWalletProvideror a Privy server wallet. No ETH is needed, because x402 payments are gasless authorisations. - Smart-contract wallets (
CdpSmartWalletProvider) can search but cannot buy yet, because Port66's per-request identity proof needs an EIP-191 signature.
Options
| Option | Default | |
| --- | --- | --- |
| maxPurchaseUsd | 0 (buying off) | Most the agent may spend on one purchase |
| trustWaitMs | 90000 | How long a new agent waits for Valiron's first rating |
| baseUrl | https://port66.xyz | |
| apiUrl | https://port66-api.vercel.app/api/v1 | |
Also available for LangChain, the OpenAI Agents SDK and ElizaOS: see @port66/sdk.
More for agent builders: port66.xyz/ai · llms.txt
MIT licensed.
