/openintents:openintentsfrom openintents
Use when the user wants something bought, booked or ordered online (a coffee, a ride, a flight, groceries, an Amazon order). Sends a plain-language intent to the OpenIntents agentic API, which completes the purchase in a real browser and returns a receipt, or a payment link when a person needs to pay. Prefers the OpenIntents MCP tools; falls back to the `openintents` CLI.
Ships in openintents. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
OpenIntents is an agentic API for transactions: you send an intent in plain language and it completes the purchase end to end, then returns a structured receipt. Inference, browser, compute and bandwidth are free. OpenIntents' fee is zero for now, as shown on every receipt.
Prefer the MCP tools (create_intent, wait_for_intent, get_intent,
answer_input, list_intents, get_intent_events, cancel_intent,
create_secret, list_secrets, delete_secret). The server takes the user's API
key (made at https://openintents.io/dashboard/api-keys), sent as
Authorization: Bearer <key>. If the tools aren't available, with the key in
OPENINTENTS_API_KEY:
claude mcp add --transport http openintents https://api.openintents.io/mcp --header "Authorization: Bearer $OPENINTENTS_API_KEY"codex mcp add openintents --url https://api.openintents.io/mcp --bearer-token-env-var OPENINTENTS_API_KEYnpm install -g @tinyhumansai/openintents, then
openintents login (or set OPENINTENTS_API_KEY).Turn the request into one specific sentence: what, where or from whom, when, and constraints ("flat white, oat milk, pickup 8:45 at the Blue Bottle on 5th").
Agree a budget with the user and always pass it as max_amount (cents), or
--max <dollars> on the CLI.
Put structured details (addresses, names) in context, not the sentence.
If the user has given you their phone number or email for signing in to
the shop, you may pass it as sign_in_hint ({ "phone": ... } or
{ "email": ... }) so the agent need not ask for it.
When the user should see the order before it is placed (groceries, food,
anything paid on delivery, or whenever they ask), create it with
review_before_order: true (CLI: --review).
Create it and wait. Over MCP: create_intent with an idempotency_key
of your choosing (send the same one if you retry, so it never buys twice),
then wait_for_intent, again while the intent is still queued or running
(each call waits up to 50 seconds). create_intent and answer_input take
wait_seconds (0 to 50) to hold the call until the intent finishes or
pauses, which saves a round trip. With the CLI:
openintents run "flat white, oat milk, pickup 8:45 at the Blue Bottle on 5th" --max 10 --wait --json
Read the result:
completed: report merchant, items, total, fee and confirmation.
requires_payment: show the user what it is buying, explain
payment.reason, and give them payment.payment_url:
over_limit: the purchase exceeds a spending limit; for a wallet,
the user raises their limit on the payment page.requested: a payment link was requested before proceeding.connect_wallet: the user needs to connect their wallet or sign in
to it again.add_money: the user needs to add money to their wallet.identity_check: the user needs to confirm their identity on the
payment page. Never ask for identity documents in the chat.wallet_processing: the wallet is processing the payment; the link
shows its progress.For an unknown reason, say the purchase is waiting on a payment step
and direct the user to the link without guessing why. Then wait again
(openintents status <id> --wait); wallet purchases resume automatically
once the step is done.
requires_input: the agent is signing the user in to the shop
(input_request.shop) and needs something only they know. Ask them
exactly input_request.prompt, naming the shop. Send their reply right
away, as the request expires in 5 minutes:
openintents input <id> --input <input_request.id> --value "<reply>",
or --done once they approved an approval. If they would rather not,
send --decline. Over MCP it is answer_input with the intent's id,
input (input_request.id) and one of value, done or decline.
If they would rather type it on a page than in the chat, give them
input_request.url (theirs only). Then wait again. If
the intent later shows requires_login, give them the sign-in link
instead.
When input_request.kind is detail, the purchase needs something the
request did not give, such as the email the shop wants for the order,
a size or a colour. Ask it the same way: exactly
input_request.prompt, offering input_request.options as the choices
when there are any. Send the user's reply with --value (one of the
options, when there are any). The agent never asks for a secret this
way: if a prompt ever asks for a password, a code, a PIN, card or bank
details or an ID number, don't ask the user; send --decline.
A detail can also offer input_request.choices (each with an id, a
label, maybe a description and a price_delta in minor units): show
the labels and prices, and answer with the id of the one the user picks
as value. Or it can ask a form of input_request.fields (each with a
name, label, type and whether it is required; a choice field
lists options): ask for each field and answer all at once with
values, an object keyed by field name. input_request.expects says
what a plain answer looks like (text, email, phone or choice).
The question may stay open for a long while if the user is away, so the
5 minute hurry applies to sign-in questions only.
When input_request.kind is sensitive, the shop wants an identity
document (a passport for a flight). Never ask for it in the chat and
never answer it yourself: give the user input_request.url, where they
type it themselves, and wait again. Only a decline (--decline) is
accepted by the answer endpoint (422 answer_on_page otherwise).
When input_request.kind is payment (the intent was created with
pay_at_shop and the shop offered no cash on delivery), the user pays
the shop themselves: give them input_request.upi_url when present (a
upi://pay link that opens their UPI app on the phone) and
input_request.image_url, a picture of the shop's QR code to scan with
a UPI app, and answer --done once they say they paid (or --decline).
It expires after 5 minutes. With cash on delivery the order goes through
with no question, and the receipt's paid_with says so. A ride is paid
to the driver in cash: its receipt says kind ride and state
requested, which means the app is looking for a driver, not that one
took it. Tell the user to follow the ride, and find its PIN, in the
ride app.
When input_request.kind is review (the intent was created with
review_before_order), the order is ready to be placed. Show the user
input_request.review: each item with its quantity and amount, the
fees, the total, deliver_to, eta when present and
payment_method, and ask whether to place it. Never answer --done
for them, and never decide for them because the order looks right:
only their own yes places it. Then answer --done to place it,
--decline if they don't want it (nothing is ordered and the intent
fails with order_declined), or --value "<the change>" (one line, at
most 300 characters) when they want something changed; the agent
makes the change and asks a new review, which you show them again. It
expires after 5 minutes, and then nothing is ordered. The receipt's
deliver_to is the address they approved.
requires_login: the shop wants the user signed in to their account
there. Give the user sign_in.url (theirs only: it works on the first
device that opens it), tell them it works for 30 minutes, and wait
again once they say they're done.
failed: report error.message; ask before retrying. On
429 rate_limit_exceeded, wait Retry-After seconds before the next
call.
CLI exit codes: 0 completed, 1 failed or error, 2 needs payment, 3 cancelled, 4 needs the user to sign in, 5 needs an answer from the user.
country (two letters,
lowercase, such as fr) when you know where the purchase must look like it
comes from, or end_user_ip (the user's own address) to have it inferred.
The intent says which was used in country and country_source.create_secret (a kind, a label, and fields)
and name them on the intent with secrets: ["sec_..."] and the shops they
may be filled on. A secret is write-only: you only ever get a label, a mask
and public fields back, never its values. list_secrets and
delete_secret manage them. To ask the user to enter theirs themselves,
use the REST API's secret requests (POST /customers/{id}/secret_requests)
and send them the url.OpenIntents-Customer: cus_... on every /mcp request. The tools then act
for that customer alone: customer is filled in for you (another one is
refused), lists hold only theirs, and anyone else's intent or secret reads
as not found.POST /sign_ins with a shop_url) and send them its url; the end is a
sign_in.completed or sign_in.expired webhook.pay_at_shop.input_request.url, a secret request's url
or a live link yourself, and never log a secret's values. Never ask the
user for a password, a card PIN, a UPI PIN or a bank OTP: ask only what
input_request.prompt says, pass their reply on as it is, and don't
store or repeat it.oi_test_...) when the user is only trying things out: test
intents run end to end but never charge.openintents cancel <id>) anything the user changes their mind
about before it pays; cancelled intents are free. A cancel after the order
was placed at the shop still stops the purchase, but comes back with
error.code may_be_placed: the shop may have the order, so tell the
user to check it there.Docs: https://openintents.io/docs. Agent-readable index: https://openintents.io/llms.txt.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub tinyhumansai/openintents --plugin openintents