If you are setting up Codex for the first time and skipping past the Environments section in settings, stop. This step takes less than five minutes. Skipping it costs you hours of confusion later when every project's files are living in the same undifferentiated pile and Codex has no clean way to separate what belongs where.
This post covers one specific step in the Codex setup process: creating named environments — local folders tied to specific projects — before you start any real work. It is not glamorous. It is not the part business owners get excited about. But it is the kind of structural decision that either saves you or punishes you, depending on whether you made it at the right moment.
For the complete framework, read the full guide.
What Environments Are and Why They Exist
Inside Codex settings, there is a section called Environments. This is where you create named local folders that are tied to specific Codex projects.
The concept is simple: instead of Codex dumping output from every project into a single location — or worse, letting file paths pile up without any consistent logic — you assign each major project its own named environment from the start. When Codex works on that project, it knows exactly where to put things and where to look.
Think of it as giving each project its own room. Without environments, everything lives in one room. You know roughly where things are because you put them there. Codex does not have that memory. It navigates by structure.
How to Set It Up
Go to Settings in Codex. Find the Environments section. Create a new environment. Give it a name that matches the project — something like "Codex Growth Academy" or "Client Onboarding System" or "Website Rebuild." Point it at a local folder on your machine. Done.
That folder is now the designated workspace for that project. When you are working in that environment, Codex operates within that container. Files go in. Files come out. Everything stays sorted.
The naming matters. Use something specific enough that you will still know what it is in four months. If you name everything by client initials or vague shorthand, you will recreate the same organizational chaos environments are designed to prevent.
The Mistake Business Owners Make Before They Know This Step Exists
Most business owners do not set up environments at the start. They connect Codex, they run a few tasks, and files land wherever the default paths point. Then a second project starts. Then a third. Now there are deliverables from three different clients scattered across a file system that was already imperfect before Codex was added to it.
Retroactively separating projects after the fact is a cleanup task. Cleanup tasks take time and attention away from productive work. The File Organization and Cleanup Skill — which Codex runs later in the onboarding sequence — exists partly to address this exact problem. But it is significantly easier to run that skill against a system that already has project boundaries defined than one that has no structure at all.
Set up environments first. Organize within them after.
Learn how the file organization step works and why it should follow environment setup, not precede it.
Environment Setup vs. File Organization: Understanding the Difference
These are two related but distinct things.
| Environments | File Organization | |
|---|---|---|
| What it is | Named containers that tell Codex where each project lives | Restructuring existing files for agent-readable naming and hierarchy |
| When to do it | Before any project work begins | After environments are defined, during onboarding |
| Who sets it up | You, in Codex settings | Codex, running the cleanup skill with your approval |
| What breaks without it | Projects bleed into each other; Codex has no clear workspace boundary | Codex cannot reliably find or retrieve files within a project |
| How long it takes | Under five minutes | 20–50 minutes for the cleanup skill to execute |
Both are part of what I call the Foundation Phase — the administrative setup layer that makes everything else work. Neither is optional if you are running Codex as a real operational system.
Watch me explain this live to see the full onboarding sequence, including environments, walked through in real time.
Why This Step Is Load-Bearing Even Though It Feels Minor
Here is the underlying reason environments matter beyond basic organization: Codex is a multi-project system for most business owners. You are not running it on one task for one client indefinitely. You are running it across your business — content, operations, client work, internal builds. Those workstreams need separation.
When you later run the Agent Home Base skill and build a centralized coordination layer for all your agents, that Home Base needs to know where each project's environment is. When Codex and other agents are working in parallel on different projects, environments are the mechanism that keeps them in their designated lanes.
Without that boundary defined from the start, the coordination layer has no clean structure to reference. You end up with a home base pointing at ambiguous locations, agents retrieving files from the wrong project context, and output that requires human intervention to sort correctly.
This is a structural decision with downstream consequences. The time to make it is before any of those consequences are live.
For a deeper look at the coordination layer that environments feed into, read the step on building the Agent Home Base.
What a Well-Named Environment Looks Like
Practical guidance, because naming matters:
Use the project or client name in full — not an abbreviation you invented. "GA LinkedIn Pipeline" might make sense to you today. In six months, when Codex is referencing it and you are trying to onboard a team agent, it is ambiguous. "Growth Academy LinkedIn Live Pipeline" is unambiguous.
Keep environments tied to discrete projects or business functions, not to time periods. "Q2 Work" is a human shorthand. It tells an agent nothing about what kind of work, for whom, or where related files should be.
If you are running client work, create one environment per client or per engagement. If you are running internal business functions — content production, operations, sales infrastructure — treat each as its own environment.
The test: could someone reading only the environment name know exactly what project it contains, with no additional context? If not, rename it.
Common Mistakes at This Step
Creating one environment and putting everything in it. This defeats the purpose. One environment with a name like "Codex Work" is structurally equivalent to no environments.
Pointing the environment at an iCloud folder. iCloud was flagged during the live setup as unreliable for agent retrieval — the root is too large and too mixed for agents to navigate cleanly. Point environments at Google Drive, Dropbox, or a clean local folder that syncs to a reliable cloud backup. Learn more about cloud storage decisions.
Setting up environments after you have already run several tasks. You can do this, but the retroactive cleanup is a real cost. Do it before the first task in each project.
Not creating environments for internal business functions. Business owners sometimes only create environments for client work, leaving internal operations, content, and builds in an unstructured default location. Codex touches all of those. They all need a home.
The Thirty-Second Version of This Step
Go to Environments in settings. Click to create a new environment. Name it after the project — fully, not abbreviated. Point it at a dedicated folder. Repeat for each major project or business function. Done.
That is the entire action. The depth of this post exists because understanding why it matters changes whether you actually do it, and whether you do it well.
What Comes Next
Once environments are set up, the next step is installing and connecting plugins — the mechanism that gives Codex actual access to your business data. Without plugins, Codex is operating blind. Environments tell Codex where to put things. Plugins tell Codex what it can see and use.
Learn how to install and verify plugins — and why connecting a plugin is not the same as actually having access.
Key Takeaways
- Environments are named local folders tied to specific Codex projects, created in Settings before any project work begins
- One environment per project or business function — not one environment for everything
- Name environments with full project names, not abbreviations or time-period shorthand
- Avoid pointing environments at iCloud; use Google Drive, Dropbox, or a clean local folder with cloud sync
- Environment setup precedes file organization — define the containers first, then clean what goes inside them
- Environments are part of the Foundation Phase; skipping or delaying them creates retroactive cleanup work and coordination problems for multi-agent setups
For the complete framework and how every setup step connects to the others, read the full guide. — Shanee
Use the prompts behind this system
The Growth Academy Skills Dashboard includes 100+ Codex skills and prompts for SMB owners.
See the Skills Dashboard →