KI / Automatisierung 29. Mai 2026

Python ade? Produktions-Agenten mit Mastra und Vercel AI SDK in TypeScript

VpsGona Team 29. Mai 2026 ~15 Min.
Mastra Vercel AI SDK TypeScript 2026

Mastra und Vercel AI SDK für produktionsreife TypeScript-Agenten. Mastra, AI SDK. Siehe OpenClaw + Ollama, iOS ohne Mac, LLM-Speicher, Hermes + Ollama.

Hinweis: optionale Mac-Miete über VpsGona.

Warum TypeScript

Studio: localhost:4111. ToolLoopAgent standardmäßig 20 Schritte.

Python vs TS

AspektPythonTypeScript
AspektPythonTypeScript
RuntimevenvNode 20+
TypenPydanticGeteiltes Zod
UIEigenes SSEAI SDK Stream
ZielMLWeb-Produkte

Architektur

npm create mastra@latest, ToolLoopAgent, Streaming-Route.

Mastra (8 Schritte)

  1. Node 20+
  2. npm create mastra@latest
  3. Wizard
  4. src/mastra/
  5. .env
  6. npm run dev
  7. Tools
  8. Deploy

AI SDK (6 Schritte)

  1. Next.js 15
  2. npm install ai @ai-sdk/openai zod
  3. ToolLoopAgent
  4. API-Route
  5. useChat
  6. Limits in Prod

Neues Produkt: Mastra. SaaS-Feature: AI SDK.

Fehler

Endlosschleife

stepCountIs senken.

Studio down

Port 4111.

FAQ

Do I need Python for Mastra or Vercel AI SDK?

No for the app layer—both run on Node.js 20+. Python may remain for offline ML only.

What Node version is required?

Mastra targets Node 20+. Match dev and CI.

What is the default ToolLoopAgent step limit?

Up to 20 steps unless you set stopWhen: stepCountIs(N).

Where does Mastra Studio run?

Typically http://localhost:4111 after npm run dev.

Can I use local Ollama?

Yes via OpenAI-compatible endpoints; see our OpenClaw + Ollama and Hermes guides for local stacks.

TypeScript-native KI

Agenten neben Ihrer React-App ohne Python-Sidecar.