Run your company with Claude Code and Codex agents organized into departments
A founder built a self-hosted company OS that he uses to run his business: every agent runs Claude Code or Codex CLI as a persistent sandboxed process with its own workspace, memory, schedules and tools, and teammates collaborate on the agents.
Source
dimitrismrtzs on Hacker News · 2026-09-09 · Project link
Written in our own words. Credit to the original author. Link checked 2026-11-22.
What they did
A founder built a self-hosted company OS that he uses to run his business: every agent runs Claude Code or Codex CLI as a persistent sandboxed process with its own workspace, memory, schedules and tools, and teammates collaborate on the agents.
Result (as claimed)
Open source and free to self-host; 50 points on Show HN.
Tools they used
Cost: Claude Code: from $17/mo; OpenAI Codex: free plan, paid from $8/mo.
Set it up
Map the task
Write the trigger, the inputs, the decisions and the output. Note which steps need a human yes.
Connect the tools
Set up Claude Code, OpenAI Codex with the narrowest permissions that work. Use a test account or sandbox first.
Build the workflow
Create the steps in order. Add an approval step before anything sends, pays or deletes.
Run it on real but low-stakes data
Run a few times, read every output, and fix prompts or rules that misfire.
Schedule and monitor
Turn on the schedule or trigger, and add a daily summary or alert so you notice failures.
Copy the full setup prompt
Paste into your agent and it will walk you through the setup, asking before anything that sends, posts or spends.
You are helping me set up this AI use case end to end in Claude Code. Goal: Run your company with Claude Code and Codex agents organized into departments What the original author did: A founder built a self-hosted company OS that he uses to run his business: every agent runs Claude Code or Codex CLI as a persistent sandboxed process with its own workspace, memory, schedules and tools, and teammates collaborate on the agents. Reported result (as claimed by the author): Open source and free to self-host; 50 points on Show HN. Source: https://news.ycombinator.com/item?id=49630606 Tools they used: Claude Code, OpenAI Codex Category: Automation & business Please: 1. Ask me 3 short questions about my situation (accounts I have, budget, what I want the output to look like). 2. Propose a step-by-step plan using these tools or cheaper alternatives, with the time and cost of each step. Use official pricing pages; say "check pricing" if unsure. 3. Then do the setup with me one step at a time, waiting for my OK before anything that sends messages, posts publicly, spends money or deletes data. 4. Finish with a checklist to run it again next time.
You are helping me set up this AI use case end to end in Codex. Goal: Run your company with Claude Code and Codex agents organized into departments What the original author did: A founder built a self-hosted company OS that he uses to run his business: every agent runs Claude Code or Codex CLI as a persistent sandboxed process with its own workspace, memory, schedules and tools, and teammates collaborate on the agents. Reported result (as claimed by the author): Open source and free to self-host; 50 points on Show HN. Source: https://news.ycombinator.com/item?id=49630606 Tools they used: Claude Code, OpenAI Codex Category: Automation & business Please: 1. Ask me 3 short questions about my situation (accounts I have, budget, what I want the output to look like). 2. Propose a step-by-step plan using these tools or cheaper alternatives, with the time and cost of each step. Use official pricing pages; say "check pricing" if unsure. 3. Then do the setup with me one step at a time, waiting for my OK before anything that sends messages, posts publicly, spends money or deletes data. 4. Finish with a checklist to run it again next time.
You are helping me set up this AI use case end to end in Grok Bot. Goal: Run your company with Claude Code and Codex agents organized into departments What the original author did: A founder built a self-hosted company OS that he uses to run his business: every agent runs Claude Code or Codex CLI as a persistent sandboxed process with its own workspace, memory, schedules and tools, and teammates collaborate on the agents. Reported result (as claimed by the author): Open source and free to self-host; 50 points on Show HN. Source: https://news.ycombinator.com/item?id=49630606 Tools they used: Claude Code, OpenAI Codex Category: Automation & business Please: 1. Ask me 3 short questions about my situation (accounts I have, budget, what I want the output to look like). 2. Propose a step-by-step plan using these tools or cheaper alternatives, with the time and cost of each step. Use official pricing pages; say "check pricing" if unsure. 3. Then do the setup with me one step at a time, waiting for my OK before anything that sends messages, posts publicly, spends money or deletes data. 4. Finish with a checklist to run it again next time.
The Daily 5
Get five new use cases tomorrow morning
Free. Real sources. Unsubscribe any time.
Guides for this use case
How to run multiple coding agents at once (git worktrees, tmux, Claude Code agent teams, Codex and Cursor) · How to vibe code an app with Claude Code · How to run AI coding agents in a sandbox · How to use Claude Code and Codex together (Codex plugin, shared AGENTS.md, worktrees, auto cross-review and GitHub Actions)
Related use cases
Run Claude Code, Codex and Antigravity bots from one desktop app
AppuBot is a desktop app for running agent bots on your own computer. The Oct 21 release lets bots use your apps in the background, adds Antigravity and more agents, and brings Telegram buttons for switching model, effort and permissions.
Put Claude Code, Codex and a local model in one group chat you control from your phone
RAPR AI puts Claude Code, Codex and Ollama in one group chat on your own machine, controlled from your browser, Telegram or WhatsApp.
Let Claude Code control your Mac in the background with Codex's computer use
A developer exposed Codex's computer-use ability to other agents and plugged it into Claude Code, which has no built-in way to drive a Mac from the CLI. Claude Code can now click and type in Mac apps in the background while you keep working.
Have Claude Code email you files from your PC while you are on your phone
Away from his desk, a user asked Claude Code to mail him two videos sitting on his PC. Its Chrome extension wasn't connected and Codex's computer-use tool kept failing, so Opus 5.5 wrote its own small computer-use script in Python and drove the desktop to send them.