Backend & AI Agent Engineer for Multi-Tenant Mastra, Next.js, and Postgres SaaS
Worldwide
Backend engineer (TypeScript/Next.js) to build AI agent SaaS. We're building a web based MVP for youth athletes: an AI chat agent product where each user gets their own isolated agent (per-user memory, data, and context). We need a backend engineer to own the server side end-to-end and work with the frontend engineer to integrate backend and frontend. WHAT YOU'LL BUILD - API routes, agent logic, auth, and hosting (Next.js/TypeScript on Vercel) - Postgres data layer on Neon: user records, agent knowledge base, strict per-user data isolation. - Claude Sonnet integration via Azure AI Foundry, including a tool-calling layer for in-chat widgets. - Safety flow: detect Azure prompt-filter refusals, end the chat, log the triggering message for telemetry, surface a warning card. - Scheduled background jobs aggregating per-user chat logs into reports - Wiring backend routes to the frontend MUST HAVE - AI coding tools as your primary workflow (Cursor, Claude Code, Codex, or similar) - Production experience with TypeScript, Next.js, Vercel, and Postgres (Neon a plus) - Shipped a product with per-user agent/data isolation or multi-agent management - Built an agent with persistent memory and tool calling NICE TO HAVE - Mastra (or similar agent framework), Honcho (or similar agent memory) - Azure AI Foundry - Experience with sensitive data / products for minors (COPPA-adjacent) DETAILS - Timeline: MVP target of 4-6 weeks - You'll work with me and frontend dev directly; scope doc and designs are ready TO APPLY Briefly describe one agent system you shipped (per-user isolation + tool-calling setup). If it's a fit, I'll invite you to a short 15-minute intro call on Upwork before hiring.
- Less than 30 hrs/weekHourly
- 1-3 monthsDuration
- IntermediateExperience Level
$15.00
-
$50.00
Hourly- Remote Job
- Complex projectProject Type
Skills and Expertise
Activity on this job
- Proposals:50+
- Last viewed by client:1 hour ago
- Interviewing:3
- Invites sent:4
- Unanswered invites:1
About the client
- United States2:44 PM
Explore similar jobs on Upwork
How it works
Create your free profileHighlight your skills and experience, show your portfolio, and set your ideal pay rate.
Work the way you wantApply for jobs, create easy-to-by projects, or access exclusive opportunities that come to you.
Get paid securelyFrom contract to payment, we help you work safely and get paid securely.
About Upwork
- 4.9/5(Average rating of clients by professionals)
- G2 2021#1 freelance platform
- 49,000+Signed contract every week
- $2.3BFreelancers earned on Upwork in 2020
Find the best freelance jobs
Growing your career is as easy as creating a free profile and finding work like this that fits your skills.
Trusted by