Claude Code agents for small business: a worked example
Can Claude Code run a business task on a schedule? How our Shopify inventory system works, what Claude Code built, what it costs to run and how to start.
Want this done for you? Book a free 30-minute AI audit
Yes. Claude Code can build an agent that runs a business task on a schedule, and it can also run unattended itself in headless mode. Our skincare brand, Hey Bud Skincare, has an inventory agent built with Claude Code that refreshes stock data before the working day and flags what needs attention. Agents like this typically cost $3–15 a month in Claude API fees. On Autopilot, a Melbourne AI consultancy, builds them for Australian businesses, with a Shopify stock agent from $497 setup plus $99 a month.
What is a Claude Code agent?
An agent is a job that runs without you at the keyboard. It has written instructions, access to only the data it needs, a schedule, and a report at the end that a person reads. Claude Code is how you build it and, for some agents, what runs it. The goal is that you start the day with a short list of what needs attention instead of digging for it.
What does our Hey Bud inventory agent do?
Hey Bud Skincare is our own skincare brand, sold online through Shopify and through retailers. It is ours, not a client. Its inventory system does three things before the working day starts:
- A scheduled job on a small server refreshes stock data and takes a snapshot.
- The inventory platform compares stock against sales and forecasts, and marks products that need reordering.
- A daily brief, written by Claude, flags critical stock, retail orders waiting to be picked and supplier bills falling due that week.
What Claude Code did. Ollie Watts, who runs marketing across our businesses and is not a developer, built the whole platform with Claude Code: the stock, orders, shipments and forecasting screens, the scheduled jobs and the daily brief. It wasn’t one big build. Features were added one request at a time as the business needed them, and Claude Code is still how it gets changed.
How does a scheduled agent work, step by step?
Every agent we build follows the same eight steps. None of them needs you to write code; they need you to be precise about the job.
- Write the job down. What to check, what counts as a problem, and who needs to know. “Products with less than two weeks of stock at current sales” beats “check inventory”.
- Give read-only access to the data. For Shopify, a custom app with read scopes only. See connecting Claude Code to Xero, Shopify and Gmail.
- Put the instructions in a file. A CLAUDE.md or instruction file with the checks and an example of the report you want back.
- Choose where it runs. A small cloud server or a computer that stays on. Set its time zone to Australia/Melbourne (or yours) so daylight saving doesn’t shift the run by an hour.
- Fix its permissions in advance. Nobody is there to approve steps, so list exactly what it may do and deny everything else.
- Send the result where you’ll read it. Email, a Slack channel or a dashboard.
- Alert on failure. A job that silently didn’t run looks the same as a quiet morning. Have a separate check that tells you when no report arrived.
- Watch it for two weeks. Read every report against reality before you rely on it.
Should the agent be a script or Claude Code itself?
There are two ways to build it, and the right one depends on how much judgement each run needs.
| Claude Code writes a scheduled script | Claude Code runs on a schedule | |
|---|---|---|
| How it works | A normal program runs each morning and calls Claude only for the part that needs judgement, such as writing the brief | A scheduler starts Claude Code in headless mode, and Claude follows the instructions file each run |
| Best for | Repeatable checks on structured data | Jobs that vary, or that need Claude to investigate |
| Cost per run | Lower | Higher, because Claude does more reading |
| Example | Our Hey Bud inventory system | A morning review of new enquiries that drafts replies for a person to send |
For the second approach, a run is one command. This illustration runs a morning stock check with tight limits:
claude -p "Run the morning stock check described in CLAUDE.md and save the report to report.md" \
--permission-mode dontAsk \
--allowedTools "Read" "Bash(python fetch_stock.py)" "Edit(./report.md)" \
--max-turns 20 \
--max-budget-usd 1.00
dontAsk refuses anything not on the allowed list, --max-turns stops a run that goes in circles, and --max-budget-usd caps what one run can spend. A scheduler such as cron then starts it each morning, for example 0 6 * * * for 6am. The flags are documented in Anthropic’s CLI reference.
What does a scheduled agent cost to run?
In our experience the Claude API cost of a typical small-business agent is $3–15 a month, depending on how much it reads and how often it runs. Add a small server if you don’t already have a computer that stays on. Each of our agents has its own API key and a monthly spend limit, so a mistake costs dollars, not hundreds. Our Claude Code cost guide works through a modelled example in AUD.
What can go wrong, and how do you guard against it?
| Risk | Guardrail |
|---|---|
| The job silently doesn’t run | A separate alert when no report arrives |
| It reads the wrong data | Read-only access, and a person reads every report |
| It runs up a bill | Spend limit on the key, --max-budget-usd and --max-turns on each run |
| The report format drifts | An example report in the instructions file |
| Daylight saving shifts the time | Server time zone set to Australia/Melbourne (or yours) |
| Hidden instructions inside data, such as a product description | No write access, and allowed actions limited to the job |
Our Claude Code safety guide covers permissions and secrets in more detail.
Does every automation need AI?
No. Our DotVA website lead pipeline is a useful contrast. Claude Code built it, including the spam and job-applicant filtering, the lead database and the dashboard, and the core went live in a single day in July 2026. But it runs as ordinary code on Cloudflare, scoring each enquiry with rules, because that job doesn’t need AI on every run. Use AI where the job needs judgement, and plain code everywhere else.
How On Autopilot can help
If you sell on Shopify, AI Inventory Watch is our productised version of this agent: $497 setup plus $99 a month, with the Claude API cost included. A Quick Start ($497 one-off) builds one automation of your choice and hands it over. If you want to learn to build and run agents yourself, the Claude Code Setup Day is $1,500 fixed and ends with one real automation running. If you’d rather not run anything, Managed AI builds and maintains your agents from $1,500 a month. All prices are ex GST; see the pricing page or book a free 30-minute AI audit.
Common questions
Can Claude Code run tasks automatically?
Yes. Its headless mode (claude -p) runs one job from start to finish with no one at the keyboard, so a scheduler such as cron on a server, or Task Scheduler on Windows, can start it every morning. You fix its permissions in advance, because there is nobody there to approve each step.
Does my computer need to stay on for a scheduled agent?
Yes. The agent runs wherever it's installed. For anything the business relies on, run it on a small cloud server or a computer that never sleeps, not on a laptop that goes home at night.
Should a scheduled agent use my Claude Pro plan?
We don't. Each of our unattended agents uses its own Claude API key from a Console account, with a monthly spend limit, so its cost is visible and capped and it never competes with your own Pro or Max allowance.
How long does it take to build a first agent?
A simple read-and-report agent, such as a morning stock check, can be built and tested in a day. A Claude Code Setup Day builds one real automation from your own work by the end of the day. Agents that change data or juggle several systems take longer, mostly in testing.
How is this different from Zapier or Make?
Zapier and Make move data between apps on fixed rules, and they're the right tool for many jobs. A Claude agent adds judgement: it can read messy data, notice what's unusual and explain it in plain English. Use the simplest tool that does the job; many automations need no AI at all.
Want this built for your business?
Book a free 30-minute AI audit call with Jenn Yang. We map where your time goes, name the first systems worth building and give you fixed AUD prices. No obligation.
Book a free AI auditOr have us run it for you, end to end: On Autopilot is Australia's outsourced AI department.