Starter kit · Rust + TypeScript CDK
Personal AI Agent on AWS: a Rust Lambda starter kit
You want a personal AI agent: something that wakes up on a schedule, thinks with Claude, remembers things, DMs you on Slack, and answers tool calls from Cursor or Claude Desktop. What stands between you and that isn't the idea — it's the plumbing.
Lambda event shapes, cargo-lambda cross-compilation, CDK bootstrap, Bedrock model access, Secrets Manager conventions, the MCP Streamable HTTP handshake: two weekends, easily, before your first line of actual agent logic. This kit is that plumbing, done — one Rust Lambda, one DynamoDB table, two secrets, one schedule, deployed by a thin TypeScript CDK stack that passes the cdk-nag AwsSolutions pack with every deviation documented. Every module is small and heavily commented. Read it in an hour, deploy it in an afternoon, then replace the example job and example tool with your own.
Complete repository with updates pushed to it. AWS runtime cost is separate: about $1/month at hobby scale. 7-day refund policy.
What you get
- One
cdk deployto a live agent — Rust binary compiled and bundled at synth time, no Docker, no separate build step - A working MCP server on a Lambda Function URL — connect Cursor, Claude Desktop, or Claude Code and call your agent as tools, with bearer-token auth that fails closed
- Bedrock done right — raw Anthropic Messages API, cross-region inference profile default, token usage logged on every call so you can watch spend
- Agent memory that scales with your ideas — DynamoDB single-table pattern with TTL; you invent new key shapes, never new tables
- Security posture on record — least-privilege IAM via CDK grants, secrets created empty and populated out-of-band, cdk-nag gate on every synth with written reasons for each suppression
- A local dry-run binary — run the exact scheduled job or a one-off Claude prompt from your laptop, no deploy loop
- Heavily commented, deliberately small — about 7 Rust modules plus one CDK stack file; every design decision explained where it's made
- A README that assumes nothing — exact install commands, the exact error text of the classic first-deploy failures, and a real cost table
Who it's for
You know some Rust (or read it comfortably), you want a personal agent — schedules, memory, notifications, editor tools — and you'd rather start from working, explained code than assemble Lambda + CDK + Bedrock + MCP from scattered docs. It's not a no-code product or a multi-tenant production framework; it's a starting point you own and extend.
FAQ
- Do I need to know Rust?
- You should be able to read it; you don't need to be an expert. Every module is short and heavily commented, and the extension points — add a tool, add a scheduled job — are match arms and small async functions. The infrastructure is TypeScript, equally commented.
- What will AWS charge me?
- About $1/month at hobby scale. Lambda, the Function URL, and the scheduler sit inside free tiers; two Secrets Manager secrets are $0.80/month; the only real variable is Bedrock tokens, and the kit logs usage on every call. AWS bills you directly — that's separate from the one-time price of the kit.
- Do I get updates?
- Yes — buying gets you the repository, and updates (dependency bumps, new example patterns, doc improvements) are pushed to it.
- Why pay when the AWS docs are free?
- The docs describe each service in isolation; they don't hand you the working intersection. The value is the assembled, tested whole — the Lambda event routing, the cargo-lambda/CDK build wiring, the fail-closed secret convention, the minimal-but-legal MCP handshake — plus the reasoning written next to every decision. That's the two weekends you're buying back.
- What's the refund policy?
- 7 days, for buyers the kit genuinely didn't help. Requests after downloading are reviewed individually, and refunded purchases lose access to future updates.