Roadmaps / AI / Setup and lab safety
Read first
Setup and lab safety
You need one laptop with 8 GB of RAM or more (16 GB helps for local models), Python, Docker, Postgres with the pgvector extension in a container, and either an API key with a spending limit or a small open-weight model that runs locally. Everything else is free.
| Risk | Rule |
|---|---|
| Runaway spend | Set a hard limit at the provider, add your own per-run token cap in code and stop a run when it is reached. |
| Real data sent to a model | Use synthetic or public documents only. Never send customer data, secrets or personal data to a hosted model in a lab. |
| Prompt injection exercises | Attack only your own app on localhost, with test documents you wrote. Never aim an injection test at someone else's system. |
| Agents with tools can act | Give the lab agent only fake tools that write to a scratch file or a test database. No real email, payment or shell tools. |