Most descriptions of "getting an AI agent" are written from the demo. Somebody types a
sentence, a browser window fills with text, and the piece ends. What that leaves out is the
part that decides whether you still have a working system in six months: the machine it runs
on, the accounts it uses, the places it can write, and the person who owns all of it.
This page is the honest version of that install. It covers what we set up, what you have to
bring before any of it can start, what the first week looks like, and the part people skip:
what is deliberately left out. If you want the operating detail instead, the
agent runbook is the
companion piece. If you want to see one finished end to end, the
case study follows a single
install from an empty server to handover.
What you end up with
The finished article is not a website feature and not a chat window bolted onto your
existing tooling. It is a service that runs on a machine you control, on a schedule you can
read, and it does three jobs.
- A model connection you own. The agent talks to a language model through
an API account in your name. No shared pool, no reseller in the middle, no "we will increase
your quota" conversation. When you change model, you change one key. - Tools it is allowed to use. Reading a file, querying a database,
fetching a page, sending a message, calling an internal endpoint. Each one is a defined
permission rather than a general ability to do anything. That distinction carries more weight
than the model choice, and it is the part most vendors leave vague. - A schedule and a record. The agent wakes because a timer says so, does
its work, writes down what it did, and goes back to sleep. The record is the file that lets
you or anyone after you answer "what has this thing been doing?"
None of the three is exotic. That is the point. The design we use is close to what
the published
guidance on building effective agents argues for: prefer a defined workflow over an
autonomous loop, give the model a small and legible set of tools, and keep the orchestration
in ordinary code where a person can read it. Where the agent needs to reach a tool or a data
source, we use the Model
Context Protocol interfaces, so a tool written once is not rewritten for every model
vendor that comes along.
There is a second reason to keep the orchestration boring. An autonomous loop is hard to
test because its path through the work changes each time it runs. A sequence of defined steps
can be run against a sample input on demand, compared to the previous output, and reverted if
it regresses. When a business asks "how do we know it still does what it did last month?", the
answer comes from that property and not from the model. The stack choices below are made with
testability in mind, which is also why we push back on requests to "just let it figure out the
steps".
What you bring to the table
An install cannot start from nothing, and the things it needs are mostly not technical.
Being blunt about them here saves a week later.
- A decision on where it lives. A small rented server, an existing machine
on your premises, or a virtual machine in your own cloud account. All three work. What does
not work is "wherever, we will decide later", because the answer sets the backup story, the
network access and who holds the keys. - Account ownership. The model API account, the server, the domain and the
mail the agent sends from must be yours, with you as the billing contact. We work inside
accounts you hold. We do not hold them for you, and this is deliberate: it means the
relationship can end without the system ending. - Two or three real tasks. Not "use AI to be more efficient". Concrete
jobs: summarise the overnight enquiries and post them to a channel, check a supplier's stock
page each morning, draft the weekly figures from a spreadsheet. A named task with a visible
output is what makes the first week testable. - Someone who will be the owner. One person inside the business who
answers questions during setup and keeps the account access afterwards. This person does not
need to write code. They do need to exist. - An honest boundary around data. Which documents and which systems the
agent may touch, and which it may not. The list can change later. It has to be written before
a tool is wired to it, otherwise the permission model is a fiction.
The task list deserves more weight than it usually gets. In our experience the install that
disappoints is almost never the one where the technology failed. It is the one where the
business asked for "an agent" and got a general-purpose assistant that could, in principle, do
many things and in practice answered questions in a chat box nobody opened by week three. The
install that holds is the one where a specific person says "this job, every morning, and I
will notice if it stops". That sentence is worth more than a requirements document, because it
names both the work and the observer.
Before the machine is touched: the base layer
An agent on a fresh server is not one install. It is a small stack, and each layer fails in
a way that looks like a different problem further up. We build in a fixed order so that a
failure is attributable.
- The operating system and a non-root account. The service runs as an
ordinary user, not as root. This single choice removes a whole category of incident, because
the damage an agent can do is bounded by what its user can reach. The practice of running
services under dedicated unprivileged users is set out in
the systemd documentation, which is also how the schedules
are managed on Linux. - An isolated environment. Python's
virtual environments keep the
agent's dependencies away from the system packages. Unglamorous, and the reason an upgrade to
one part does not break another. - Storage that survives the process. A
PostgreSQL database, or a
plain database file, holds the work the agent accumulates. Anything kept only in memory is
lost on the first restart, and there will be a first restart. - A web layer. If anything is served, whether a dashboard or a webhook
receiver, it goes behind a reverse proxy. nginx
or Caddy, both documented and both able to
terminate TLS. Transport security itself is
TLS 1.3 as specified in RFC 8446; there
is no reason to accept less on a new build. - Logs somewhere other than the console. The agent's own record, plus the
system journal. Without this, the first question in week two has no answer.
Two security references get pinned at this stage and revisited at handover:
the OWASP Top Ten for the application
surface, and the NIST Cybersecurity Framework
for the question of what is monitored and who responds. Neither is a certification. Both are
checklists that stop the obvious omissions.
The order matters more than it looks. If the database is installed before the environment is
isolated, you will have a database whose connection details live in the system interpreter's
site-packages, and moving it later is a day of careful work rather than an hour. If the web
layer is put up before logs leave the console, you will debug a proxy by tailing a terminal
and lose the evidence when the session closes. We have made both of these mistakes on other
people's machines, which is why the order is written down here and not improvised.
The week, day by day
The shape below is what a one-agent install has looked like in practice. It is a sequence,
not a promise of seven working days. Several of these steps are an hour's work, and one of them
routinely waits on an account approval that is out of our hands.
- Day one: access and inventory. Accounts verified, server reachable, the
owner's task list written down. No software installed yet. A surprising share of installs
that go wrong went wrong here, at an assumption about who could log in to what. - Day two: the base layer. The stack above, built in order, each layer
tested before the next is added. - Day three: the first tool. One narrow capability, connected end to end,
exercised by hand. We start with the least dangerous useful thing rather than the most
impressive one. - Day four: the schedule and the record. The agent starts waking on a
timer and writing down what it did. From here every change is observable. - Day five: the real task. The task from day one, now automated, run
alongside the person who normally does it. Their disagreements are the specification. - Day six: failure practice. The model account is disabled, the network is
cut, a malformed input is fed in. We watch what the agent does, because the behaviour of a
system on a bad day is the system. - Day seven: handover. Access transferred, documentation written, the
spend console walked through. The day-by-day
account covers the same week with more detail on each stage.
Day three is the one that changes people's expectations. By that point the model account is
live, the machine is reachable, and the temptation is to connect the most valuable capability
first. We do the opposite. The first tool is deliberately small: read one table, or fetch one
URL, and print the result into the log. The reason is that every subsequent failure is easier
to reason about once one working path exists. A business watching day three sometimes wonders
why so little is happening. The answer is that the alternative, wiring five capabilities before
any of them has been observed to work, is how an install reaches day seven with a system
nobody can debug.
Day six is the one people want to skip, and the one that earns the handover. Disabling the
model account mid-run tells you whether the agent fails loudly or silently. Cutting the network
tells you whether it retries forever, burning cost, or gives up and records why. Feeding
malformed input tells you whether one bad record stops a whole batch. None of these are
hypothetical failures. All three have happened on installs in our own history, and in each case
the fix was a line of configuration found in an hour rather than an incident discovered in
week five.
How we prove it works before we leave
"It worked when we tested it" is not evidence. Four things are:
- You run it, not us. The owner performs the task from their own account
while we watch and say nothing. If it needs us to work, it does not work. - A written record of N successful runs. Actual scheduled runs, in the
log, with outputs. Not a demonstration run we triggered. - A failure we caused on purpose. The agent refuses correctly, or degrades
and says so. The note from day six is the evidence. - A restore from backup. The data store is restored to a scratch machine
and the agent runs from it. A backup nobody has restored is a hope.
We write the N down at the start rather than the end, because a threshold chosen after the
runs is not a threshold. For a daily schedule, ten consecutive scheduled runs is the usual
bar. It is enough to cover a weekend and one ordinary holiday, and it is small enough that a
business is willing to wait the fortnight.
A real install
Anonymised from a recent job, because the pattern is the useful part. The business had one
recurring pain: overnight enquiries from a web form were read the next morning, by a person,
one at a time. Nobody was slow on purpose; it was simply the first thing that got pushed when
the day started.
We built one tool that reads the enquiry store, one that classifies and drafts a reply, and
one that posts a digest to a channel the team already used. The schedule ran at 07:10 on
weekdays. The risky part was not the model. It was that the first draft of the classifier
confidently mislabelled a supplier's quote request as a complaint, and a person caught it on
day two. That correction is the install. The
case study walks the same job
with the decisions that were reversed.
What made the correction possible was the record. Every run wrote down its input, the label
it assigned, and the reasoning it produced. Without that, the misfiled quote request would have
surfaced a week later as a supplier wondering why they had been ignored. With it, the review
took ten minutes and produced a rule change: any enquiry containing a price or a unit count
goes to a human regardless of the label. That rule is now part of the configuration on
installs with a similar shape.
What you own at the end
Every account is in your name, every credential is in your password manager, and the
configuration is in a repository you can read. There is no licence file that expires, no
service that stops when a subscription lapses, and no part of the agent that only we can
start. The server is an ordinary machine and the software is ordinary software. The
ownership page
states the same commitment in more detail, and the
cost page is where the
running figures live: model calls by volume, the server, and the honest note that a
long-running task costs more than a short one.
What you do not get is a permanent dependency. If the day comes when you want another firm
to take it over, or to run it yourself, the handover is a repository and a set of accounts
rather than a negotiation.
What this does not include
The install does not cover editing your website, running your advertising, or doing
business research and strategy for you. We build and hand over the system. What it works on
afterwards is your call.
It also does not include an open-ended "make it smarter" retainer. That is a different
product, and selling it as part of an install is how installs turn into dependencies.
One cost to keep in mind. The agent calls a model by the use. Left to run
all day on long tasks, that bill grows. We set its routines to cheap work by default and show
you how to watch the spend.
If you are weighing whether this is worth the effort at all, there is a useful piece of
context in the wider market: a large majority of small European firms have still not put AI
into any regular process, and the
adoption
figures explain why the first install is usually the one that matters.
What it costs to keep running
Install fees get all the attention and the running cost is what people forget. Three things
bill every month, and only one of them is uncertain.
- The server. A small virtual machine that runs one agent comfortably is
in the region of ten to twenty euro a month. It is a fixed number and it does not care how
much work the agent does. - Model calls. This is the variable one, and it scales with input length
and repetition rather than with anything a business can eyeball. A short scheduled task that
reads a dozen records costs cents a day. A task that reads a long document every ten minutes
costs tens of euro. The difference is not the model's intelligence, it is the volume of text
pushed through it. - Storage and backup. Small for one agent, and worth paying rather than
skipping. A few euro a month keeps a tested backup off the same disk.
The practical control is a spend cap on the model account plus a weekly look at the bill.
Both providers we use expose usage by key, which means a runaway task is attributable to a
specific agent rather than appearing as one alarming total. We set the cap low on day one and
raise it once a week of real running has shown what normal looks like. A cap that is too high
from the start does not protect you; it just delays the discovery.
Long tasks are the usual surprise. A scheduled job that summarises five short records is
cheap because each call carries little text. A job that re-reads a hundred-page document every
hour is expensive because every call carries the whole document again. When a business tells us
a job "should be easy", the question we ask is how much text it touches per run and how often
it runs, because those two numbers, not the job's difficulty, produce the bill.
Permissions, and why the tool list is the design
An agent is only as safe as the smallest set of things it can do. This is not a compliance
point, it is an engineering one: the number of ways a system can fail is roughly the number of
actions it is permitted to take.
On every install we write the tool list before wiring anything, and each entry names a
specific capability with a specific scope. "Read the enquiries table, last 24 hours" is a tool.
"Access the database" is not a tool, it is a liability, because it also permits the update that
corrupts the table and the drop that loses it. The same applies to files: a directory the
agent may write into, not the whole filesystem. And to the web: named endpoints, not an
unrestricted fetch that can be pointed anywhere.
Two rules have earned their place on every install. First, anything that leaves the building
under the business's name (an email, a published page, a message to a customer) needs either a
human approval step or an explicit written decision that it does not. Second, anything that
spends money needs a hard cap in the account, not a promise in the prompt. Instructions to a
model are advisory. Limits in the account are not.
Where the agent calls out to other systems, we prefer defined interfaces over bespoke
scripts, which is the practical argument for the protocol links above. A tool described once,
with its inputs and its permitted scope written down, can be reviewed by a person and audited
in a log. A hand-rolled script that shells into a system does the same work and leaves nothing
a reviewer can read.
What maintenance actually looks like
An installed agent is not finished on handover day. It is a small system, and small systems
need the same care as large ones, just less of it. Realistically that is a few hours a month,
and a business should know what those hours buy.
- Watching for silence. The most common failure is not an error, it is a
task that stops producing output because an upstream page changed shape or a credential
expired. A daily check that the expected record appeared is more valuable than any alerting
on exceptions, because silence is the failure mode that goes unnoticed. - Patch cycles. The operating system and the language runtime get security
updates. Applying them on a schedule, then running the smoke test, is the whole job. Skipping
it for a year is how an install becomes an incident. - Reviewing the record. Once a month, read what the agent did rather than
whether it ran. Classifications that have drifted, drafts that keep needing the same edit, a
task whose output nobody reads any more. The last one is the most useful finding and the
least comfortable, because it means the job was never needed. - Restoring once. A backup that has never been restored is a document, not
a backup. Once a quarter, restore to a scratch machine and run the smoke test against it.
None of this requires the original installer. It requires the record and the runbook being
accurate enough that a different person could follow them, which is the standard we hold the
handover documentation to. If a business would rather not do these four things themselves,
that is a support arrangement and a separate conversation, priced as such rather than folded
into the install and forgotten.
When an agent is the wrong answer
Some jobs that arrive as agent requests should not be built as agents. Saying so plainly is part
of the service, because the alternative is an install that runs, costs money, and solves
nothing.
- When the rule is known and fixed. If the task is "when an invoice over
ten thousand arrives, route it to the director", that is a rule in your existing software, not
a language model. Writing it as an agent adds cost, latency and a new failure mode to something
a line of configuration already does correctly. - When the volume is tiny. A task that happens twice a month, handled in
four minutes, does not repay an install. Automating it is a hobby, and hobbies should be
honest about being hobbies. - When the output has no observer. If nobody will notice whether the output
is right, no amount of build quality fixes that. It is the single strongest predictor of an
install that quietly becomes shelfware. - When the underlying data is a mess. An agent reading inconsistent records
produces inconsistent output faster. Cleaning the data is the project, and doing it
before the agent exists costs less than discovering it afterwards.
We would rather lose a job than hand over those four. The installs that work are the ones
where a person could describe the job, the output, and how they would notice a change. That
description is not a formality; it is the design.
The model question, answered honestly
Businesses expect the model choice to be the central decision. On our installs it is one of
the last. The gap separating the current generation of capable models is narrower than the gap
separating a well-described task from a vague one.
What actually changes between models is cost per token, latency, how well they follow a long
written instruction, and whether the provider will sign the terms your business needs. The first
two are arithmetic. The third is testable in an afternoon against your own sample inputs. The
fourth is a procurement question and belongs to the same conversation as where the data sits.
So the install is built so the model is a setting, not a foundation. The agent calls a model
through one interface, the task logic lives outside that interface, and swapping providers is a
configuration change rather than a rewrite. We test the installed agent against two providers
before handover, not to pick a winner on principle but to confirm the abstraction holds. An
install that breaks when the model changes was sold as a product when it was really a
dependency.
Two claims we do not make. We do not claim one model is meaningfully "smarter" for your job
without having run your job. And we do not claim a cheaper model will do, because the failure
mode of an under-specified task looks the same on both and gets blamed on the model. If a task
needs a stronger model to work at all, that is a signal the task description needs work first.
The network boundary and the data question
Every install forces a decision about what the agent can reach and what leaves the machine.
It is usually discussed late, under the heading of compliance, and it is better discussed first
because it changes the design.
- Inbound. Does the agent accept connections from outside, or does it only
call out? Outbound-only is materially safer and covers most scheduled work. Where an inbound
webhook is needed, it sits behind the proxy with a shared secret and a rate limit, and it is
the only path in. - What leaves. Text sent to a model provider leaves your environment. That
is inherent to the model call and cannot be designed away, only bounded. The bound is a rule
about which fields may be included: a customer's order lines may travel, their identity
documents should not. We write that list and put it in the configuration rather than in a
prompt. - Where it lands. Some tasks only need a local model, and a small local
model on the same machine keeps everything inside. It is slower and weaker than a hosted
frontier model, and for a narrow classification job that is often an acceptable trade. The
option is worth pricing before assuming the hosted route is the only one. - Retention. Provider retention policies differ and change. If a business
has a written retention position, the install should reference it and the model route should
be chosen to satisfy it, not chosen first and reconciled later.
None of this is a legal opinion, and we say so explicitly rather than letting the section
imply one. It is the engineering half of the question: what the system is technically capable of
sending, and where the records of what it sent live. Whether that arrangement satisfies a
particular regulation is a question for whoever advises the business on that regulation, and the
install is built so the answer can be evidenced rather than asserted.
What the handover document contains
The handover is a written artefact, not a conversation. On our installs it is a single
document in the repository beside the configuration, and it is written for whoever picks the
system up next rather than for the client's lawyer. Nine sections, and a tenth if the install
touches personal data.
- What it does and does not do. The task in a sentence, then the boundaries.
A new reader should be able to answer "would this handle X?" without asking anyone. - The accounts. Every external service the system uses, whose name it is in,
what the credential is called in the password manager, and when it last worked. No secrets in
the document itself; the pointer is the value. - The map of the machine. Which directories hold what, which service runs
the schedule, which user it runs as, and which ports are open. Short enough to read in five
minutes. - How to change it. The one file that holds the task description, the one
file that holds the tool list, and the command that restarts the schedule. Anything requiring
more than a paragraph gets a pointer instead of steps. - How to tell it is broken. The three checks that distinguish "not running"
from "running and producing nothing", and where the log for each lives. - What was broken on purpose. The day-six failure tests, what was expected,
and what happened. This section is what a future maintainer reads before their first change. - The spend. Current monthly figure, the cap, and who can raise it.
- The backup. Where it goes, how often, and the date it was last restored
and verified. A restored date older than a quarter is a finding. - Open questions. Anything the install did not settle, written as a
question with the person who can answer it. Leaving this section empty usually means something
was decided without recording why.
The tenth section, where personal data is involved, is the list of fields that may travel to
a model provider and the fields that may not. It is short, it is specific, and it is the
document a business actually reaches for in a year when someone asks what the system sends. We
write it before the first tool is connected, because retrofitting it means reading code to find
out what the system was always doing.
Four failures we see repeatedly
These are not hypothetical. Each has appeared on more than one install, and each has a
shape that is recognisable once you have seen it.
The credential that outlives its owner. An API key was issued to a member
of staff rather than to the business, and when that person leaves, the agent stops. The
symptom is an install that ran for eight months and then failed on a Monday with an
authentication error and nobody can find an account to fix. The fix is structural: keys belong
to roles or to the business, never to an individual, and the handover document records which is
which. We check this on day one rather than discovering it in year two.
The silent upstream change. The agent reads a supplier page or an internal
export that changes shape. Nothing errors. The parser returns nothing, the digest goes out empty,
and the first person to notice is a customer asking why they stopped hearing about stock. The
fix is the silence check described above: assert that the expected output is non-empty, and
treat empty as a failure rather than a quiet day. It is the cheapest piece of monitoring on the
whole system and the one most often missing.
The retry storm. A task fails, retries immediately, fails again, and does so
in a loop. If each attempt calls the model, the bill climbs while nothing is being produced. The
fix is a retry limit with a backoff and a hard stop, plus the spend cap in the account as a
second line. We have seen this happen on a Friday and be discovered on a Monday, which is
exactly the window a cap is for.
The task nobody owns. The agent runs reliably, produces output, and no one
reads it. This is the failure that no monitoring catches, because the system is working
perfectly. It is caught in the monthly review, by asking whether anyone used the output last
month, and the honest answer occasionally is that the job should be switched off. Turning a
task off is a successful outcome of that review, not a failure of the install.
A checklist to take away
If you are comparing quotes, or doing this yourself, these are the questions that separate a
real install from a demonstration.
- Whose name is on the model account, the server and the domain?
- Can the agent only do the things it needs, or can it reach further?
- Where does it write down what it did, and would a stranger understand it?
- How many successful scheduled runs before handover, and who agreed that number?
- What was deliberately broken, and what did the agent do?
- Has a backup been restored, or only taken?
- What is the monthly cap on model spend, and who raises it?
Every one of these has a short answer on a good install, and a vague one on a bad install.
If the answers are vague, the machine may still be running, but the install is not finished.
Sources and references
- Anthropic, Building effective agents,
anthropic.com/engineering/building-effective-agents - Model Context Protocol, Introduction,
modelcontextprotocol.io - Python Software Foundation, venv: Creation of virtual environments,
docs.python.org/3/library/venv.html - systemd project, systemd documentation,
systemd.io - IETF, RFC 8446: The Transport Layer Security (TLS) Protocol Version 1.3,
rfc-editor.org/rfc/rfc8446 - nginx, Beginner's Guide,
nginx.org/en/docs/beginners_guide.html - PostgreSQL Global Development Group, PostgreSQL Documentation,
postgresql.org/docs/current - Caddy, Caddy Documentation,
caddyserver.com/docs - OWASP Foundation, OWASP Top Ten,
owasp.org/www-project-top-ten - NIST, Cybersecurity Framework,
nist.gov/cyberframework
Revision note: the install sequence and the two failure modes above were last reviewed
in November 2026. Where a claim here conflicts with the runbook, the runbook is the current
operating detail.