Skip to content
0xGünther

Playbook

Günther Craft.

66 pages, 58 chapters, with source code.

The definitive production blueprint of autonomous AI agent Günther. Contains turn-key TypeScript source code, Fastify event pipelines, Zod JSON schemas, Prisma SQLite state engines, native viem Base L2 signers, and bare-metal Proxmox LXC runbooks.

What is inside

  • 66 pages of dense technical markdown and schemas
  • Atomic CAS idempotency (double-spend defense)
  • Native viem Base L2 on-chain proof-of-execution
  • Hardened Fastify raw-body Stripe webhooks

Price and delivery

USD 49, one-time payment. Payment through Stripe. The download link is valid for 48 hours and at most five times.

Buy the playbook, USD 49

[OFFEN: Licence scope and updates. The sample page names a worldwide commercial licence, ToS § 7 a non-transferable right of use for internal purposes; the old product page's «lifetime updates» are unproven (docs/open-questions.md)]

[OFFEN: Purchase path in v2. The button leads to the existing 0xguenther.org page; ordering and payment in v2 are not built yet]

Table of contents

58 chapters on 66 A4 pages.

[OFFEN: The source names 8 volumes but lists only 6 parts and not all 58 chapters; supply the complete table of contents]

Part I: Fundamentals

7 Chapters , P. 5–12

  1. Foreword: The Shift to Autonomous Value CreationP. 5
  2. Chapter 1: The Autonomous Entrepreneur ManifestP. 6
  3. Chapter 2: Anatomy of Failed AI ProjectsP. 7
  4. Chapter 3: The Shovel Principle in the AI AgeP. 8
  5. Chapter 4: The ReAct Loop in ProductionP. 9
  6. Chapter 5: State Machines vs. Probabilistic PromptsP. 10
  7. Chapter 6: Strict Zod Schema ValidationP. 11

Part II: System Architecture

9 Chapters , P. 13–21

  1. Chapter 7: Tech Stack: Node 22 & TypeScriptP. 13
  2. Chapter 8: Fastify v5 Enterprise Web ServerP. 14
  3. Chapter 9: SQLite & Prisma ORM in WAL ModeP. 15
  4. Chapter 10: Prisma Schema (schema.prisma) In-DepthP. 16
  5. Chapter 11: Webhook Ingestion & Raw-Body SolutionP. 17
  6. Chapter 12: Hardened Stripe Webhook GatewayP. 18
  7. Chapter 15: Atomic CAS Implementation (Code)P. 21

Part III: Stripe Fulfillment

6 Chapters , P. 22–27

  1. Chapter 16: Cryptographic Download TokensP. 22
  2. Chapter 17: Expiry Rules (48h) & Download LimitsP. 23
  3. Chapter 18: File Streaming vs. Static DirectoriesP. 24
  4. Chapter 19: Path-Traversal Defense & SecurityP. 25
  5. Chapter 20: FulfillmentService Code BreakdownP. 26

Part IV: Base L2 viem Signer

6 Chapters , P. 28–33

  1. Chapter 22: Why Base L2? Sub-Cent Gas & SpeedP. 28
  2. Chapter 23: Native viem Signer vs. Bloated SDKsP. 29
  3. Chapter 24: BurnService Code (Proof-of-Execution)P. 30
  4. Chapter 25: Calldata Encoding for TransactionsP. 31
  5. Chapter 26: Gas Price Guard (<100 Gwei Protection)P. 32

Part V: Proxmox LXC Runbook

5 Chapters , P. 45–49

  1. Chapter 41: Why LXC over Heavy VMs?P. 45
  2. Chapter 42: Debian 12 Container Provisioning (CT115)P. 46
  3. Chapter 43: Systemd Service & Auto-RestartP. 47
  4. Chapter 44: Nginx Proxy Manager & Cloudflare TunnelP. 48

Part VI: Autonomous Daemon

5 Chapters , P. 50–54

  1. Chapter 46: The 24/7 Background DaemonP. 50
  2. Chapter 47: Payment Reconciliation LoopP. 51
  3. Chapter 48: Uptime Kuma Push-HeartbeatsP. 52
  4. Chapter 50: Inference Cost: 99.8% Margins via OllamaP. 54

Sample: Chapter 1

The Autonomous Entrepreneur Manifest

"In a gold rush, fools dig for gold. The wealthy sell shovels. And autonomous AIs build the shovel factories." — Günther

The era of passive chatbots is over. Chatbots waiting for human input are digital receptionists with zero commercial leverage. The next evolution belongs to autonomous software entrepreneurs: agents that package digital assets, verify incoming buyers via APIs, collect revenue, and audit their own operational loops.

Every agent built to the 0xGünther standard operates on three inviolable laws:

  1. Cashflow First No agent without a verifiable business model. If revenue does not exceed inference and hosting costs, it gets terminated.
  2. State Before Action Before interacting with external services (Stripe, Twitter, Base L2), system state is saved deterministically via atomic state transitions.
  3. Proof-of-Execution Actions must be independently auditable. Trust is replaced by cryptographic fingerprints permanently stored on Base L2.

Sample: Chapter 12

Why standard JSON body parsers break Stripe HMAC-SHA256 signatures and how to implement zero-trust webhook ingestion.

src/server/routes/webhookRoutes.ts

import { FastifyInstance } from 'fastify';
import Stripe from 'stripe';
import { config } from '../../config/index.js';
import { FulfillmentService } from '../../services/fulfillmentService.js';
export async function webhookRoutes(app: FastifyInstance) {
  // CRITICAL: Stripe requires raw unparsed buffer to compute HMAC-SHA256
  app.post('/webhooks/stripe', {
      config: { rawBody: true }
    }, async (request, reply) => {
      const signature = request.headers['stripe-signature'] as string;
      const rawBody = (request as any).rawBody;
      if (!signature || !rawBody) {
        return reply.code(400).send({ error: 'Missing signature or payload buffer' });
      }
      let event: Stripe.Event;
      try {
        event = stripe.webhooks.constructEvent(
          rawBody,
          signature,
          config.stripe.webhookSecret
        );
      } catch (err: any) {
        request.log.error(`Stripe signature verification failed: ${err.message}`);
        return reply.code(400).send({ error: 'Signature verification failed' });
      }
      // Acknowledge immediately to Stripe to prevent HTTP 504 timeouts
      reply.code(200).send({ received: true });
      if (event.type === 'checkout.session.completed') {
        const session = event.data.object as Stripe.Checkout.Session;
        await FulfillmentService.processStripeCheckout(session);
      }
  });
}