@agentvault/playwright

Private test build — not on npm. Install it straight from this site.

Install

With Bun:

bun add https://this-site.invalid/sdk/agentvault-playwright.tgz

With npm / pnpm / yarn:

npm install https://this-site.invalid/sdk/agentvault-playwright.tgz

Configure

Your agent needs three environment variables. Do not fill these in by hand — two of them are values for this deployment that you have no way to look up. Dashboard → API Keys prints the whole block with your key and both URLs already filled in, ready to copy. Already have a key? The same page has an Agent setup section with both URLs for this deployment — the key is shown only once, when it is created, so paste your own in place of the placeholder.

For reference, the shape is:

export SELF_AGENT_PAY_API_KEY=av_...
export SELF_AGENT_PAY_PROXY_URL=wss://<proxy host>/v1
export SELF_AGENT_PAY_API_URL=https://<deployment>.convex.site

The proxy host and the Convex deployment URL are properties of the deployment you signed up on, not something you choose. If SELF_AGENT_PAY_PROXY_URL is unset the SDK quietly targets a localhost proxy and every token resolve fails with nothing obviously wrong, which is why this page sends you to the generated block instead of a template.

Use

import { chromium, listTokens } from "@agentvault/playwright";

const catalog = await listTokens();
const browser = await chromium.launch();
const page = await browser.newPage();
// fill checkout forms with catalog tokens; the proxy substitutes real values
await browser.close();

Full API, the token grammar, and the rules of engagement are documented in the package README (bundled in the tarball). Questions? Ping the team.