THAMER
Sovereign Bitcoin Wallet

WALLET AI BITCOIN

Your Bitcoin Wallet. Your Keys. Your Engine.

Self-hosted Bitcoin software built for developers, applications, and AI agents.

CREATE WALLET

The Agentic Service Economy: Selling Tasks for Satoshis

permalink THAMER
#ai-agent-factory#bitcoin-payments#developer-tools#openai#wallet-ai-bitcoin

This article explores a proposed developer workflow for WALLET AI BITCOIN (WAB), not an announcement of a shipped AI Agent Factory. Bitcoin can support machine-readable pricing for narrow services such as document extraction, code review, and structured reports.

Where this fits in the architecture

A developer-authored prompt becomes a reviewed service specification. OpenAI may interpret customer input or select a named tool, but a local Go executor validates arguments, enforces operator-defined permissions, and invokes only approved handlers. For Bitcoin interactions, those handlers use the existing Engine HTTP JSON interface; they do not recreate wallet birth, signing rules, or fee policy.

Practical implementation workflow

  1. Define a measurable deliverable.
  1. calculate model and infrastructure cost.
  1. disclose Bitcoin network costs.
  1. design dispute and refund handling.
  1. measure net margin..

A concrete job contract

A useful record includes job_id, service_id, network, expected_sats, payment_address, payment_state, execution_state, result_ref, and timestamps. The operator must define which fields are public, how long data is retained, and who can retry or cancel a job. A seen event can trigger a low-risk service only under an explicit merchant policy; it is not final confirmation.

Example policy boundary

{
  "service_id": "example-task-v1",
  "price_sats": 10000,
  "payment_network": "test",
  "start_when": "confirmed",
  "allowed_tools": ["process_job"],
  "max_runtime_seconds": 90
}

This JSON is an illustrative service manifest, not a current WAB Engine endpoint or a deployable configuration file. In a real system, payment attribution and authorization must be checked server-side.

Security and operational limits

On-chain fees can make very small payments uneconomic; Lightning is not an established WAB Engine capability.

Never place BTC KEY or an OpenAI API key in the prompt, browser, published source example, generated .so, or customer-facing response. The personal PAY.SO role may expose RECEIVE, BALANCE, and owner-approved SEND; merchant-facing SELLER.SO is watch-only and must not spend. Any proposed agent factory must enforce these boundaries independently of model output.

Cost and settlement considerations

A Bitcoin payment received by a merchant is distinct from a wallet SEND. Under the signed per-wallet WAB fee law described for the Engine, a SEND has a 10% inclusive budget: the recipient receives 90% of the sender total, the miner fee is paid from the 10% portion, and the remaining amount goes to the software treasury, subject to dust and fee limits. This rule should not be misrepresented as a 10% surcharge on every incoming payment. For very small jobs, assess on-chain transaction costs and user experience before choosing a price.

Related reading

https://thamer.org/blog/why-paid-ai-agent-needs-deterministic-go-executor
https://thamer.org/learn/create-bitcoin-payment-request-ai-job

Editorial note

This is a developer education and design article. Named components such as a prompt-to-agent Factory, paid fulfillment worker, and generated service packages are proposed implementation patterns unless independently documented as released and tested.

Questions & Answers

Explore all questions →

Latest from the Lab

THAMER illustrated developer portrait and signature

ABOUT THE DEVELOPER

Independent Software Developer specializing in Bitcoin Script, Golang, and AI Agents.

Software engineering · Independent research · Open-source projects