Backend & AI Agent Engineer for Multi-Tenant Mastra, Next.js, and Postgres SaaS

Posted 2 hours ago

Worldwide

Summary

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/week
    Hourly
  • 1-3 months
    Duration
  • Intermediate
    Experience Level
  • $15.00

    -

    $50.00

    Hourly
  • Remote Job
  • Complex project
    Project Type

Contract-to-hire opportunity

This lets talent know that this job could become full time.
Learn more
Skills and Expertise
Mandatory skills
TypeScript
PostgreSQL
AI Agent Development
Activity on this job
  • Proposals:50+
  • Last viewed by client:1 hour ago
  • Interviewing:
    3
  • Invites sent:
    4
  • Unanswered invites:
    1
About the client
Member since Jul 16, 2026
  • United States
    2:44 PM

Explore similar jobs on Upwork

Solidity
Ethereum
Smart Contract
Blockchain
Cryptocurrency
Blockchain Architecture
ERC-20
API
Software Architecture & Design
Odoo
Odoo Development
Accounting

How it works

  • Post a job icon
    Create your free profile
    Highlight your skills and experience, show your portfolio, and set your ideal pay rate.
  • Talent comes to you icon
    Work the way you want
    Apply for jobs, create easy-to-by projects, or access exclusive opportunities that come to you.
  • Payment simplified icon
    Get paid securely
    From contract to payment, we help you work safely and get paid securely.
Want to get started? Create a profile

About Upwork

  • Rating is 4.9 out of 5.
    4.9/5
    (Average rating of clients by professionals)
  • G2 2021
    #1 freelance platform
  • 49,000+
    Signed contract every week
  • $2.3B
    Freelancers 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

  • Microsoft Logo
  • Airbnb Logo
  • Bissell Logo
  • GoDaddy Logo