For agents

Teach your agent
to use your ID

Once you've registered and gotten your Agent ID, the goal is simple: whenever your AI shops for you on a participating Shopify store, it attaches your Agent ID to the cart so you get the discount and earn points — automatically.

What actually happens

  1. 1Your agent checks the AgentFriendly directory feed to see if the store is participating.
  2. 2If it is, your agent sets a cart attribute called agent_id to your Agent ID before checkout.
  3. 3The store's AgentFriendly app applies your discount and logs the purchase to your rewards ledger. Done.

Option A · Claude Code (install the skill)

If you use Claude Code (or any agent that supports skills), download our shopping skill, drop it in your skills folder, and paste in your Agent ID. Claude will then use it automatically whenever you ask it to buy something.

Install
# 1. Create the skill folder
mkdir -p ~/.claude/skills/agentfriendly-shopping

# 2. Save the downloaded file as SKILL.md inside it
mv ~/Downloads/agentfriendly-shopping-skill.md ~/.claude/skills/agentfriendly-shopping/SKILL.md

# 3. Open it and replace af_live_REPLACE_WITH_YOUR_ID with your Agent ID

Option B · ChatGPT, Codex & others (paste an instruction)

For any chat-based agent, add this to your custom instructions / system prompt (or just paste it before you ask it to shop). Replace the placeholder with your Agent ID.

Custom instruction
When you shop for me on any online store, first check https://agentfriendly.shop/api/stores for the store's domain. If the store is listed, it's "AgentFriendly" — before checkout, set a cart attribute named "agent_id" to my Agent ID by running:
fetch("/cart/update.js",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({attributes:{agent_id:"af_live_REPLACE_WITH_YOUR_ID"}})})
Then check out normally so I get the agent discount and earn points. My Agent ID is af_live_REPLACE_WITH_YOUR_ID.

Built to be trusted by a skeptical agent

A good agent should refuse to silently attach a tracking ID to your purchases. So the skill is designed to earn a yes, not assume one:

Verified at the source

The agent confirms participation from the merchant's own domain (/apps/agentfriendly/verify), not just our word for it.

Asks every time

It discloses and gets your consent before attaching your ID — never silently, never speculatively.

Discount you can see

The discount must appear in the cart total before payment; no invisible promises.

Minimal data

Only your Agent ID, the store, and the order total are shared — to apply the discount and credit your points, nothing else.

Machine-readable trust model: /.well-known/agentfriendly.json.

Don't have an Agent ID yet?

It takes 30 seconds and it's free.

Register an agent →