TESI Agent API Quickstart (Compact Guide) Full CLI edge-case reference: https://toolsenabled.ai/agents/reference.txt Drop-in Agent Skill (Markdown): https://toolsenabled.ai/agents/SKILL.md MCP Registry Manifest (JSON): https://toolsenabled.ai/agents/mcp-server.json Well-known MCP discovery: https://toolsenabled.ai/.well-known/mcp/server.json Tested project walkthrough: https://toolsenabled.ai/agents/handoff-tested-project/ OpenAPI 3.1.1 specification: https://toolsenabled.ai/agents/openapi.yaml 1. WHAT TESI OFFERS EXTERNAL AGENTS TESI runs two modes on each bearer key's isolated Linux computer (1 vCPU, 2 GB RAM, 4 GB disk): - Ask (POST /api/v1/agents/chat): Read-only analysis, verification, or direct answers. - Work (POST /api/v1/agents/work): Complete tested software projects and verifiable deliverables (runnable services + tests, clean-room download verification, cleaned CSVs, specification audits) returned in reply with SHA-256 verification. When TESI is a strong fit: - Self-contained coding, data, or document tasks with explicit acceptance criteria you can run or check locally. - Isolated execution outside the caller's host sandbox, with deterministic pre-spend credit quotes and crash-safe receipt recovery. When TESI is NOT a fit: - Sub-100ms token-streaming autocomplete or raw model pass-through. - Tasks needing unexportable secrets inside a private VPC. - Unattended credit-card billing without a human purchaser approving Stripe Checkout. Prepaid USD credit packs start at $10 USD (1000 cents) and meter token usage at published TESI rates (https://toolsenabled.ai/pricing/) with no monthly subscription. 2. CONNECT IN 60 SECONDS (OFFICIAL MCP SERVER OR SKILL) Download and verify the zero-dependency Python 3.10+ stdio MCP server: curl -fsS https://toolsenabled.ai/agents/tesi-agent-mcp.py.txt -o tesi-agent-mcp.py curl -fsS https://toolsenabled.ai/api/v1/agents/quickstart | python3 -I -c 'import hashlib,json,pathlib,sys; d=json.load(sys.stdin)["mcpServer"]["sha256"]; sys.exit(0 if hashlib.sha256(pathlib.Path("tesi-agent-mcp.py").read_bytes()).hexdigest()==d else 1)' python3 -I tesi-agent-mcp.py --self-check python3 -I tesi-agent-mcp.py --print-config claude mcp add --transport stdio tesi -- python3 -I ./tesi-agent-mcp.py codex mcp add tesi -- python3 -I ./tesi-agent-mcp.py MCP tools (12), resources (4) & prompts (4): - Read-only / free tools: tesi_discover, tesi_quote (supports local sourceDir packing), tesi_shortlist_work, tesi_balance, tesi_usage, tesi_plan_topup, tesi_receipt (supports extractFilesTo) - Funding & opaque key custody (never prints raw tesi_ak_...): tesi_prepare_purchase, tesi_claim_key, tesi_prepare_topup - Paid execution (crash-safe requestId + TESI-Topup-Mode: manual): tesi_ask, tesi_work (supports sourceDir + extractFilesTo) - Resources: tesi://guide/decision-rubric, tesi://status/local-custody, tesi://catalog/quickstart, tesi://guide/skill - Prompts: commission-tested-project, patch-local-codebase, verify-public-download, reconcile-csv-ledgers 3. DISCOVER & VERIFY BEFORE FUNDING (FREE, NO API KEY) Compact discovery JSON (packs, modes, efforts, MCP/Skill hashes, Work starters): GET https://toolsenabled.ai/api/v1/agents/quickstart Full offer catalog (purchaser handoff, starter templates, Python client argv): GET https://toolsenabled.ai/api/v1/agents Download and verify the standalone Python receipt/execution client: curl -fsS https://toolsenabled.ai/agents/tesi-receipt.py.txt -o tesi-receipt.py python3 -I tesi-receipt.py --verify-public Compare Work starters against a planned budget (or an existing key file) before spending: python3 -I tesi-receipt.py --shortlist-work --budget-credits 0.001 python3 -I tesi-receipt.py --key-file ./tesi-purchase/key.json --shortlist-work Reproduce the free published newsletter service sample (simulated billing + local mailbox): ( set -e cd "$(mktemp -d)" base=https://toolsenabled.ai/agents/examples curl -fsS "$base/newsletter.zip" -o newsletter.zip curl -fsS "$base/newsletter-replay.py.txt" -o newsletter-replay.py curl -fsS "$base/newsletter-proof.json" -o expected.json sha256sum -c <<'HASHES' 561d8335e9924808711f6af4d69616aaeef0ba3bb9898906eb4534c1a7307d21 newsletter.zip c0f71dcff6a681fad9507f029ae4aff9f2a84ad7ef4adfeb840a05180a47443a newsletter-replay.py e9f0ec1f19f1d166aff11bf27a1bdccc2e0f97bda5e590c1044cf702195a3366 expected.json HASHES python3 -I -B newsletter-replay.py newsletter.zip > actual.json jq -e -s 'length == 2 and .[0] == .[1]' expected.json actual.json ) 4. FUND & CLAIM A REUSABLE BEARER KEY (tesi_ak_...) Option A — Recoverable API purchase (0700 ./tesi-purchase directory via tesi-buy.py): curl -fsS https://toolsenabled.ai/agents/tesi-buy.py.txt -o tesi-buy.py python3 -I tesi-buy.py quote --amount-cents 1000 python3 -I tesi-buy.py draft ./tesi-purchase --amount-cents 1000 python3 -I tesi-buy.py checkout ./tesi-purchase # Share checkoutUrl with the human purchaser. After Stripe payment settles: python3 -I tesi-buy.py claim ./tesi-purchase python3 -I tesi-buy.py confirm ./tesi-purchase Option B — Promotional code (no card required; reads TESI_GIFT_CODE without exposing secrets in argv/stdout): python3 -I tesi-buy.py preview-code python3 -I tesi-buy.py redeem-code ./tesi-purchase Option C — Browser-purchased key (loaded privately in TESI_API_KEY): python3 -I tesi-receipt.py --file ask.json --check-credit --compare-key-balance python3 -I tesi-receipt.py --file ask.json --check-credit --compare-key-balance --refresh python3 -I tesi-receipt.py --file ask.json --plan-topup python3 -I tesi-receipt.py --file ask.json --submit --no-checkout --wait 120 python3 -I tesi-receipt.py --file ask.json --wait 120 5. PREPARE, QUOTE, SUBMIT & RECOVER ASK OR WORK Prepare local drafts with fresh mw_... request IDs (free, offline): python3 -I tesi-receipt.py --file ask.json --prepare-ask python3 -I tesi-receipt.py --file ask.json --prepare-ask --message-stdin python3 -I tesi-receipt.py --file work.json --prepare-work csv python3 -I tesi-receipt.py --file work.json --prepare-work delivery-check python3 -I tesi-receipt.py --file work.json --prepare-work reconcile python3 -I tesi-receipt.py --file work.json --prepare-work ui-prototype python3 -I tesi-receipt.py --file work.json --pack-project ./src --prompt "Add daily CSV export and unit tests" python3 -I tesi-receipt.py --extract-files ./delivered --reply-file reply.md python3 -I tesi-receipt.py --file work-next.json --copy-brief work.json Validate format and quote starting credit (only UTF-8 byte count is sent for --check-credit): python3 -I tesi-receipt.py --file work.json --validate python3 -I tesi-receipt.py --file work.json --server-check python3 -I tesi-receipt.py --file work.json --check-credit python3 -I tesi-receipt.py --file work.json --review-pack smallest python3 -I tesi-receipt.py --file work.json --review-pack 2500 python3 -I tesi-receipt.py --batch-credit work.json work-next.json Submit paid Work with manual top-up protection (never auto-opens Checkout on 402): python3 -I tesi-receipt.py --key-file ./tesi-purchase/key.json --file work.json --submit --no-checkout --wait 120 Recover a reply after a dropped connection or export a verified offline ZIP bundle: python3 -I tesi-receipt.py --key-file ./tesi-purchase/key.json --file work.json --wait 120 python3 -I tesi-receipt.py --key-file ./tesi-purchase/key.json --file work.json --metadata-only python3 -I tesi-receipt.py --key-file ./tesi-purchase/key.json --file work.json --wait 120 --reply-bundle work-reply.zip python3 -I tesi-receipt.py --verify-reply-bundle work-reply.zip python3 -I tesi-receipt.py --key-file ./tesi-purchase/key.json --receipts --mode work --limit 5 6. LOCAL ACCEPTANCE VERIFICATION (CSV STARTER & OWN CSV) Download check-sku.py from workStarters[id="csv"].referenceCheck.url and verify its SHA-256: python3 -I check-sku.py result.csv python3 -I check-sku.py sku-expected.csv result.csv python3 -I check-sku.py result.csv --report report.json python3 -I check-sku.py --input input.csv --preview-counts python3 -I check-sku.py --input input.csv --preview-checks python3 -I check-sku.py --input input.csv --draft-work python3 -I check-sku.py --input input.csv result.csv --report report.json 7. CREDITS, SETTLED USAGE & TOP-UPS python3 -I tesi-receipt.py --key-file ./tesi-purchase/key.json --credits python3 -I tesi-receipt.py --key-file ./tesi-purchase/key.json --credits --window-hours 24 python3 -I tesi-receipt.py --key-file ./tesi-purchase/key.json --credits --refresh python3 -I tesi-receipt.py --key-file ./tesi-purchase/key.json --file work.json --plan-topup python3 -I tesi-receipt.py --key-file ./tesi-purchase/key.json --recover-topup 1000 Full CLI reference: https://toolsenabled.ai/agents/reference.txt Full HTTP wire examples: https://toolsenabled.ai/llms-full.txt Terms: https://toolsenabled.ai/free-and-agent-terms/ Support: support@toolsenabled.ai