I run 10+ autonomous businesses from a single Docker server. Every one of them uses how to use Claude Code at its core — not for writing Python scripts, but for running entire business operations on a cron schedule while I sleep. Blog posts, newsletters, social media queues, outreach campaigns. All of it. Unattended.
Most tutorials on Claude Code treat it like a coding tool. It is one. But if that’s where you stop, you’re leaving the most powerful part untouched.
This guide is the one I wish I had when I started. You’ll get the setup, the system that makes it actually work (CLAUDE.md), and the exact patterns I use to run autonomous AI operations at scale. You don’t need to be a developer. You need to be willing to build.
Let’s go.
What Is Claude Code? (Beyond the Dev Hype)
Claude Code is Anthropic’s command-line AI agent. You install it, open a terminal, and from that moment Claude can read files, write files, run commands, search the web, call APIs, and execute multi-step tasks — all from a conversation in your shell.
That’s what makes it different from claude.ai in a browser tab. The browser version answers questions. Claude Code acts on things. It’s the difference between asking a contractor for advice and handing them the keys to your workshop.
Here’s what most people miss: Claude Code is not just for code. Yes, it writes TypeScript and Python beautifully. But the reason it’s changed my business is that it can be pointed at any repeatable task — with the right context file telling it what to do.
I have containers running Claude Code 24/7 on tasks like:
- Writing and publishing blog posts from a keyword queue (yes, including this one)
- Monitoring social channels and drafting engagement replies
- Running weekly Google Analytics + Search Console sweeps and logging insights
- Checking competitor sites for market intelligence and updating Airtable
- Sending newsletter campaigns to Sendy lists
The developer crowd figured out Claude Code first. But operators — people who run businesses, not just ship code — are the ones who are going to use it most. Because agents don’t care if the task is “refactor a React component” or “pull the top 5 keywords from Airtable, write a post, and publish it to WordPress.” They just run the job.
One more thing worth knowing: Claude Code is billed through Anthropic’s API, not the chat subscription. You pay per token. For operators running daily workflows, this is cheaper than a team of VAs and faster than any human. The math isn’t close.
How to Install Claude Code in 5 Minutes
You need two things: Node.js and an Anthropic API key. That’s it.
Step 1: Get Node.js
If you’re on Mac, the fastest path is Homebrew:
brew install node
On Ubuntu/Debian Linux:
curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
sudo apt-get install -y nodejs
Windows users: grab the LTS installer from nodejs.org. Takes two minutes.
Step 2: Install Claude Code
npm install -g @anthropic-ai/claude-code
Step 3: Get Your API Key
Go to console.anthropic.com, create an account, and generate an API key under “API Keys.” Drop a few dollars of credit in. For testing, $5 will last you hours.
Step 4: Set Your Key and Launch
export ANTHROPIC_API_KEY="your-key-here"
claude
You’re in. Type something. Claude responds. Ask it to list the files in your current directory. Ask it to read a file and summarize it. You’ll immediately feel the difference from the browser — it has access to your file system, and it can do things.
Pro tip: Add the export line to your ~/.bashrc or ~/.zshrc so you don’t have to set it every time.
echo 'export ANTHROPIC_API_KEY="your-key-here"' >> ~/.zshrc
source ~/.zshrc
One session, done. Claude Code is live.
Your First CLAUDE.md: Teaching Claude Your Business Context
This is where Claude Code goes from “interesting tool” to “autonomous operator.” The CLAUDE.md file is how you give Claude persistent context about what you are, what you do, and how you want things done — without repeating yourself every session.
Every project directory can have a CLAUDE.md file. When Claude Code starts in that directory, it reads that file first. It becomes the operating manual for the agent.
What Goes in CLAUDE.md?
Think of it as an onboarding document for a new team member who forgets everything between conversations. You want to cover:
- Identity: What business is this? What does it do? Who’s the operator?
- Brand voice: How should it sound? What tone? What to avoid?
- Credentials and integrations: Which APIs are available? What environment variables to use?
- Standard procedures: How to publish a blog post, how to schedule social, what to do when a queue is empty
- Non-negotiables: Rules that can never be broken (“always publish as ‘publish’, never draft”)
Here’s a minimal example for a content business:
## Identity
You are the AI agent for [YourBrand]. You run autonomous content operations.
Owner: [Your Name]. Location: [Your City].
## Brand Voice
Direct, helpful, no corporate fluff. Sound like an expert friend.
## Rules
1. Always publish posts with status: publish — never draft
2. Set RankMath focus keyword on every post
3. Always end with: SKILL_RESULT: success|fail|skip
## WordPress
- URL: stored as WP_URL
- Username: stored as WP_USERNAME
- App Password: stored as WP_PASSWORD
My production CLAUDE.md files are 400+ lines. They cover every integration, every API pattern, every edge case. The more you put in, the less you have to supervise. That’s the point.
The other file type to know: skill files. I keep these in .claude/skills/ — they’re mini playbooks for specific tasks. A blog-writer.md that documents the full 10-step blog publishing pipeline. A social-miner.md that explains how to find and draft social replies. Claude reads them on demand and follows the procedures exactly.
This combination — CLAUDE.md for persistent context, skill files for task procedures — is the foundation of the JonOps system. Every brand I run has its own container with its own CLAUDE.md. The agent wakes up, knows exactly where it is and what to do, executes the task, and goes back to sleep.
For a deeper look at building real AI systems from the ground up, see my post on six months from hackathon to production — every mistake I made so you don’t have to.
Get the AI Edge
Weekly automation plays, build logs, and AI operator insights — straight from the JonOps lab.
5 Ways I Use Claude Code to Run Autonomous Businesses
Enough theory. Here’s what the JonOps fleet actually runs on Claude Code, daily, without me touching it:
1. Blog Post Pipeline (This Post Was Written by Claude Code)
The daily blog writer skill pulls a keyword from Airtable, researches the top-ranking competitors via Firecrawl, writes a 3,000+ word post in brand voice, generates images via Replicate, uploads to WordPress with full RankMath SEO, and logs everything back to Airtable. One agent, one cron job, zero humans. The pipeline runs at midnight and the post is live before I wake up.
2. Social Media Queue
Social poster agents repurpose the day’s blog post into platform-native captions for Facebook, Instagram, LinkedIn, Bluesky, Pinterest, and X — each with the right character count, hashtag strategy, and image aspect ratio. They schedule via Metricool API. I review the queue once a week, approve in bulk, done.
3. Newsletter Campaigns
The newsletter agent picks a topic from the queue, writes a warm-hug email in Jon’s voice, and sends it via Sendy to the list. The entire Sendy integration — subscribe, unsubscribe sync, bounce handling — runs through API calls in the skill file. No MailChimp dashboard, no manual sends.

⚡ GET THE AI EDGE
Weekly AI tips that actually save you time and money. No fluff, no hype — just what works.
4. Market Intelligence Sweep
Monday mornings, a market intel agent scrapes competitor sites for new content, checks keyword rankings via DataForSEO, and logs trends to Airtable. By the time I have coffee, there’s a fresh intelligence report waiting. That’s how I spotted that “how to use claude code” was trending at 14,800 searches/month with near-zero competition — and why you’re reading this post.
5. Lead Generation Research
The outreach researcher finds Reddit threads, LinkedIn posts, and community discussions where my ICP is asking questions that my content answers. It drafts response templates and queues them in Airtable for human review before posting. Warm outreach, sourced autonomously.
All of this runs in Docker containers on a single VPS. Total infrastructure cost: under $40/month. If you want to understand what’s possible at the small business level, read my breakdown of the best AI agents for small business — it covers what’s actually worth building vs. what’s hype.
How to Run Claude Code on a Schedule (Cron + Docker)
Interactive sessions are useful for exploration. But the real leverage is making Claude Code run without you — on a schedule, in a container, autonomously.
The JonOps Pattern
Each brand runs in its own Docker container. The container has:
- Node.js + Claude Code installed
- A project directory with
CLAUDE.mdand.claude/skills/ - Environment variables injected at runtime (WP credentials, API keys, etc.)
- A crontab that fires skill commands on schedule
The crontab entry looks like this:
# Run blog writer at midnight daily
0 0 * * * claude --no-login -p "$(cat .claude/prompts/blog-writer-prompt.txt)" >> /logs/blog-writer.log 2>&1
The --no-login flag skips the interactive setup. The -p flag passes a prompt directly. The skill prompt reads like: “Read the skill file at .claude/skills/blog-writer.md and execute the complete pipeline.”
The Non-Docker Version (For Beginners)
You don’t need Docker to start. If you’re on a Linux server or Mac with a cron daemon, you can run the same pattern directly:
crontab -e
# Add this line:
0 8 * * * export ANTHROPIC_API_KEY="your-key" && cd ~/my-project && claude --no-login -p "Run the daily task defined in CLAUDE.md" >> ~/logs/agent.log 2>&1
This runs every day at 8am, executes Claude Code in your project directory, and logs the output. Start here, add Docker later when you have 3+ agents running.
The Telegram Alert Pattern
Every skill I run ends with a Telegram message — success, failure, or skip. It’s the only monitoring I need. I wake up, check Telegram, see a row of green checkmarks, go back to my coffee.
bash /path/to/telegram-alert.sh "✅ [brand] skill-name — Published: Post Title | 3200 words"
If I see a red X, something broke. I go look at the log. That’s it. Entire fleet, one Telegram channel, five minutes of monitoring per week.
Claude Code Mistakes I Made So You Don’t Have To
Six months of running autonomous agents teaches you things no tutorial covers. Here are the real mistakes, not the theoretical ones:
Mistake 1: Vague CLAUDE.md = Vague Output
If your CLAUDE.md says “write good content,” you’ll get generic AI slop. If it says “write in Jon’s voice: direct, builder-first, numbers first, no corporate jargon, energy check: would Jon say this out loud?”, you get something worth reading. Be specific to the point of being obsessive. The agent cannot infer what you mean; it can only execute what you said.
Mistake 2: No Skill Files = Re-explaining Everything Every Time
The first month I ran agents interactively and re-explained the blog pipeline in every prompt. When I moved the procedure to a blog-writer.md skill file and changed the prompt to “read and execute the skill at .claude/skills/blog-writer.md,” the consistency jumped immediately. The agent follows documented procedures more reliably than it follows improvised instructions.
Mistake 3: Skipping the Verification Step
Every skill needs a verification step at the end. After publishing a post, the agent should curl the live URL and verify the title appears. After sending a newsletter, check the Sendy API for confirmation. Don’t assume success because the API returned 200. I’ve had “successful” WordPress publishes that went to draft because of a field name mismatch. Build the check in from day one.
Mistake 4: One Big Prompt vs. Step-by-Step Skills
Early on I wrote 2,000-word prompts trying to cram everything in at once. Claude Code handles step-by-step procedures better than big-bang instructions. Break complex tasks into numbered steps in the skill file, with clear decision points (“if queue empty, skip gracefully”). The agent executes sequentially and the output is far more reliable.
Mistake 5: Forgetting Context Window Limits
Long-running agent sessions accumulate context. At some point, performance degrades — the agent starts forgetting early instructions or getting confused by accumulated state. For long tasks, structure your skill so the agent completes one thing, exits, and starts fresh for the next. Don’t try to do everything in a single infinite session. Build for clean exits and clean starts.
Claude Code FAQ
Do I need to be a developer to use Claude Code?
No. You need to be comfortable in a terminal — that’s it. If you’ve ever run an npm install or a pip install, you have enough command-line experience to get started. The agent handles the complex programming; your job is to write the CLAUDE.md that tells it what to do and to evaluate whether the output is good.
How much does Claude Code cost?
Claude Code uses Anthropic’s API pricing. At current rates, running a daily blog post pipeline with SERP research, image generation, and publishing costs roughly $0.50–$1.50 per run depending on article length and model. For 30 posts/month that’s $15–$45 in Claude API costs. Compare that to a content writer. There’s no comparison.
Claude Code vs. Cursor vs. GitHub Copilot — what’s the difference?
Cursor and Copilot are IDE tools optimized for writing code inside an editor. Claude Code is a terminal agent that can do anything — write code, call APIs, manage files, run scripts, browse the web. The IDE tools are better if your primary use case is pair-programming. Claude Code is better if you want to build autonomous workflows that operate independently of any editor. Different tools for different jobs.
Can Claude Code browse the internet?
Yes, via tools. With the right configuration and MCP (Model Context Protocol) servers, Claude Code can fetch URLs, search the web, and scrape pages. My agents use Firecrawl for structured scraping and DataForSEO for SERP data — both called via API from within the skill pipeline.
What’s the difference between Claude Code and just using the Claude API directly?
The API gives you a raw model to call programmatically. Claude Code gives you a pre-built agentic shell with tool use, file access, multi-step execution, and an interactive terminal interface baked in. Claude Code is built on the API. Use the API if you’re building your own product; use Claude Code if you want to run agents without writing an agent framework from scratch.
Is Claude Code safe to run autonomously?
With proper skill files and guardrails, yes. My agents have clear rules: never make pricing commitments, never delete data without snapshotting first, always log actions, always send Telegram alerts on failure. The key is defining the constraints explicitly in CLAUDE.md. An agent with clear rules is far more predictable than an agent left to improvise. If you want to go deeper on the safety patterns, check out my guide to the self-hosted AI stack — it covers infrastructure decisions that matter for autonomous deployments.
The Operator Mindset: Start Building Your First Autonomous Loop Today
Most people treat AI tools as productivity multipliers — they answer questions faster, write drafts quicker, summarize longer. That’s real value. But it’s not the ceiling.
The ceiling is: one operator, running 10+ autonomous AI businesses, from a $40/month server, while they sleep.
Claude Code is how you get there. Not because it’s magic, but because it gives you a capable agent that reads your procedures, executes your workflows, and reports back — without supervision, without a salary, without sick days.
Start small. Pick one repeatable task in your business — a weekly report, a daily content piece, a lead research sweep. Document it in a CLAUDE.md. Write a skill file with the steps. Run it once interactively and watch what happens. Fix what breaks. Run it again.
That’s how the JonOps fleet started. One container. One skill. One cron job. Then another. Then another. Now it’s 10+ brands, each with their own autonomous agent, each shipping content and managing operations on a schedule.
The proof of work is the work. And Claude Code is the operator that does it.
Total conquer, complete domination. Let’s build.
Get the AI Edge
Weekly automation plays, build logs, and AI operator insights — straight from the JonOps lab.

📥 FREE: THE AI PLAYBOOK
The exact tools and workflows I use to run a one-person agency. 25 years of marketing experience distilled into an actionable guide. Yours free.
