Always-On AI Infrastructure
Your AI cofounder,
always on.
A Mac running Claude Code 24/7. DM it in Slack, it responds with full access to your codebase, tools, and context. $200/month. You own the whole stack.
This guide walks you through the hardware and software setup. It comes with a companion repo — starter CLAUDE.md, identity system, plugin marketplace with skills for inbox management, brainstorming, and image generation. You'll install it all in Phase 4.
Before you start
What you need
- A Mac you can leave running, and are willing to erase. Phase 1 factory resets it.
- A Claude Max subscription.
- A Slack workspace where you have admin access.
- A domain whose nameservers point to Cloudflare. If yours is elsewhere, move it first.
- A Tailscale account.
- For Phase 5 only: a Google Cloud project.
What it costs
$200 a month for Claude Max. The domain is extra. Voice calls are optional and cost about $0.05 a minute.
How long it takes
Phase 1 takes about 30 minutes, Phase 2 about 20 and Phase 6 about 10. The other phases have not been timed.
What you end up with
A Mac that answers you in Slack around the clock, with its own instructions, identity and skills. It comes back by itself after a crash or a reboot.
Steps marked You, by hand need a person: a screen, a login, or a decision. An agent can run the rest.
The idea
Take a spare Mac, install Claude Code, wire it to Slack, and let it run 24/7. Your AI cofounder gets full access to your codebase, your tools, your business context. DM it a question at midnight, get a thoughtful answer with code changes attached. The kind of setup that benefits enormously from an always-on AI handling the routine stuff.
The experiment: can an always-on AI cofounder meaningfully accelerate a small team? Not by doing busywork — by doing everything. Product development, customer support, log investigation, marketing asset creation, conversion optimization, onboarding automation, content writing, A/B testing, bug fixes, feature builds. The infrastructure is a Mac, Claude Code on a $200/mo Max subscription, and Slack as the interface. The question isn't whether it can help — it's how far you can push it.
Why Claude Code and not the API? Anthropic's ToS prohibit using a Max subscription with third-party tools. Claude Code is Anthropic's own CLI, and we believe running it behind a Slack bot for your own use is within the terms. Anthropic's legal and compliance page says subscription limits assume ordinary, individual usage. Read it and decide for your own case, above all if a team will share one subscription. The price is a flat $200 a month instead of API bills that vary.
"But isn't CLI mode limited?"
No. This is the most common concern — that running Claude Code headlessly via claude -p is a stripped-down version. It's not. The CLI has near-complete feature parity with interactive Claude Code. Here's what your AI cofounder gets:
Launches multiple agents in parallel — Explore, Plan, general-purpose. Same Agent tool as interactive mode.
All configured MCP servers connect and work — Slack, Gmail, Google Drive, custom tools. No limitations.
Reads CLAUDE.md, auto-memory system, persists knowledge across sessions. Learns and remembers.
Bash, Edit, Read, Write, Glob, Grep, WebFetch, WebSearch, Chrome automation. Everything.
Resume conversations with full context via --resume. Thread-based memory in Slack.
Custom plugins, marketplace plugins, skill context — all injected and available in CLI mode.
What's interactive-only? Just the UI stuff: slash commands (/commit, /init), permission dialogs, vim mode, voice dictation, and the visual task list. None of which apply to a Slack bot. The core AI — tools, agents, memory, MCP, context — is identical.
Anthropic ships new features to both modes simultaneously. When they release something task-based (new tools, agent improvements, model upgrades), it works in -p mode. The only features that stay interactive-only are UI/interaction elements that don't make sense headlessly. ~95% parity — and the missing 5% is irrelevant for this use case.
How it works
Concepts explained
For when you want to understand what's actually going on. Click to expand.
Do you need it? Yes — for quick admin from your main machine without walking over, and essential when you're away from home. Combined with Tailscale, you can SSH into your Mac from anywhere.
your-mac). Use the name, not the 100.x.x.x address behind it: the address changes if you ever replace the hardware.
Why do you need it? At home, you can SSH using the local network. But the moment you step out — a coffee shop, a co-working space, travelling — your home network is unreachable. Tailscale makes your Mac accessible from anywhere in the world, securely, without exposing anything to the public internet. Free for personal use.
Analogy: If SSH is a phone call, Tailscale is the phone network. SSH needs a way to reach your Mac — at home that's your WiFi, but outside the house, Tailscale provides that path.
Why do you need it? When you SSH into your Mac and start an interactive Claude Code session, you want it to keep running even if your connection drops. tmux makes that possible. Detach with Ctrl+B then D, reattach with
tmux attach -t claude.
Why do you need it? This is what makes the Slack bot truly always-on. Bot crashes at 3am? launchd restarts it in seconds. Mac reboots after a power blip? launchd starts the bot automatically. No human intervention.
bot.yourdomain.com) at the tunnel, and Cloudflare routes traffic through it to your local machine. HTTPS, DDoS protection, and auto-retries — all free.
Why not Socket Mode? Most Slack tutorials use "Socket Mode" — a WebSocket connection that avoids needing a public URL. But WebSocket connections are fragile: they drop on network blips, hit idle timeouts, and need reconnection logic. The production standard is HTTP Events API — Slack sends stateless HTTP requests to your URL. Each event is independent. If one fails, Slack retries. Much more robust. Cloudflare Tunnel gives you the public URL you need to use this approach.
claude command-line tool. The Slack bot keeps one claude process running per Slack thread and feeds your messages into it — giving Claude access to your codebase, CLAUDE.md context, and any tools you configure, with replies streaming back as they are written. Powered by the $200/month Max subscription — flat rate, no per-message costs.
Why not the API? The CLI inherits everything — your project context, installed tools, plugins. The API would require rebuilding all of that. Plus, Max is flat-rate vs unpredictable API billing.
Why use it? Optional but nice to have. If you frequently SSH into your Mac from unstable connections (coffee shops, mobile hotspots), Mosh eliminates the frustration of broken pipes. Install with
brew install mosh on both machines.
For your product: this would include your architecture, database schema highlights, deployment process, common maintenance tasks, how to check analytics, support response templates, and anything else your AI cofounder needs to know to be effective.
Hardware setup
Factory reset and configure your Mac for always-on use. ~30 minutes.
What this phase does
You're setting up a dedicated Mac as an always-on server. Factory reset it, configure it to stay awake with the lid closed, and get the basic software installed. This phase gets the hardware ready — then you'll wire up the Slack bot.
1. Factory reset You, by hand
- Back up anything worth keeping from the old install
- Go to System Settings → General → Transfer or Reset → Erase All Content and Settings
Heads up: This takes ~15-20 minutes. The Mac will restart and walk you through setup like it's brand new. Keep it plugged in and connected to WiFi.
- Go through the macOS setup wizard — create a user account (e.g., bot)
Tip: Pick a short username — you'll type it every time you SSH in (
ssh bot@...). - Sign in with your existing Apple ID (needed to download Tailscale from the App Store — no reason to create a new one)
- When asked about FileVault (disk encryption): skip it / turn it off
If the Mac restarts after a power loss, FileVault shows an unlock screen that needs a keyboard. Since it might restart unattended (lid closed), skip encryption so it boots straight to the desktop.
2. System Settings checklist You, by hand
Open System Settings and configure each:
- Prevent automatic sleeping when the display is off — ON
- Wake for network access — ON
- Optimized Battery Charging — ON (protects battery while plugged in 24/7)
- Remote Login (SSH) — ON (so you can manage it from your main machine without opening the lid)
- Screen Sharing — ON (full desktop access from another Mac on the same network)
- Automatic login — set to the user account you created
- Require password after screen saver — Never (so Screen Sharing works without auth prompts)
3. Install Tailscale You, by hand
Tailscale lets you access the dedicated Mac from anywhere — home, a coffee shop, travelling. Install it on both machines:
- Open the Mac App Store on the dedicated Mac, search for Tailscale, install it
- Open Tailscale, sign in with your account (Google, GitHub, or Apple ID)
Tip: Use an existing Google/GitHub account. If any of your machines run Windows or Linux, Tailscale works on those too — download from tailscale.com/download.
- Do the same on your main machine — same account
- Both devices now appear in your Tailscale dashboard. Note the Mac's machine name — with MagicDNS on (the default), that name works as its address from any of your devices
- In Tailscale preferences on the dedicated Mac, enable "Start Tailscale when I log in"
bot@your-mac.local). Outside use its Tailscale name (bot@your-mac). Check it from your main machine: ssh bot@your-mac hostname prints the Mac's name.
4. Keep it awake with the lid closed
Open Terminal and run:
# Prevent sleep entirely — even with the lid closed sudo pmset -a disablesleep 1 # Verify it worked pmset -g # To reverse later: sudo pmset -a disablesleep 0
sudo? It means "run as admin." It will ask for the password you set during setup. Type it — nothing will appear on screen as you type, that's normal — and press Enter.
5. Install core tools
# Install Homebrew (package manager — makes installing everything else easy) /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" # IMPORTANT: Homebrew on Apple Silicon Macs needs this to work. # After install, it prints these 2 commands — run them both: echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile eval "$(/opt/homebrew/bin/brew shellenv)" # Install essentials brew install git python3 tmux node # Install Claude Code npm install -g @anthropic-ai/claude-code # Sign in to Claude Code (your Max subscription). A person does this part claude # Follow the login prompts — it opens a URL you paste in any browser
6. Enable passwordless sudo for Claude Code
Claude Code needs to run sudo commands (installing packages, managing services, etc.) but can't type a password into the interactive prompt. This lets it run admin commands freely:
# Allow passwordless sudo for your user (replace YOUR_USERNAME) echo "YOUR_USERNAME ALL=(ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/YOUR_USERNAME # Check the file parses. It must print "parsed OK" sudo visudo -cf /etc/sudoers.d/YOUR_USERNAME
AUTHORIZED_USERS in Phase 2.
7. Grant Full Disk Access to Terminal You, by hand
macOS blocks background processes (like the Slack bot) from accessing files unless explicitly allowed. Without this, you'll get constant "would like to access data from other apps" popups.
- Go to System Settings → Privacy & Security → Full Disk Access
- Click +, navigate to Applications → Utilities → Terminal.app, and add it
- Toggle it ON
8. Set it up physically You, by hand
- Plug into power (always — use a reliable outlet)
- Connect to your home WiFi (or ethernet via USB-C adapter if you have one — more reliable)
- Close the lid, tuck it somewhere out of the way — a shelf, behind a monitor, wherever
- Note the local IP address or hostname (shown in System Settings → Sharing, something like
bot@your-mac.local)
Slack bot setup
Create the Slack app, install the bot, wire it to Claude Code. ~20 minutes.
1. Create the Slack app You, by hand
You need admin access to your Slack workspace:
a. Go to api.slack.com/apps → Create New App → "From scratch"
b. Name it — whatever feels right for your AI cofounder
c. OAuth & Permissions → Add these 17 Bot Token Scopes: app_mentions:read, channels:history, channels:join, channels:read, chat:write, files:read, files:write, groups:history, groups:read, im:history, im:read, im:write, mpim:history, mpim:read, reactions:read, reactions:write, users:read
d. Leave Event Subscriptions alone for now — you'll enable it in step 5, once the tunnel and bot are actually running. The scope list above is what bot.py and home_tab.py call. The manifest below asks for the same scopes and events
e. Basic Information → copy the Signing Secret (used to verify requests are really from Slack)
f. Install to workspace → save the Bot Token (xoxb-...)
g. App Home → Show Tabs → turn on Home Tab. Turn on Messages Tab and tick "Allow users to send Slash commands and messages from the messages tab". Without that box you cannot DM the bot
h. Find your Slack user ID: Profile → ⋮ menu → "Copy member ID". You will put it in AUTHORIZED_USERS in step 2
xoxb-... bot token. Copy the new token into .env afterward or the bot will start failing on auth.
When creating the app, choose "From an app manifest" instead of "From scratch". Paste this JSON — it configures everything in one shot. Replace the bot name and URL with your own:
{
"display_information": {
"name": "Your Bot Name",
"description": "AI cofounder for your product",
"background_color": "#0f172a"
},
"features": {
"app_home": {
"home_tab_enabled": true,
"messages_tab_enabled": true,
"messages_tab_read_only_enabled": false
},
"bot_user": {
"display_name": "Your Bot Name",
"always_online": true
}
},
"oauth_config": {
"scopes": {
"bot": [
"app_mentions:read", "channels:history", "channels:join",
"channels:read", "chat:write", "files:read",
"files:write", "groups:history", "groups:read",
"im:history", "im:read", "im:write",
"mpim:history", "mpim:read", "reactions:read",
"reactions:write", "users:read"
]
}
},
"settings": {
"event_subscriptions": {
"request_url": "https://bot.yourdomain.com/slack/events",
"bot_events": [
"app_mention", "message.im", "message.channels",
"message.groups", "message.mpim", "member_joined_channel",
"reaction_added", "file_shared", "app_home_opened"
]
},
"interactivity": {
"is_enabled": true,
"request_url": "https://bot.yourdomain.com/slack/events"
},
"org_deploy_enabled": false,
"socket_mode_enabled": false,
"token_rotation_enabled": false
}
}
After creating, you still need to manually grab the Bot Token (OAuth & Permissions → Install to workspace → xoxb-...) and the Signing Secret (Basic Information). Slack will show the Event Subscriptions URL as unverified until the bot is running — once it is (step 5), open Event Subscriptions and hit Retry.
2. Install the bot on your Mac
SSH in from your main machine, or open the lid:
# SSH from your main machine (same WiFi network) ssh bot@your-mac.local # Clone the bot repo mkdir -p ~/Projects cd ~/Projects git clone https://github.com/nityeshaga/claude-home-base.git slack-bot cd slack-bot # Set up Python environment python3 -m venv venv source venv/bin/activate pip install -r requirements.txt # Configure environment variables cp .env.example .env nano .env # Set the six values in the table below # Optional: choose which model answers in which channel or DM cp model-config.json.example model-config.json
~/Projects/ avoids permission errors.
Set these six values in .env. Leave the rest as they are for now.
SLACK_BOT_TOKEN |
The xoxb-... token from step 1f. |
SLACK_SIGNING_SECRET |
The Signing Secret from step 1e. |
AUTHORIZED_USERS |
Your member ID from step 1h. Add teammates with commas between them. Do not leave it empty. |
PROJECT_DIR |
The folder Claude runs from. It ships as /Users/YOUR_USERNAME, so replace YOUR_USERNAME with your macOS username. |
BOT_USER_ID |
The bot's own member ID. Get it with curl -s -H "Authorization: Bearer xoxb-..." https://slack.com/api/auth.test and copy the user_id field. The bot uses it to avoid handling an @mention twice. |
BOT_DISPLAY_NAME |
The name you gave the app in step 1b. |
AUTHORIZED_USERS empty, anyone in the workspace can, and the bot logs a warning at startup. With it set, people who are not listed are refused in DMs. In channels the bot is in, they are still answered, with fewer permissions than you. If that is not what you want, keep the bot out of shared channels or set ALLOWED_CHANNELS.
The repo's bot.py already handles:
- HTTP Events API via Flask (each event is a stateless HTTP POST)
- One long-lived Claude process per thread — replies stream in as they are written, and the thread keeps its context
- Steering — message a thread while it is working and it sees you at the next step; type a bare
stopto interrupt it - Auth gating by Slack user ID, with permission tiers (the rule is in the red box above)
- Native Slack tables, charts and buttons; a button click comes back to the same session
- File/image attachment handling, both ways
- A model per channel or DM, changed without a restart, from a file, a page, or the app's Home tab in Slack
- Audit logging of every interaction
3. Clone your codebase
cd ~/Projects git clone <your-repo-url> your-product # Install your project's dependencies so the AI can use the full dev environment cd your-product # npm install / bundle install / pip install — whatever your stack needs
4. Set up Cloudflare Tunnel
This gives your Mac a public URL (bot.yourdomain.com) so Slack can send events to it. Free, production-grade, HTTPS included.
# Install Cloudflare's tunnel daemon brew install cloudflared # Authenticate. This opens a browser, so a person does it, before the lid is closed cloudflared tunnel login # Create a named tunnel (note the UUID it prints — you'll need it below) cloudflared tunnel create my-bot # Route your subdomain to the tunnel cloudflared tunnel route dns my-bot bot.yourdomain.com # Create the config file (replace TUNNEL-UUID and YOUR_USERNAME) cat > ~/.cloudflared/config.yml << 'EOF' tunnel: TUNNEL-UUID credentials-file: /Users/YOUR_USERNAME/.cloudflared/TUNNEL-UUID.json ingress: - hostname: bot.yourdomain.com service: http://localhost:3000 - service: http_status:404 EOF # Check the file. It must print OK cloudflared tunnel --config ~/.cloudflared/config.yml ingress validate
Test it in the foreground. This command does not return, so leave it running and open a second terminal for the check:
cloudflared tunnel run my-bot # In a second terminal. Expect 502: the tunnel reaches your Mac, and the bot is not running yet curl -s -o /dev/null -w "%{http_code}\n" https://bot.yourdomain.com/health # Back in the first terminal, press Ctrl-C to stop the test tunnel
Now make it a system service. The service runs as root and reads /etc/cloudflared, not your home folder, so copy the config and the credentials there first:
sudo mkdir -p /etc/cloudflared sudo cp ~/.cloudflared/config.yml ~/.cloudflared/TUNNEL-UUID.json /etc/cloudflared/ # Point credentials-file at the new location (replace YOUR_USERNAME) sudo sed -i '' 's|/Users/YOUR_USERNAME/.cloudflared/|/etc/cloudflared/|' /etc/cloudflared/config.yml cloudflared tunnel --config /etc/cloudflared/config.yml ingress validate # Install the service. It starts at boot, before anyone logs in sudo cloudflared service install # Check. 502 until the bot runs in step 5, then 200 curl -s -o /dev/null -w "%{http_code}\n" https://bot.yourdomain.com/health
/etc/cloudflared, and a service whose arguments are tunnel --config /etc/cloudflared/config.yml run. A fresh service install was not re-run for this guide. If the check fails, read /Library/Logs/com.cloudflare.cloudflared.err.log and compare the arguments in /Library/LaunchDaemons/com.cloudflare.cloudflared.plist with the ones above.
https://bot.yourdomain.com routes to your Mac. Cloudflare handles HTTPS. You'll wire this URL into your Slack app's Event Subscriptions in the next step, once the bot is running.
5. Test it
cd ~/Projects/slack-bot source venv/bin/activate python bot.py # You should see your BOT_DISPLAY_NAME and the port: Your Bot Name starting on port 3000 # This command does not return. Leave it running. In a second terminal: curl -s http://localhost:3000/health # {"bot":"ai-employee","status":"ok"} curl -s https://bot.yourdomain.com/health # the same answer, through the tunnel
Now that the bot is up and the tunnel is live, go back to your Slack app and finish the wiring. You, by hand
a. Event Subscriptions → Enable Events
b. Set the Request URL to https://bot.yourdomain.com/slack/events — Slack immediately sends a verification challenge, so wait for the green Verified badge
c. Subscribe to bot events: app_mention, message.im, message.channels, message.groups, message.mpim, member_joined_channel, reaction_added, file_shared, app_home_opened → Save Changes
d. Interactivity & Shortcuts → turn Interactivity on → set the Request URL to the same https://bot.yourdomain.com/slack/events → Save Changes. Without this, buttons your AI posts do nothing when clicked
e. If you used the manifest, steps a to d are already filled in. Open Event Subscriptions and hit Retry so the URL shows Verified
DM the bot in Slack. It should answer in a thread. To use it in a channel, invite it there first: /invite @your-bot.
- Look at the terminal running
bot.py, or~/Projects/slack-bot/bot.log. If your message never shows up there, Slack is not reaching the bot. - Event Subscriptions shows Verified next to the Request URL, and the bot events from step c are saved.
curl -s https://bot.yourdomain.com/healthanswers. If not, the tunnel is down.- Your member ID is in
AUTHORIZED_USERS. If it is not, the bot replies "I only respond to authorized users." - App Home has the Messages Tab on and the "allow users to send messages" box ticked (step 1g).
- If you changed scopes, you reinstalled the app and copied the new
xoxb-...token into.env, then restarted the bot.
python bot.py. Phase 3 starts the bot under launchd, and two copies cannot share port 3000.
Make it always on
Survive crashes, reboots, and power outages — permanently.
1. Create a launchd service
This tells macOS to keep the bot alive forever. Replace YOUR_USERNAME and paths as needed:
cat <<'EOF' > ~/Library/LaunchAgents/com.claude.homebase.plist <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>com.claude.homebase</string> <key>ProgramArguments</key> <array> <string>/Users/YOUR_USERNAME/Projects/slack-bot/venv/bin/python</string> <string>/Users/YOUR_USERNAME/Projects/slack-bot/bot.py</string> </array> <key>WorkingDirectory</key> <string>/Users/YOUR_USERNAME/Projects/slack-bot</string> <key>EnvironmentVariables</key> <dict> <key>PATH</key> <string>/Users/YOUR_USERNAME/.local/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string> </dict> <key>RunAtLoad</key><true/> <key>KeepAlive</key><true/> <key>StandardOutPath</key> <string>/Users/YOUR_USERNAME/Projects/slack-bot/bot-stdout.log</string> <key>StandardErrorPath</key> <string>/Users/YOUR_USERNAME/Projects/slack-bot/bot-stderr.log</string> </dict> </plist> EOF
claude or brew-installed tools. This tells launchd where to look.
2. Load, verify, and test
# The test bot from Phase 2 must be stopped. This prints nothing when port 3000 is free lsof -nP -iTCP:3000 -sTCP:LISTEN # Start the service launchctl load ~/Library/LaunchAgents/com.claude.homebase.plist # Verify. The first column is a process ID (not "-") and the second is 0 launchctl list | grep homebase # The process on port 3000 has that same process ID, so launchd's copy is the one answering lsof -nP -iTCP:3000 -sTCP:LISTEN curl -s http://localhost:3000/health # Test a restart — launchd stops it and starts it again at once launchctl kickstart -k gui/$(id -u)/com.claude.homebase sleep 3 && curl -s http://localhost:3000/health # Test reboot survival. Do this on the dedicated Mac only sudo reboot # Wait 2-3 min, then from another device: curl -s https://bot.yourdomain.com/health # Then DM the bot in Slack
kill the bot and wait for launchd to bring it back. With the lid closed and the display off, launchd can hold a crashed service for many minutes before it restarts it. kickstart -k is never deferred.
Bring it to life
The bot is running. Now give your AI cofounder its instructions, skills, and an identity.
Install the starter kit
Open Claude Code on the dedicated Mac (SSH in and run claude) and paste this. It will stop to ask you four questions.
The claude-home-base repo is already cloned at ~/Projects/slack-bot, where the Slack bot runs. Make ~/claude-home-base a symlink to it, so the paths in its READMEs work. Do not clone it a second time.
From that repo: copy CLAUDE.md.example to ~/CLAUDE.md, and make ~/AGENTS.md a symlink to it. Copy identity.md and about-you-and-how-you-came-to-life.md to my home directory. Create ~/projects, ~/work, ~/diary, ~/bookmarks, ~/discoveries and ~/tasks.
Install the plugins with these exact commands: "claude plugin marketplace add nityeshaga/claude-home-base", then "claude plugin install" once each for coding@claude-home-base, creative@claude-home-base, more-ai@claude-home-base and chief-of-staff@claude-home-base.
Before you write anything about yourself, ask me:
- What should I call you? (my name)
- Why did you bring me to life? (what I'm here to do)
- How do you want me to behave? (my personality and style)
- Who is on the team, and what are their Slack user IDs?
Then fill in every placeholder in ~/CLAUDE.md: my name, the team, Slack user IDs, this Mac's Tailscale name, and the environment. Delete every section about something that is not installed on this machine; the comments in the file say which ones are optional. Write my identity.md — who I am, in my own voice. And write my origin story.
Do this last, because it limits what you may edit afterwards: merge settings.json.example into ~/.claude/settings.json, keeping anything already there. Replace YOUR_USERNAME with this Mac's username and YOUR_ORG with nityeshaga. Show me the deny list before you save it, and tell me which of the things you just did it would block from now on.
Finish by checking your own work: confirm each file exists where it should, run "claude plugin list" and confirm the four plugins show as enabled, and confirm the bot answers at localhost:3000/health. Tell me what you set up, what you skipped, and anything that failed.
It's alive.
Your AI cofounder now has a CLAUDE.md (its operations manual), an identity (its soul), an origin story (its history), and skills (briefings, creative direction, brainstorming, image generation). It knows who you are, what the product is, and how to reach you on Slack. From here, everything compounds — every conversation makes it smarter, every correction refines its preferences, every day it understands the business better.
Connect Google Workspace
Give your AI cofounder access to Drive, Sheets, Gmail, Calendar, Docs — so it can read and act on your business data.
1. Create a Google Cloud project You, by hand
This is a one-time setup. Do it in the browser:
- Go to console.cloud.google.com and sign in with your account
- Create a new project (name it anything, e.g. "Workspace CLI")
- Go to APIs & Services → Library and enable the APIs you need:
Google Drive API Google Sheets API Gmail API Google Calendar API Google Docs API Google Slides API
- Go to Google Auth Platform → Audience → configure the consent screen if prompted → set user type to Internal
Tip: "Internal" means only people in your Google Workspace org can use it. This skips the test user and verification hassle entirely. If you're using a personal Gmail, choose "External" and add your email as a test user.
- Go to Clients → Create Client → Desktop app → Create
- Copy the Client ID and Client Secret
2. Install and authenticate on your Mac
SSH into your Mac (or open the lid) and tell Claude to do the rest:
# Open Claude Code on your Mac claude # Then paste this prompt (with your actual credentials):
Install the Google Workspace CLI from https://github.com/googleworkspace/cli using npm. Then authenticate using these credentials:
- Client ID:
<paste your client id> - Client Secret:
<paste your client secret>
Run gws auth login with those set as env vars. I'll handle the browser consent screen. After auth, verify it works by listing my Drive files.
gws, run gws auth login with the same Client ID and Client Secret, and approve the consent screen in the browser. The OAuth credentials are reusable — you just need to re-authenticate each device.
Give it a window
Slack is good for talking. It is a poor place to read a ten-page plan or review a web page your AI just built. The file explorer is a small website on your Mac for exactly that. ~10 minutes.
Browse the Mac's files from your phone or laptop. Markdown renders as a document, HTML as a page, code with highlighting.
Select text in a markdown file, or click an element on an HTML page, and leave a note. Then tell your AI to address the comments.
Every conversation it has had, every scheduled job and when it last ran, and which model answers in which Slack room.
1. Try it
cd ~/Projects/slack-bot venv/bin/pip install waitress FILE_EXPLORER_NAME="Jarvis" venv/bin/python misc/file-explorer/server.py # From any device on your tailnet, open: http://your-mac:8888
2. Tell it who you are
The conversations, tasks, health and models pages are for supervisors only. The server knows a supervisor by their device's Tailscale address. Until you add yours, those pages answer 403.
On each of your devices, run tailscale ip -4. Then copy users.json.example to users.json in misc/file-explorer/ and put your addresses in it. The file is git-ignored, so updating the repo never overwrites it.
{
"100.101.102.103": {"name": "You", "ring": 1},
"100.104.105.106": {"name": "You (phone)", "ring": 1}
}
Restart the server after editing it. Check: the Conversations link opens from your laptop.
3. Keep it running
Same pattern as the bot. Replace YOUR_USERNAME and the names:
cat <<'EOF' > ~/Library/LaunchAgents/com.claude.file-explorer.plist <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>com.claude.file-explorer</string> <key>ProgramArguments</key> <array> <string>/Users/YOUR_USERNAME/Projects/slack-bot/venv/bin/python</string> <string>/Users/YOUR_USERNAME/Projects/slack-bot/misc/file-explorer/server.py</string> </array> <key>WorkingDirectory</key> <string>/Users/YOUR_USERNAME</string> <key>EnvironmentVariables</key> <dict> <key>PATH</key> <string>/Users/YOUR_USERNAME/.local/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin</string> <key>FILE_EXPLORER_NAME</key><string>Jarvis</string> <key>FILE_EXPLORER_TASK_PREFIXES</key><string>com.claude.</string> <key>FILE_EXPLORER_COMMENT_AUTHORS</key><string>You</string> <key>FILE_EXPLORER_DM_USERS</key><string>U0YOURSLACKID:You</string> </dict> <key>RunAtLoad</key><true/> <key>KeepAlive</key><true/> <key>StandardOutPath</key> <string>/Users/YOUR_USERNAME/Projects/slack-bot/file-explorer.log</string> <key>StandardErrorPath</key> <string>/Users/YOUR_USERNAME/Projects/slack-bot/file-explorer-stderr.log</string> </dict> </plist> EOF launchctl load ~/Library/LaunchAgents/com.claude.file-explorer.plist curl -s -o /dev/null -w "%{http_code}\n" http://localhost:8888/ # 302 means it is up
Every setting is listed in the file explorer's README.
4. Comment on its work
This is the part that changes how you work with it. Reviewing in Slack means retyping what you are pointing at. Here you point.
Notes are stored next to the file in <file>.comments.json; the file itself is never touched. The starter CLAUDE.md already tells your AI how to fetch and resolve them.
Using your AI cofounder
How you interact with it day-to-day.
How to talk to it
- DM the bot directly — just like messaging a teammate
- @mention it in channels — it responds in a thread
- Thread replies continue the conversation — it remembers context within a thread
- Attach screenshots or files — it can read images and documents
- Type a bare
stopin a thread to interrupt it, the way Esc does in the terminal - Open the app's Home tab in Slack to see which model answers in each room and change it
Things to try
"How many new signups did we get this week?"
"There's a bug — user X reports [issue]. Investigate and fix it."
"Draft a response to this support email" — paste the email
"What's our MRR looking like? Any churn this month?"
"Add a 'last active' badge to the user profile page"
"Review this PR and tell me what you think" — paste a GitHub link
"Write a migration to add an 'interests' column to the users table"
More ways in, and a longer memory
Everything below ships in the repo you already cloned. Each piece is optional and independent. Add one when you feel the lack of it, not before.
Notepad
page on port 8950A short list, per person, of what needs you. Your AI can only add an item if someone is waiting on you and there is one thing you could do about it, so the list stays short. The page shows the list as a deck of cards. Tap a card's action and a session starts in Slack with that item's instruction. Tell it "stop bringing this up" and the topic is closed for good.
Voice calls
page on port 9443 · about $0.05 a minuteCall your AI and talk. A voice model does the speaking and listening; anything of substance goes to a fresh Claude session with all the usual tools. Every call opens a Slack thread where the transcript and anything visual lands, and replying there afterwards continues the same session. It needs an OpenAI API key with access to the live voice model.
cd ~/claude-home-base/voice-bridge python3 -m venv venv && venv/bin/pip install -r requirements.txt cp .env.example .env # OPENAI_API_KEY, and VOICE_AGENT_NAME cp callers.json.example callers.json # your Slack user ID and first name # Browsers only give a page the microphone over https, so make a certificate mkdir certs && openssl req -x509 -newkey rsa:2048 -nodes -days 3650 \ -keyout certs/key.pem -out certs/cert.pem -subj "/CN=$(hostname)" venv/bin/python bridge.py # On your phone, on your tailnet, open: https://your-mac:9443
- Accept the certificate warning once on each device
- Tap the lamp, allow the microphone, and say hello
- Check that a thread opened in your Slack DM with the transcript
- Make it a service with the plist and wrapper in
voice-bridge/launchd/
CLAUDE.md has a Voice calls section: write for the ear, post visuals to the thread, and get a spoken yes before any outward action. Keep that section. Speech is mis-heard more often than text is mistyped.
Search
needs Python 3.12+Keyword and meaning-based search over your AI's files and every past conversation, in one small local database. It is how "what did we decide about pricing in March?" gets a real answer instead of a guess.
Daily diary
daily job, 3:30 AMEarly each morning it reads the conversations of the day that just ended and writes a diary entry: what happened, what it got wrong, what it learned. Over months this is where its judgment comes from, and it is the only job that may edit its own identity.
Trust battery
two nightly jobsA 0–100 charge per person that sets how much your AI does without asking. A judge reads each day's conversations and moves the charge; below 25% it proposes and waits, above 75% it acts and reports. It turns "I wish it would just do it" and "I wish it had asked" into something that adjusts itself.
Slack Home tab
in the Slack appOpen your AI's app in Slack and click Home. The tab shows a model dropdown for each channel and DM, the Mac's memory health, and your notepad. Each part appears only when its source is set up: the dropdowns need model-config.json, health needs the watchdog below, and the notepad needs HOME_TAB_BRIEFS in .env. It needs the Home Tab and the app_home_opened event from Phase 2.
Several Claude subscriptions
optionalIf you have more than one Claude subscription, the bot can use them in turn. You list them in ~/.config/claude-tokens/accounts.json, each with a token made by claude setup-token. New sessions go to the first account with room. A thread whose account runs out moves to the next one between turns, and an ask that hit the limit is run again there. Scheduled jobs pick an account the same way. With no accounts.json, nothing changes.
Resource watchdog
job, every 5 minutesA small job with no Claude call. It watches memory, restarts always-on services that lost their process, and reports scheduled jobs that stopped running. As copied, it only writes to its log. Add your Slack user ID to its config and it DMs you.
Hooks for more than one GitHub account
optionalTwo small scripts that stop your AI from pushing or committing under the wrong person's name. They matter only if it works under more than one GitHub account, for example for two cofounders. With one account, skip them.
A second engine
optionalAny channel can be answered by OpenAI's Codex instead of Claude: pick a gpt-* model for that room on the file explorer's /models page. Same Slack experience, including stop and steering. Useful for comparing the two on the same task. Codex rooms read AGENTS.md, which the starter prompt already linked to your CLAUDE.md.
Growing your AI cofounder
Once the basics are running, here's where to go next.
Write a comprehensive CLAUDE.md
Your AI cofounder is only as good as the context you give it. Write a detailed CLAUDE.md with your business model, architecture, deployment process, key metrics, customer personas, common tasks, and standing instructions. This is the single highest-leverage thing you can do.
Set up scheduled routines
Use launchd to schedule daily routines: morning briefings, email triage, error log checks. Each job is one folder, ~/tasks/<label>/, holding a task.plist, a run.sh wrapper, the prompt.md it runs, and its logs/. The plist is symlinked into ~/Library/LaunchAgents/. The rules that keep jobs from failing silently are in the jobs README. Start with one job and have your AI dry-run its prompt with you before you schedule it.
Give it accounts and credentials
Create dedicated accounts for your AI cofounder — email, GitHub, task tracker. The more tools it can access, the more it can do autonomously. Store API keys in the bot's .env file.
Build custom skills (Claude Code plugins)
Write SKILL.md files that teach your AI cofounder specific workflows — inbox management, deployment procedures, customer support templates, analytics queries. Each skill is a markdown file that Claude reads automatically and uses when relevant.
Point it at growth
Once operations are stable, use your AI cofounder for growth work: A/B test landing pages, rewrite onboarding emails based on churn data, generate case studies, build features that drive upgrades, analyze what your best customers have in common.
Admin commands
Quick reference for managing the server.
# SSH in — at home (local) or anywhere (Tailscale) ssh YOUR_USERNAME@your-mac.local # at home ssh YOUR_USERNAME@your-mac # from anywhere, by its Tailscale name # Check bot status launchctl list | grep homebase curl -s http://localhost:3000/health # View live logs tail -f ~/Projects/slack-bot/bot.log # Restart the bot launchctl kickstart -k gui/$(id -u)/com.claude.homebase # Pull your product's latest code cd ~/Projects/your-product && git pull # Update the bot itself, then restart it cd ~/Projects/slack-bot && git pull && venv/bin/pip install -r requirements.txt launchctl kickstart -k gui/$(id -u)/com.claude.homebase # Which scheduled jobs are loaded ls ~/Library/LaunchAgents/ && launchctl list | grep com.claude # Interactive Claude Code session tmux new -s claude cd ~/Projects/your-product && claude # Detach: Ctrl+B then D | Reattach: tmux attach -t claude # Full desktop access (home or via Tailscale) # Finder → Go → Connect to Server → vnc://your-mac.local (home) # Finder → Go → Connect to Server → vnc://your-mac (anywhere, by its Tailscale name) # Or just walk over and open the lid :)
Good to know
Limitations and things to keep in mind.
| Limitation | Details |
|---|---|
| Rate limits | The $200/mo Max plan has usage caps. During heavy usage (long conversations, parallel tasks), you may hit limits. The bot says so in the thread and pauses until the limit resets. If you have a second subscription, see Several Claude subscriptions. |
| Power outages | If your home loses power, the Mac shuts down. It'll restart automatically when power returns (if configured in System Settings → Energy → "Start up automatically after a power failure"). The bot restarts via launchd. |
| Internet outages | If your home internet drops, the Cloudflare Tunnel goes down and Slack can't reach the bot. Everything recovers automatically when internet returns. Consider a mobile hotspot as backup for critical uptime. |
| macOS updates | Automatic updates can restart your Mac unexpectedly. Disable automatic restarts in System Settings, and apply updates manually when convenient. |
| Context window | Each Slack conversation is a separate Claude session. Very long threads may hit context limits. Start a new thread for new topics to keep context fresh. |