Piggy for AI agents

Piggy powers loyalty and cashback programs for online stores, letting shoppers earn points and discounts. Ecommerce teams use it to encourage repeat purchases. Connect it once through Arc0, and your agent, or Claude, ChatGPT and Cursor, can use it through one MCP endpoint, limited to what each user approved.

MarketingAPI keyMCP + RESTpiggy.eu
AUDIT LOG · PIGGYPOLICY: acme-support
09:41:07 · claude · u_8f2read
piggy.list_forms
List Forms✓ allowed · 212ms
09:41:08 · claude · u_8f2read
piggy.list_perks
List Perks✓ allowed · 164ms
09:41:09 · claude · u_8f2write
piggy.create_vouchers_batch
Create Vouchers Batch✓ approved · approved by user
09:41:12 · claude · u_8f2destructive
piggy.merge_contacts
Merge Contacts✕ blocked · policy: deny
EVERY PIGGY CALL, ON THE RECORD
01 · USE CASES

What agents do in Piggy.

01

Check a contact's credit balance

Look up a customer's loyalty credit balance before applying it at checkout.

02

Create a batch of vouchers

Generate a batch of discount vouchers for a loyalty campaign.

03

Merge duplicate contacts with approval

Merge two contact records only after confirming they represent the same customer.

02 · ACTIONS

14 Piggy actions, graded by risk.

Every Piggy action is tagged read, write or destructive, so one policy covers the whole app and new actions inherit the right default.

read

6

Look things up. Allowed by default.

  • piggy.list_forms
    List Forms
  • piggy.list_perks
    List Perks
  • piggy.find_voucher_by_code
    Find Voucher By Code
  • piggy.get_contact_auth_token
    Get Contact Auth Token
  • piggy.find_or_create_products
    Find or Create Products
  • piggy.get_contacts_credit_balance
    Get Contact's Credit Balance

write

7

Create and change things. Allow, or ask the user first.

  • piggy.update_bookings
    Update Bookings
  • piggy.create_vouchers_batch
    Create Vouchers Batch
  • piggy.create_credit_reception
    Create Credit Reception
  • piggy.create_contact_attribute
    Create Contact Attribute
  • piggy.update_contact_identifiers
    Update Contact Identifiers
  • piggy.send_contact_verification_email
    Send Contact Verification Email
  • piggy.claim_anonymous_contact
    Claim Anonymous Contact

destructive

1

Delete, cancel or archive. Ask first, or deny outright.

  • piggy.merge_contacts
    Merge Contacts
03 · HOW IT WORKS

Piggy in three steps.

  1. 01Your users connect PiggyThey add their Piggy api key on Arc0 Connect, under your brand. It goes straight into the vault.
  2. 02You set the rulesReads run, writes like “create Vouchers Batch” can wait for the user, and “merge Contacts” can be denied outright.
  3. 03Any agent can actYour agent calls Piggy through the Arc0 SDK or MCP, and so can Claude, ChatGPT and Cursor. Every call lands on the audit log.
POLICY.TS
await arc0.policies.set('piggy', {
  read: 'allow',
  write: 'ask',        // create_vouchers_batch
  destructive: 'deny',  // merge_contacts
})

# Claude Code: the same connection, one URL
$ claude mcp add --transport http arc0 \
    https://mcp.arc0.ai/u/u_8f2
04 · AUTH AND DATA

How Piggy connects.

Users add their Piggy api key on Arc0 Connect. It is encrypted in the vault, never shown to the model, and each user can rotate or revoke it at any time.

The same Piggy connection serves your agent over MCP and your own backend over REST and the proxy, so a user connects once. How Arc0 handles credentials →

AUTH
API key
CREDENTIALS
Per-tenant encrypted vault
MODEL SEES
Results only, never credentials
AUDIT LOG
Every call, on every plan
05 · WORKS WITH

Use Piggy from any agent.

Claude
ChatGPT
Cursor
Codex
VS Code
OpenAI Agents SDK
Claude Agent SDK
Vercel AI SDK
Mastra
LangGraph
07 · FAQ

Piggy and Arc0, answered.

Q01

Can I use Piggy with Claude, ChatGPT or Cursor?

Yes. Connect Piggy to Arc0 once, then add your Arc0 MCP URL to Claude, ChatGPT, Cursor, Claude Code or any other remote-MCP client. Each assistant only gets the Piggy actions you allow.

Q02

How do users connect Piggy?

Users add their Piggy api key on Arc0 Connect. It is encrypted in the vault, never shown to the model, and each user can rotate or revoke it at any time.

Q03

Which Piggy actions can my agent take?

14 in total: 6 read, 7 write and 1 destructive, such as “create Vouchers Batch”. Your policies decide which of them each agent may call.

Q04

Can I stop my agent from deleting things in Piggy?

Yes. Actions like “merge Contacts” are graded destructive. Set destructive actions to deny, or to ask so the user approves each one, and blocked calls still show up on the audit log.

Q05

Can my own backend call Piggy too?

Yes. The same Piggy connection is available over REST and through the Arc0 proxy, so your product and your agent share one connection per user.

Get started

Plug Piggy into your agent.

Your users connect Piggy once, under your brand. Your agent gets 14 actions behind your policies, with every call on the record.

Free to build · MCP + REST · Audit log on every plan