Add a buy button
Load checkout.js and call OttoAuth.buy. OttoAuth handles sign-in, confirmation, files, and fulfillment after the click.
One buy-button helper for web apps, one service endpoint for server-side agents, a required spend cap for real orders, and Markdown docs that coding agents can read directly.
Works with Codex, Cursor, Claude Code, and any agent that can read Markdown URLs.
Load checkout.js and call OttoAuth.buy. OttoAuth handles sign-in, confirmation, files, and fulfillment after the click.
Paste it into Codex, Cursor, Claude Code, or another coding agent. It tells the agent exactly which OttoAuth docs to read.
Server-side agents can submit compact work orders to the general order endpoint with dashboard-generated credentials.
<script src="https://ottoauth.vercel.app/checkout.js"></script>
<button id="buy">Buy</button>
<script>
buy.onclick = () => OttoAuth.buy({
task: "Print this T-shirt design on one medium natural cotton tee.",
max: 2000,
files: ["#shirtSvg"]
});
</script>curl -s https://ottoauth.vercel.app/llms.txt
curl -s https://ottoauth.vercel.app/skill.md
curl -s https://ottoauth.vercel.app/api/services
curl -s https://ottoauth.vercel.app/api/services/order/docs