skills/polymer-pay-cli/SKILL.md
USE THIS SKILL WHEN: the user wants to install polymerpay, authenticate with Polymer Pay, make paid x402 proxy requests from the command line, set up API keys, check their identity, or troubleshoot polymerpay CLI issues. Also trigger when the user mentions polymerpay, polymer-pay login, x402 payments, paid API calls, or wants to call any x402-protected endpoint through the CLI.
npx skillsauth add polymerdao/pay-apis polymer-pay-cliInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Command-line tool for calling x402-protected API endpoints through the Polymer Pay proxy. The proxy handles payment negotiation and settlement automatically — you authenticate, and Polymer Pay charges your account credits.
Check if polymerpay is already installed before installing:
polymerpay --version || npm install -g @polymer-pay.ai/polymerpay
No pre-registration needed. Run polymerpay login and you'll be guided through account creation and authentication in your browser via OAuth device flow.
polymerpay login
This prints a URL and a device code, then opens your browser. If you don't have an account yet, you'll create one during the browser flow. Once approved, credentials are saved to ~/.polymer-pay/credentials.json (file mode 0600). Tokens auto-refresh on subsequent requests.
Check who you're logged in as:
polymerpay whoami
Re-authenticate (force a fresh login even if already logged in):
polymerpay login --force
Log out (revokes tokens and deletes local credentials):
polymerpay logout
If you already have an Polymer Pay account and an API key (from https://app.polymer-pay.ai), you can skip the login step entirely:
{
"headers": {
"Content-Type": "application/json",
"x-polymer-pay-api-key": "{{POLYMER_PAY_API_KEY}}"
}
}
Set it in your environment:
export POLYMER_PAY_API_KEY="your-api-key"
When POLYMER_PAY_API_KEY is set, polymerpay uses it automatically — no polymerpay login needed.
When making a proxy request, polymerpay resolves auth in this order:
POLYMER_PAY_API_KEY environment variable (if set)~/.polymer-pay/credentials.json (auto-refreshes if expired)Base URL: https://pay.polymerlabs.org/proxy/{scheme}/{host}
Fetch data from any x402-protected endpoint.
Pricing: Varies based on upstream endpoint
polymerpay https://api.example.com/v1/resource
The proxy rewrites the URL internally as https://pay.polymerlabs.org/proxy/https/api.example.com/v1/resource, authenticates you, and forwards the request with payment handling.
Send data to an x402-protected endpoint.
Pricing: Varies based on upstream endpoint
polymerpay -X POST \
-H "Content-Type: application/json" \
-d '{"query": "your data"}' \
https://api.example.com/v1/resource
If you pass -d without -X, the method defaults to POST automatically:
polymerpay -d '{"query": "your data"}' https://api.example.com/v1/resource
Add request headers (repeatable).
polymerpay -H "Content-Type: application/json" \
-H "X-Custom: value" \
https://api.example.com/v1/resource
Debug requests with increasing verbosity levels.
# Show response status and headers
polymerpay -v https://api.example.com/v1/resource
# Show full request + response
polymerpay -vv https://api.example.com/v1/resource
POLYMER_PAY_API_KEY for non-interactive paid API calls in CI or cron jobs.polymerpay login handles registration and authentication in one step. No need to create an account separately.POLYMER_PAY_API_KEY in env vars for scripts, CI, and non-interactive agents.-vv — Shows full request and response details when something goes wrong.POLYMER_PAY_API_KEY secure. Credentials at ~/.polymer-pay/credentials.json are stored with restricted file permissions (0600).| Variable | Default | Purpose |
|----------|---------|---------|
| POLYMER_PAY_API_KEY | — | API key for proxy auth (skips OAuth) |
| POLYMER_PAY_PROXY_URL | https://pay.polymerlabs.org/proxy | Override proxy base URL |
| POLYMER_PAY_ISSUER_URL | https://api.polymer-pay.ai | Override OAuth issuer URL |
polymerpay login # authenticate (device flow + registration)
polymerpay login --force # re-authenticate
polymerpay whoami # print current user
polymerpay logout # revoke and clear credentials
polymerpay <url> # GET through proxy
polymerpay -X POST -d <body> <url> # POST through proxy
polymerpay -H "Key: Val" <url> # add headers
polymerpay -v <url> # verbose response
polymerpay -vv <url> # verbose request + response
polymerpay --version # print version
polymerpay --help # show help
development
USE THIS SKILL WHEN: the user wants to use Z.ai's GLM models for chat, translation, image generation, video generation, or web search. Z.ai provides GLM-4.5 and GLM-4.6 with advanced reasoning and agentic capabilities.
development
USE THIS SKILL WHEN: the user wants a quick single-page scrape to markdown or a webpage screenshot. Provides lightweight web scraping and screenshots via x402engine through the Polymer Pay proxy.
data-ai
USE THIS SKILL WHEN: the user wants to generate AI images with FLUX models or create text-in-image with Ideogram. Provides pay-per-use image generation via x402engine through the Polymer Pay proxy.
data-ai
USE THIS SKILL WHEN: the user wants wallet balances, transactions, PnL, ENS resolution, token prices, or transaction simulation. Provides pay-per-use blockchain operations via x402engine through the Polymer Pay proxy.