TINFOIL KIT

Free · Open source

The world's knowledge, available when the internet isn't.

Tinfoil Kit saves all of Wikipedia, medical and survival guides, repair manuals and maps to a drive you own, with a local offline AI that helps you search through them. If the internet is down for days or weeks, it all still works.

Paste one prompt into ChatGPT, Claude or any AI chat. It asks what you want, then gives you one command to paste into your terminal.

Set up with your AI

Your AI asks what you want in your kit, then gives you the command to run.

  1. Copy this prompt.
    I want to set up Tinfoil Kit. It's an offline AI assistant, an offline library (Wikipedia, medical and repair guides) and offline maps for when the internet is down, best kept on an external drive I can plug into any computer. Its instructions for AI assistants are at https://tinfoilkit.com/llms.txt. Read them first.
    
    Then ask me questions, one or two at a time, to decide what to include and what to leave out. For each part, say what it's for and how much space it takes, and recommend what suits my computer. I'll keep the defaults for anything I don't mind:
    - My computer: Mac, Windows or Linux, and how much memory and free space it has.
    - An external drive: whether one is plugged in, how big it is, and whether it's formatted to work on both a Mac and a PC. If I don't have one, whether to get one, or put the kit on this computer, or on a computer that stays on at home as a home server.
    - Where I live, for the maps, and which languages we want Wikipedia in.
    - The AI: on or off, and which models.
    - The library, part by part: Wikipedia, medical, preparedness, repair and skills, books and courses, and the huge optional collections.
    - The whole kit, or just the essentials if space is short.
    - Sharing it with the phones and laptops on our home network, behind an access code.
    
    If you can run commands on my computer, check my computer and the drive yourself, with commands that only read, and ask me only what you can't see.
    
    Then give me the command to paste into my terminal, and tell me how to open the terminal. It gets a small version to try first; once I say it works, give me the command for the rest. If the drive needs erasing first, tell me how, and wait for my OK. I'm not a programmer, so keep it simple.
  2. Paste it into ChatGPT, Claude or any AI chat, and send it.
  3. Answer its questions. It gives you a command to paste into your terminal, and tells you how.

Want to choose what goes in first? Use the kit builder. Want to check the code before you run it? Have your AI read it.

On the drive You pick what goes in

  • WikipediaAll of it, with pictures, plus textbooks, a dictionary and travel guides.
  • MedicineWikiMed, MedlinePlus, the CDC's guides and US military medical manuals.
  • SurvivalFEMA's guides and US Army field manuals: water, food, shelter, navigation.
  • RepairiFixit, plus how-tos for the house, the car, solar panels and radios.
  • MapsYour area's streets, directions and nearest hospital, and a map of the world.
  • AIAsk in plain words, and it searches everything above for you.

What it's for

The questions a long outage brings.

  • Someone's hurt

    Look up how to treat a burn, a deep cut or a broken bone, step by step.

    WikiMed · MedlinePlus · military medical manuals
  • The water isn't safe

    Boil it, filter it or disinfect it with household bleach: how long, and how much.

    CDC · FEMA · water treatment guides
  • You need to get somewhere

    Driving and walking directions on your own maps, and the nearest hospital or pharmacy.

    Offline maps
  • Something broke

    Fix a leaking pipe, a dead generator or the car, with guides from people who've done it.

    iFixit · home and car repair Q&A
  • The power's out

    Keep food safe without a fridge, and run what matters on solar panels and batteries.

    Food storage guides · Energypedia · Ready.gov
  • The kids are home

    Textbooks, courses and all of Wikipedia, so they can keep learning.

    Wikipedia · LibreTexts · Wikibooks

Ask in plain words, and the AI helps you find the answer in these books. Or skip the AI: Search finds the right passages in seconds, on very little power.

How it works

Your AI sets it up. You run one command.

  1. 01 · GET A DRIVE

    Buy an external SSD

    A portable USB drive with room for the kit: from about 20 GB for just the essentials to about 900 GB for everything. We like this one.

    No drive? It can go straight on your computer instead.You can support our work by buying your external drive on Amazon through that link (it earns us a commission).
  2. 02 · TELL YOUR AI

    Have your AI set it up

    Paste the prompt into ChatGPT, Claude or any AI chat. It asks where you live and what you want in it, then gives you one command to paste into your terminal.

    Get the promptFirst it gets a small kit to try, about 10 GB. When you're ready, the rest: hours of downloading. It says how long before it starts.
  3. 03 · PLUG IN ANYWHERE

    Use it on any computer

    Plug the drive into any Mac, Windows or Linux computer and open Tinfoil Kit. The AI, the library and the maps work with no internet.

    Windows and Linux are experimental for now.

Try it

See what you get.

Tinfoil Kit opens in your browser like a website, but it all runs on your laptop, with no internet. Ask a sample question, plan a route or browse the library. The demo's answers were written ahead of time.

127.0.0.1:8888Wi-Fi off
Tinfoil Kit

Search: the best passages from your books in seconds, without the AI. It uses very little power.

Ask the AI: it reads your books and writes an answer, with sources. Slower, and it uses more power than Search.

Try one:
Done in 12s. Sources are listed below.

Boil it if you can. It's the surest way to kill the germs that make people sick [1].

  1. If the water is cloudy, let it settle, then pour it through a clean cloth or coffee filter.
  2. Bring it to a rolling boil for 1 minute, or 3 minutes above 6,500 feet (2,000 m) [1].
  3. Let it cool, and keep it in clean containers with lids [1].

No way to boil it? Use plain, unscented household bleach [2]:

  • 2 drops per liter or quart
  • 8 drops per gallon of 6% bleach, or 6 drops of 8.25% bleach
  • Stir and wait 30 minutes. It should smell slightly of chlorine. If it doesn't, add the same amount again and wait 15 more minutes.

No bleach either? Fill clear plastic bottles, 2 liters or smaller, and leave them in full sun for 6 hours, or 2 days if it's cloudy [3].

None of this removes fuel or chemicals. If the water might have them, find another source [4].

Sources from your library

  1. CDC Travelers' Health
    Boiling is the most reliable way to make water safe to drink. Bring it to a rolling boil for 1 minute. Above 6,500 feet (2,000 m), boil it for 3 minutes. Let it cool on its own, and store it in clean containers with lids.
  2. Water treatment
    Use regular, unscented chlorine bleach. Add 2 drops per quart or liter. For a gallon, add 8 drops of 6% bleach, or 6 drops of 8.25% bleach. Stir and let it stand for 30 minutes. The water should smell slightly of chlorine. If it doesn't, add the same amount again and wait 15 more minutes.
  3. Wikipedia
    Water is put in clear plastic bottles of 2 liters or less and left in full sunlight for six hours. Ultraviolet light and heat kill the germs. If more than half the sky is cloudy, the bottles need two days in a row. It doesn't work in steady rain, or with cloudy water.
  4. Ready.gov
    Boiling or disinfecting won't make water safe if it has fuel or toxic chemicals in it. If you know or suspect that it does, use a different source of water.

Answers come from an AI on this computer reading your offline library. They can be wrong. Check the sources, and follow trained medical help whenever you can reach it.

The kit builder

Choose what goes in your kit.

Pick what goes in, then copy the prompt for your AI. Your picks go with it, so it asks only about the rest.

Why we ask: street maps and directions for the whole world would take hundreds of gigabytes, so your kit gets them only for where you live and any places nearby you add, like the state or country next door. Everywhere else gets a simple map. This page doesn't send your answers anywhere: they only go into the prompt you copy.

Loading sources…

An external drive goes with you and works on any computer. A home server is a computer that stays on, so the phones and laptops at home can use the kit through it, with an access code. Leave it unpicked and your AI asks.

YOUR KIT

Let any AI chat walk you through it.

Install oursPaste it into ChatGPT, Claude or another AI chat. It asks what you want in it, then gives you the command to run.
I want to set up Tinfoil Kit. It's an offline AI assistant, an offline library (Wikipedia, medical and repair guides) and offline maps for when the internet is down, best kept on an external drive I can plug into any computer. Its instructions for AI assistants are at https://tinfoilkit.com/llms.txt. Read them first.

Then ask me questions, one or two at a time, to decide what to include and what to leave out. For each part, say what it's for and how much space it takes, and recommend what suits my computer. I'll keep the defaults for anything I don't mind:
- My computer: Mac, Windows or Linux, and how much memory and free space it has.
- An external drive: whether one is plugged in, how big it is, and whether it's formatted to work on both a Mac and a PC. If I don't have one, whether to get one, or put the kit on this computer, or on a computer that stays on at home as a home server.
- Where I live, for the maps, and which languages we want Wikipedia in.
- The AI: on or off, and which models.
- The library, part by part: Wikipedia, medical, preparedness, repair and skills, books and courses, and the huge optional collections.
- The whole kit, or just the essentials if space is short.
- Sharing it with the phones and laptops on our home network, behind an access code.

If you can run commands on my computer, check my computer and the drive yourself, with commands that only read, and ask me only what you can't see.

Then give me the command to paste into my terminal, and tell me how to open the terminal. It gets a small version to try first; once I say it works, give me the command for the rest. If the drive needs erasing first, tell me how, and wait for my OK. I'm not a programmer, so keep it simple.
Build your ownOur kit as a starting point. Your AI asks what you need first.
Help me build my own offline kit for when the internet goes down: a local AI, an offline library and offline maps, on my laptop or an external drive.

Use Tinfoil Kit as inspiration, not a spec: https://github.com/tudor-city-ventures/tinfoil-kit. Read its README and https://tinfoilkit.com/llms.txt to see what it includes and why. Where something else would suit me better, say so and why.

Before you plan anything, ask me probing questions, one or two at a time:
- What I'd reach for first in an outage: first aid, repairs, maps, schoolwork, something else.
- Who will use it, and on what: laptops, phones, a computer that stays on at home.
- My computer: Mac, Windows or Linux, its chip, memory and free space.
- Whether it lives on my laptop or an external drive, and what I'd spend on a drive.
- Where I live and which languages we read.

Then go through each part Tinfoil Kit offers and let me opt in or out. Say what each is for and roughly how much space it takes:
- A local AI, and which models my computer can run. Without one, a search still finds the best passages.
- Offline maps of my area: streets, address search, directions, the nearest hospital.
- Wikipedia in our languages, with or without images.
- Medical references, preparedness guides, and repair and skills guides.
- Textbooks and courses, and the huge optional collections: Khan Academy's videos, Project Gutenberg's books and the Survivor Library.
- Sharing it with the phones and laptops at home, behind an access code.
- Flag any source whose license limits how I can use it, so I can leave it out.

What has worked for Tinfoil Kit, unless you have a better idea:
- Everything works with zero internet, served on my computer and opened in a browser.
- One list of sources, and one command that brings everything up to date whenever I want. It resumes interrupted downloads, checks checksums and keeps the old version until the new one checks out.
- The AI answers from the library and cites its sources, and the library still works with the AI off.
- An offline self-test, and a one-page printed guide.
- On a drive, exFAT so any computer can read it, and no symlinks.

Then propose a plan: what goes in, how much space it takes and how long it takes to download. Wait for my OK before downloading anything or writing code.

Don't trust, verify

Don't trust us? No problem. Have your AI audit the code.

Before you install anything, paste this into ChatGPT, Claude or any AI chat. It reads the code and tells you what the kit does, without running it.

View the code on GitHub
Check the codeYour AI reads it and reports back. Nothing gets installed.
Before I install Tinfoil Kit, check its code for me. It's a free, open-source kit that puts an offline AI, an offline library and offline maps on a laptop or an external drive. The code is at https://github.com/tudor-city-ventures/tinfoil-kit, and https://tinfoilkit.com/llms.txt says how it works.

Read the code, starting with the setup scripts (SETUP.command and SETUP-Windows.bat), the launchers, the kit's program in tools/tinfoilkit and the Mac app in mac/. Then tell me in plain words:
- What it downloads, and from where.
- What it changes on my computer, and whether it needs an admin password.
- Whether anything leaves my computer once it's set up.
- How it checks what it downloads, how it updates itself, and how I can tell the program in its download was built from this code.
- Anything that looks risky, or doesn't match what its website says.

Don't install or run anything. If you can't open the code, say so instead of guessing. I'm not a programmer, so keep it simple.
  • Every line is publicThe kit's code and this website's are on GitHub. The README's Security section says what it protects against, and what it can't.
  • Nothing leaves your laptopNo account, no tracking. It goes online only to set up or update, and then only to the publishers it downloads from.
  • Every download is checkedThe kit checks every program against the exact copy it expects, and updates itself only from releases signed with the maintainer's key.
  • Only you can reach itIt runs on your computer and answers only you. Sharing with your home network stays off until you turn it on, and then it asks for a code.
# check a release before you run it
ssh-keygen -Y verify -f tools/release-signers -I tinfoilkit-release \
  -n tinfoilkit-release -s tinfoilkit-TAG.tar.gz.sig < tinfoilkit-TAG.tar.gz
# rebuild a kit's program from its source, and compare
tools/tinfoilkit/build.sh verify SHA256SUMS

Questions

Before you set it up.

What is Tinfoil Kit?

Tinfoil Kit is a free, open-source copy of the world's knowledge for when the internet is down for days or weeks. It puts all of Wikipedia, medical and survival guides, repair manuals and maps with directions on an external drive or your laptop, with a local offline AI that helps you search through them. You set it up while you're online, and after that it all works with no internet.

Do I need ChatGPT or Claude?

Any AI chat that can read a web page works, free ones included: it reads the kit's setup instructions at tinfoilkit.com/llms.txt. One that can run commands on your computer, like Claude Code or Codex, checks your computer and drive itself; a chat asks you instead. Either way, you paste the command it gives you. Rather not use an AI? The README has the command and its options.

Can my AI just install it?

It could, but the kit's instructions ask it not to. Your AI asks the questions and hands you one command, so you see exactly what runs and nothing installs behind your back. Updates, fixes and removal work the same way.

Is the AI as good as ChatGPT?

Not quite. It's small enough to run on a laptop, so it's a step behind the big cloud AIs. It's good at explaining things, it shows where its answers come from, and it needs no internet.

Do I need the AI?

No. The books and the map work without it, and Search finds the best passages in every book in seconds, without the AI, on very little power. The AI is for when you want an answer written for you, with sources. Pick No AI in the kit builder, or tell your AI to leave it out.

What do I need?

A Mac with an M chip (M1 or newer). Windows and Linux PCs with an Intel or AMD chip work too, but they're experimental for now. 32 GB of memory runs the full-size AI; with less, you get a lighter one. On your laptop or an external SSD, the kit takes from about 20 GB for just the essentials (the AI, the map, the medical, preparedness and repair books, and Wikipedia's best articles) to about 900 GB for everything. The recommended kit is about 200 to 300 GB. Setup checks that it fits, and says how long it takes to download, before it starts: on a 100 Mbps connection, about an hour for the essentials and 4 to 7 hours for the recommended kit.

Which AI will my laptop run?

It depends on your laptop's memory. The kit picks for you, and you can switch any time.

MemoryThe AI it runs
8 GBGemma 4 E4B, the small model (5 GB). Close other apps before you ask it something.
16 to 24 GBGemma 4 12B, the mid-size model (7 GB). It reads photos too.
32 GB or moreInkling 2 Mini, the default (18 GB). Qwen3.8 27B and Gemma 4 26B fit too, for a second opinion.

Setup says which one your laptop runs, and offers to skip the ones too big for it, which saves about 50 GB on a 16 or 24 GB laptop. To see your memory, open About This Mac, or Settings > System > About on Windows. A Windows or Linux PC without a good graphics card should use Gemma 4 E4B.

What do the maps cover?

Where you live, in street detail, with driving and walking directions and address search: a US state, a country, or part of a big one. Add places nearby, like the state next door, and they get street maps and directions too. The rest of the world is a simple map. You pick the places when you set it up, and can change them any time.

Does anything leave my laptop?

No. Once it's set up, everything runs on your laptop, with no account and no tracking. It only goes online when you install or update it, and then it only talks to the places it downloads from: GitHub, Kiwix, Hugging Face, Protomaps, Geofabrik, GraphHopper, Adoptium, Maven Central and npm, plus any source you add yourself.

What does setup change on my computer?

Very little. Everything goes in one folder, TinfoilKit, in your home folder or on the drive, and nothing runs unless you start it. It needs no Docker, Python or Node: the kit's own program downloads, checks and runs it all with curl, which Macs and Windows come with. Besides that:

  • Mac: the kit clears macOS's "downloaded from the internet" mark from its own files, and signs a program if macOS won't open it otherwise, so everything opens in an outage.
  • Mac: what a kit in your home folder downloads stays out of Time Machine, and a kit drive stays out of Spotlight.
  • Linux: if curl is missing, setup says how to get it.

Only if you ask: a home server starts the kit with the computer and shares it on your home network, with an access code. Uninstalling deletes the folder and undoes the rest.

How do I know it's safe?

All the code is public, and you don't have to trust a server of ours. Before you install, you can have your AI read the code and tell you what it does: this page has a prompt for that. The kit installs updates to itself only if they're signed with the maintainer's key, which never touches GitHub, and its program rebuilds to the same bytes from its source, so anyone can check it. Every model, book, map and program comes straight from its publisher, checked against the publisher's checksum when there is one. Nothing outside your computer can reach the kit unless you turn on sharing, which asks for a code. The README's Security section says what it protects against, what it can't, and how to report a problem.

Can I add my own books or AI models?

Yes. Everything the kit downloads is listed in one file in the kit, with each publisher's download, and a new version of the kit adds its changes without touching yours. Your AI can find more of Kiwix's offline books and add models from Hugging Face: the kit's instructions show it how.

What's the catch?

None. It's free and open source (MIT license), with no account, no tracking in the kit and no analytics on this site. It's a side project from the team behind DoTheySupportIt. If you buy the drive we link to, we earn a commission. It costs you disk space and hours of downloading.

How is Tinfoil Kit different from Project NOMAD?

Project NOMAD, from Crosstalk Solutions, is also free and open source. It turns a PC running Ubuntu or Debian into an offline server, in Docker, with an app catalog and an AI that can answer from your own documents. Tinfoil Kit runs on the Mac, Windows or Linux computer you have, with no Docker, from one folder that can live on a drive you plug into any of them. Its map finds addresses and gives directions, and sharing it at home takes an access code. Pick Project NOMAD for a home server with apps. Pick Tinfoil Kit for the laptop you have, or a drive that works on any computer.

Can I trust the AI's answers?

Check it, like you'd check a well-read friend. Each answer links to its sources, so you can read them yourself. For anything medical, use it to look things up in WikiMed and the Army's medical manuals. It isn't a doctor: read the source, and get trained help when you can.

Can my family use it from their phones?

Yes. Turn on sharing, and phones and laptops on your Wi-Fi or hotspot can open it: they scan its QR code, open a link you text them, or type its 8-digit access code. No internet is needed, just your local network, and nobody can use it without the code. A computer that stays on can share it all the time, as a home server, which is experimental for now. The guide shows how.

How long does it run on battery?

The big AI uses a lot of power: expect a couple of hours of active use. The small one uses much less, and searching and reading the books without the AI uses almost nothing. A USB-C power station and a folding solar panel keep it going.

Does it run on Windows or Linux?

Yes, all of it, but Windows and Linux are experimental for now: they're tested less than the Mac, so expect rough edges. Your AI sets it up on any of the three. The kit carries the programs for all three, so a kit on a drive formatted exFAT works on a Mac, Windows or Linux, whichever one set it up. Without a strong graphics card, the AI is slower.

How do I update it?

Run setup again whenever you're online: double-click SETUP in the kit's app folder, or ask your AI for the command. There's no schedule. It shows what's new before anything downloads, your picks stay, and only what changed downloads. Your old files keep working until the new ones check out, and you never have to take a newer edition. A new version replaces only the kit's app folder: your downloads and settings stay in folders of their own.

How do I remove it?

Run the uninstaller in the kit's app folder and type delete. It removes the kit and everything it downloaded. On a drive, it leaves everything else alone.

Is all this content legal to download?

Yes, for your own use. Everything comes straight from its publishers: openly licensed sites like Wikipedia, WikiMed and iFixit, US government guides, and AI models published for anyone to run. Each keeps its own license, and some, like iFixit's, forbid commercial use, so don't sell drives you've filled. Every source and its license.

Built on

Built on Wikipedia, OpenStreetMap and Kiwix.

We put them together. They do the real work, so if the kit helps you, help them.

The AI models come from Thinking Machines, Alibaba's Qwen team and Google, the road data from Geofabrik, and the books from Wikipedia's sister sites, iFixit, LibreTexts, Stack Exchange, the US Army, FEMA and more. Every source and its license.