AI's Wide Shut · Code companion

Every block, ready to copy

The code from Chapters 9, 12, 13 and 16, in the order the book prints it. Each block says which file it belongs in, or where to run it, and which page it's on. The text is generated from the manuscript, so it matches your copy of the book character for character.

Before you paste

  • Placeholders are the book's: yourdomain.com, yourname, ai.home.yourdomain.com. Swap in your own values after pasting.
  • Image versions match Be Your Own Cloud. Read each project's release notes before moving to a newer one, and keep the settings in the environment section: they're what keep this setup private.
  • Model names change fast. The model suggestions page has the current list.
  1. Part 1 — Where Your Words Go

    • Chapter 1

      What Happens When You Press Enter

      No code in this chapter

    • Chapter 2

      The AI You Didn't Ask For

      No code in this chapter

    • Chapter 3

      Your AI Threat Model

      No code in this chapter

  2. Part 2 — Using Cloud AI Without Oversharing

    • Chapter 4

      The Don't-Paste List

      No code in this chapter

    • Chapter 5

      Settings for the Big Assistants

      No code in this chapter

    • Chapter 6

      More Private AI Services

      No code in this chapter

    • Chapter 7

      AI at Work

      No code in this chapter

  3. Part 3 — Stop Feeding the Machine

  4. Part 4 — Your Own Private AI

  5. Part 5 — Agents and Your Own Data

    • Chapter 15

      Chat With Your Own Documents, Privately

      No code in this chapter

    • Chapter 16

      Local Voice

      1 block

    • Chapter 17

      AI Agents

      No code in this chapter

    • Chapter 18

      Running an Agent Safely

      No code in this chapter

    • Chapter 19

      Your Private AI Plan

      No code in this chapter