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 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
| Aspekt | Python | TypeScript |
|---|---|---|
| Aspekt | Python | TypeScript |
| Runtime | venv | Node 20+ |
| Typen | Pydantic | Geteiltes Zod |
| UI | Eigenes SSE | AI SDK Stream |
| Ziel | ML | Web-Produkte |
Architektur
npm create mastra@latest, ToolLoopAgent, Streaming-Route.
Mastra (8 Schritte)
- Node 20+
npm create mastra@latest- Wizard
src/mastra/.envnpm run dev- Tools
- Deploy
AI SDK (6 Schritte)
- Next.js 15
npm install ai @ai-sdk/openai zodToolLoopAgent- API-Route
useChat- Limits in Prod
Auswahl
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.