Infrastructure for Agents
Run a fleet of agents in production: compute, sandboxes, durable workflows, queues, state, tenant isolation, gateways and safe delivery.
2 modules · 8 lessons~16 hoursUpdated 2026-10-30Certificate included
- Lessons8
- Quizzes8
- Sources49
- Of study~16h
About this course
About this course
An agent that works on your laptop still needs somewhere to run, a safe place to execute the code it writes, a way to survive crashes and week-long waits, storage for its state, credentials it can't leak, a route to several model providers, and a release process that doesn't break cases in flight. This course builds that platform for a fleet of per-step agents that review documents, draft replies, run identity checks and calculate payments, using the stacks AI builders actually pick today: Vercel Fluid compute, Sandbox, Workflow and Queues, Claude Managed Agents, Modal, E2B, Temporal, Inngest, Restate, Neon, Supabase, Upstash and the main AI gateways. Every lesson has costed worked examples, short Python code, primary sources and exercises you run with Claude.
About the running example
The examples follow a fictional property-law (conveyancing) firm in England and Wales and the other firms on the same platform, served by a fleet of per-step agents (search review, enquiries, ID checks, completion statements). It's a case study, chosen because its documents are long, structured and high-stakes. You don't need a legal background, and the same patterns apply to contracts, insurance claims, invoices, support tickets or patient records. In the lessons, a matter is one client's case and a solicitor is the lawyer who signs work off.
What you'll learn.
- 1Choose where each agent runs (Fluid functions, containers, Modal, Managed Agents, eve on Vercel) from its duration, CPU profile, statefulness and cost, and cost the choice with real rates
- 2Run model-written code in a sandbox with the right isolation level, egress policy, credential brokering and lifecycle
- 3Design durable workflows and queue consumers that survive crashes, deploys and week-long waits, and reason precisely about replay, retries and at-least-once delivery
- 4Decide where each kind of agent state lives (system of record, workflow log, transcripts, files, coordination) and size it
- 5Isolate tenants and secrets end to end: short-lived credentials, row-level security, per-tenant keys and budgets
- 6Put an AI gateway in front of the fleet and ship agent changes through preview environments, eval gates and gradual rollouts
2 modules, 8 lessons.
9h 50m of lessons
Module 1 · 4 lessons · 4h 55m
Compute and execution
Where agent code runs, where model-written code runs, and how long-running work survives failure and waiting.
- 1Where agents runAgents spend most of their life waiting on models and people. How that shapes the choice between Fluid functions, containers, Modal, Claude Managed Agents and eve on Vercel, with real rates and a costed fleet.1h 10m7-question quiz6 sources
- 2Sandboxes for agent codeWhen an agent writes and runs code, that code is untrusted. The isolation spectrum from containers to gVisor to Firecracker microVMs, the sandbox products AI builders use, and how to set lifecycle, egress and credentials.1h 15m7-question quiz7 sources
- 3Durable execution enginesHow Temporal, Inngest, Restate, Trigger.dev and Vercel Workflow keep multi-step agent work alive across crashes, deploys and week-long waits, through one shared model of steps, journals, replay and retries.1h 20m7-question quiz6 sources
- 4Queues, schedules and background jobsHow to buffer bursts, fan out events, keep one customer from starving another, and schedule work for days or weeks, with at-least-once queues, per-tenant concurrency, Little's law sizing and the right scheduler for each wait.1h 10m7-question quiz6 sources
Module 2 · 4 lessons · 4h 55m
State, access and delivery
Where agent state lives, how tenants and secrets stay separate, how model traffic is routed and governed, and how changes reach production safely.
- 5State, sessions and checkpointsAn agent fleet keeps six kinds of state with different owners and lifetimes. Where each belongs (Postgres on Neon or Supabase, workflow journals, session stores, sandbox snapshots, object storage, Redis), how checkpoints work at each layer, and how to size, protect and delete it.1h 15m7-question quiz6 sources
- 6Secrets, identity and tenant isolationA platform serving several customer organisations must keep each one's cases, documents, credentials, model traffic and spend apart at every layer. Tenancy models, short-lived credentials with OIDC, row-level security in Postgres, credential brokering and per-tenant keys.1h 15m7-question quiz6 sources
- 7AI gatewaysOne control point between your agents and every model provider. What Vercel AI Gateway, OpenRouter, LiteLLM and Portkey do (routing, fallbacks, keys, budgets, logging, data controls), the arithmetic of fallbacks, and the ways a gateway can mislead you.1h 10m7-question quiz6 sources
- 8Environments and delivery for agentsShipping a prompt, model or gateway change to a fleet with hundreds of cases in flight. What a release contains, preview environments with database branches and capped keys, eval gates in CI and how much they can detect, gradual rollouts by customer and case, and what happens to work already running.1h 15m7-question quiz6 sources
A production platform slice for one agent
Build the infrastructure under one agent from the fleet (a payment calculator), end to end and on synthetic data. A turn handler, a sandboxed calculator, a durable workflow fed by an idempotent queue, tenant-isolated state, a gateway with per-customer keys and budgets, and a CI pipeline with an eval gate.
Finish it. Get certified.
Complete every lesson of Infrastructure for Agents and you get a certificate with your name on it. Free, like the course.
- A public page with a certificate ID anyone can check
- Download it as a PDF
- Add it to LinkedIn in one click
Infrastructure for Agents, answered.
Is Infrastructure for Agents free?
Yes, for everyone: all 8 lessons, 8 quizzes, the capstone brief and the certificate are free, with no card and no trial. The hands-on exercises need the tools listed under Prerequisites.
Do I get a certificate?
Yes. Finish every lesson of Infrastructure for Agents and you get a certificate with your name and a certificate ID, on a public page anyone can check. Finishing every course in a learning path earns the path certificate too. You can download each one as a PDF and add it to LinkedIn. They're certificates of completion from the Coders In Hoods AI Academy, not an accredited qualification.
How long does Infrastructure for Agents take?
About 16 hours: 2 modules and 8 lessons, at your own pace. Your progress is saved to your account, on every device.
What do I need before I start?
Agent Foundations and Building Agents with Claude and eve (or equivalent: you have built a tool-using agent). Senior backend experience: HTTP, Postgres, queues, Docker and CI/CD. Comfortable reading and writing Python. Recommended alongside Production Agent Systems, which covers multi-agent design, prompt-injection security, compliance and observability.
More in Production AI at Scale.
- AdvancedAI · Reliability
Scaling AI Systems
Keep a fleet of agents fast and available under real load: rate limits, flow control, retries, backpressure, caching, failover, latency budgets, load tests and capacity plans.
7 lessons ~18hFree - AdvancedAI · Cost engineering
LLM Cost Engineering
Know what each case costs in tokens, then cut that cost with caching, trimming, batching, routing, distillation and self-hosting, without losing quality.
8 lessons ~20hFree
