Acp Cart logo

Acp Cart

Organization
OrcaQubits
acp-cart

Implement the ACP Cart API — the pre-checkout REST surface for collecting line items without payment configuration, covering create, retrieve, full-replacement update, and cancel, plus estimated totals, `continue_url`, and expiry. Use when building ACP cart sessions ahead of an agentic checkout.

Overview

PublisherOrcaQubits
Repositoryagentic-commerce-skills-plugins
Skill nameacp-cart
Stars
40
Forks
17
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by OrcaQubits on GitHub. Read the source before you install it.

Installation

Install the Acp Cart AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/OrcaQubits/agentic-commerce-skills-plugins/tree/main/acp-agentic-commerce/skills/acp-cart
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/OrcaQubits/agentic-commerce-skills-plugins.git /tmp/agentic-commerce-skills-plugins
mkdir -p .claude/skills
cp -r /tmp/agentic-commerce-skills-plugins/acp-agentic-commerce/skills/acp-cart .claude/skills/acp-cart
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Acp Cart in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Acp Cart on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Acp Cart is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

ACP Cart API

Before writing code

Fetch live spec — the Cart API arrived in the 2026-04-17 release, so anything older will not describe it:

  1. Fetch https://github.com/agentic-commerce-protocol/agentic-commerce-protocol/releases to identify the current spec version.
  2. Fetch the OpenAPI document for that version: spec/<version>/openapi/openapi.cart.yaml in the repo. This is authoritative for paths, headers, and status codes.
  3. Fetch spec/<version>/json-schema/schema.cart.json for the Cart object schema.
  4. Web-search site:developers.openai.com commerce cart for narrative guidance.

Never write the request/response shapes from memory — read the OpenAPI document.

Conceptual Architecture

What Cart is for

A lightweight pre-checkout phase for item collection, with:

  • no payment configuration,
  • no capability negotiation,
  • no status lifecycle.

Checkout carries all of that. Cart deliberately carries none of it, so an agent can assemble a basket cheaply while the buyer is still deciding.

Endpoints

MethodPathOperation
POST/cartscreateCart — returns 201
GET/carts/{id}getCart
PUT/carts/{id}updateCart
POST/carts/{id}/cancelcancelCart

Update is full replacement

The agent MUST send the complete desired cart state. The provided line_items replace the existing cart contents.

This is the single most important behaviour to get right. PUT /carts/{id} is not a patch. Sending one changed line item silently discards the rest of the basket.

Cancel semantics

cancelCart returns the cart state before deletion, so the caller gets a final snapshot. Subsequent operations on that cart ID should return 404.

getCart also returns 404 when the cart does not exist, has expired, or was cancelled — these are indistinguishable to the caller by design.

Headers

Cart uses the standard ACP header set. Authorization (Bearer API key), Content-Type, and API-Version are required; Accept-Language, Idempotency-Key, and Request-Id are optional but you should send them.

Send Idempotency-Key on every mutating call — create, update, and cancel all accept it, and agents retry.

Cart object

  • id
  • line_items — each with id, an item (id, name, unit_amount), quantity, and line-level totals
  • currency
  • totals — an array of typed entries (subtotal, total, …), not a flat object
  • continue_url — hand-off link into the seller's own surface
  • expires_at

Amounts are integers in the currency's minor unit (12000 = $120.00). Never send a decimal.

Availability failures

When all requested items are unavailable, the seller MAY return 422 with type: invalid_request, code: out_of_stock rather than creating a cart. Handle 422 distinctly from 400 — it means "understood, but nothing purchasable", which is a different remediation for an agent than a malformed request.

Implementation Guidance

  • Treat totals as an ordered array of typed entries and look up by type; do not index positionally.
  • Always send the full line_items set on update. If your client holds a partial view of the cart, GET first.
  • Surface continue_url to the buyer — it is the escape hatch from agent to seller-owned checkout.
  • Honour expires_at and return 404 after it passes rather than serving a stale cart.
  • Relates to acp-checkout-rest (the next phase) and acp-capability-negotiation (which Cart deliberately skips).

Frequently asked questions

What does the Acp Cart AI skill do?

Implement the ACP Cart API — the pre-checkout REST surface for collecting line items without payment configuration, covering create, retrieve, full-replacement update, and cancel, plus estimated totals, `continue_url`, and expiry. Use when building ACP cart sessions ahead of an agentic checkout.

Why use Acp Cart on TypingMind?

Because you install it once and use it with any model. Acp Cart is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Acp Cart in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/OrcaQubits/agentic-commerce-skills-plugins/tree/main/acp-agentic-commerce/skills/acp-cart. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Acp Cart?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Acp Cart?

As many as you like. As long as a model supports skills, you can use Acp Cart with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Acp Cart AI skill free?

Yes. It is published on GitHub by OrcaQubits under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇