Dev.to AI πŸ€– Ai πŸ‘ 2 πŸ“– 9 min read

OpenAI Agent Builder Shut Down Nov 30: Migrating Multi-Step Agents to Self-Hosted n8n on KVM 4 and KVM 8

Disclosure: QuickStack Media may earn an affiliate commission when you sign up through links in our benchmarks at no extra cost to you. OpenAI shut down Agent Builder, the Evals dashboard, API, and graders, and reusable

Disclosure: QuickStack Media may earn an affiliate commission when you sign up through links in our benchmarks at no extra cost to you.

OpenAI shut down Agent Builder, the Evals dashboard, API, and graders, and reusable /v1/prompts objects on November 30, 2026, closing the 180-day wind-down window announced on June 3 (after existing evals went read-only on October 31). While ChatKit remains active, every engineering team that relied on Agent Builder to host the workflow backend behind ChatKit embeds or internal automations now has to run its own server-side orchestration layer.

Exporting workflows to OpenAI's Agents SDK gives you starter TypeScript or Python code one workflow at a time, but OpenAI's own migration docs note it does not convert your full workflow graph, guarantee unchanged behavior, or carry over hosted credentials and evaluation gates. Meanwhile, OpenAI's beta Agents API is currently ineligible for Zero Data Retention (ZDR)β€”a dealbreaker for regulated teams. This post-shutdown engineering benchmark breaks down how to migrate multi-step AI agents to self-hosted n8n in Queue Mode on dedicated KVM VPS infrastructure, maps every retired Agent Builder layer to an owned equivalent, and compares exact 12-month direct cash and fully loaded Total Cost of Ownership (TCO) across KVM 4, KVM 8, n8n Cloud Pro, and Make Pro.

Quick Verdict

Self-hosting n8n Community Edition ($0 license under the Sustainable Use License) with local Redis and PostgreSQL pgvector on a Hostinger KVM VPS cuts Year-1 direct cash outlay by 76% vs. n8n Cloud Pro (50K tier) and 89% vs. Make Pro (300K credits) while keeping workflow graphs, prompt templates, credentials, and vector indexes inside your own server boundary.

  • KVM 4 Production Baseline (Up to ~50,000 Monthly Agent Runs): 4 vCPU, 16 GB RAM, 200 GB NVMe. List 24-month US promo is $12.99/mo ($311.76 upfront; $155.88/yr; renews at $28.99/mo / $347.88/yr). Clicking our Hostinger KVM VPS link first and applying coupon code QUICKSTACK10 at checkout drops the 24-month upfront price to $280.58 ($11.69/mo or $140.29/yr amortized).
  • KVM 8 Multi-Agent & Heavy RAG Node: 8 vCPU, 32 GB RAM, 400 GB NVMe. List 24-month promo is $25.99/mo ($623.76 upfront; $311.88/yr; renews at $49.99/mo / $599.88/yr), dropping to $561.38 ($23.39/mo or $280.69/yr amortized) with QUICKSTACK10. Recommended when running 4+ concurrent workers, large in-memory pgvector HNSW indexes, or co-located coding agents.
  • When Cloud Still Wins: If you run at or below 50,000 runs/month with zero dedicated DevOps headcount and EU cloud hosting fits policy, n8n Cloud Pro (50K tier) (~$2,168.80/yr direct cash; ~$2,768.80/yr loaded) beats paying $200/mo in amortized engineering maintenance on a self-hosted box.

Pre-Migration Endpoint & VPS Verification Check

Before repointing live ChatKit frontends or production webhooks away from retired Agent Builder IDs, verify outbound TLS latency from your target VPS region to OpenAI's direct ZDR-eligible API endpoints and confirm your server has sufficient RAM and disk headroom for Redis + PostgreSQL pgvector:

#!/usr/bin/env bash
set -euo pipefail

echo "timestamp_utc: $(date -u +%Y-%m-%dT%H:%M:%SZ)"
echo "cpu_cores: $(nproc) | ram_gb: $(free -g | awk '/Mem:/ {print $2}') | disk_avail: $(df -h / | awk 'NR==2 {print $4}')"

for endpoint in \
  "[https://api.openai.com/v1/models](https://api.openai.com/v1/models)" \
  "[https://api.github.com/zen](https://api.github.com/zen)"; do
  result=$(curl -sS -o /dev/null -w "HTTP %{http_code} | dns=%{time_namelookup}s | tls=%{time_appconnect}s | total=%{time_total}s" --max-time 5 "$endpoint" || echo "ERR")
  echo "$endpoint -> $result"
done

You can also model your exact monthly agent runs, RAM ceiling, and multi-year VPS vs. SaaS break-even using our Interactive AI Agent VPS Sizer & TCO Calculator.

What Actually Shut Down on Nov 30 (And Why Hosted State Is the Trap)

Everything OpenAI retired on November 30 shared one architectural flawβ€”it stored your agent's workflow logic, prompt versions, or evaluation evidence exclusively inside a vendor's hosted platform:

  • Retired Nov 30, 2026: OpenAI Agent Builder (hosted visual workflow graphs), the Evals dashboard, API, and graders (read-only since Oct 31), and /v1/prompts (hosted reusable prompt objects).
  • Still Active (Requires Your Own Backend): ChatKit remains available, but any ChatKit widget previously tied to an Agent Builder workflow ID now requires connecting ChatKit to your own server-side agent endpoint.
  • Why OpenAI's Two Official Exits Split the Difference: ChatGPT Workspace Agents keep no-code simplicity but drop strict determinism for multi-step production flows; the Agents SDK keeps code determinism but requires your own hosting, credential storage, and monitoring anyway. For regulated teams, calling ZDR-eligible /v1/responses or /v1/chat/completions directly from self-hosted n8n avoids the Agents API's current lack of Zero Data Retention.

Agent Builder to Self-Hosted n8n Component Mapping

Migrating off a closed visual canvas works cleanly when each retired hosted dependency maps to an owned primitive inside n8n and PostgreSQL:

  • Agent Builder Visual Graph β†’ Git-Versioned n8n Workflow JSON: Export workflows as JSON and commit them to your own Git repository so future vendor deprecations never strand business logic.
  • ChatKit Hosted Backend β†’ Dedicated n8n-webhook Container: Route ChatKit requests to a TLS-terminated webhook container backed by Redis queue ingestion so burst traffic returns fast acknowledgments without blocking Node.js event loops.
  • /v1/prompts Objects β†’ Versioned PostgreSQL Table or Git Markdown: Store system prompts alongside schema versions in Postgres or Git and inject them dynamically at runtime.
  • Hosted Connector Registry & Secrets β†’ Local Encrypted n8n Credentials: Credentials remain encrypted at rest under your own N8N_ENCRYPTION_KEY, never inside third-party SaaS multi-tenant vaults.
  • Retired Evals Dashboard β†’ Scheduled n8n Regression Workflow: Run a nightly golden test dataset through your production webhook (or pair with Promptfoo in CI) and log deterministic pass/fail assertions straight into PostgreSQL.

Modeled 12-Month TCO Benchmark: 50,000 5-Node AI Agent Runs/Month

To compare platforms fairly, our modeled production benchmark evaluates 50,000 monthly multi-step agent runs (600,000/yr), each executing 5 steps: inbound webhook trigger, intent classification, pgvector knowledge retrieval, grounded synthesis, and downstream CRM/ticket dispatch.

Late-2026 / Jan 2027 OpenAI Model Cost Baseline

OpenAI retires gpt-4o, gpt-4o-mini, and gpt-4.1 on January 14, 2027. Production migrations built today should standardize high-volume classification and extraction nodes on gpt-6-luna ($0.10/1M input, $0.01/1M cached, $0.50/1M output) paired with text-embedding-3-small ($0.02/1M tokens), routing selectively to gpt-6.2-sol ($2.00/1M input, $10.00/1M output) only on complex multi-tool reasoning steps.

Across 50,000 monthly runs (3,000 input tokens, 500 output tokens, and 150 embedding tokens per run), direct BYO OpenAI API spend on gpt-6-luna + text-embedding-3-small totals $27.65/mo ($331.80/yr) identically across every BYO-key stack.

Line-by-Line Annual Comparison

  • Self-Hosted n8n Community on Hostinger KVM 4 (Recommended Baseline):
    • Years 1–2 VPS (24-mo promo + QUICKSTACK10): $140.29/yr ($280.58 upfront; $155.88/yr without coupon; renews at $347.88/yr in Year 3+).
    • Local PostgreSQL pgvector: $0/yr (co-located on KVM NVMe).
    • Encrypted off-server PostgreSQL backups (S3/Cloudflare R2): $48.00/yr ($4/mo).
    • Direct BYO OpenAI API (gpt-6-luna): $331.80/yr.
    • Total Direct Cash (Years 1–2): $520.09/yr ($43.34/mo) β€” or $727.68/yr post-renewal. Adding 2 hrs/month of DevOps maintenance at $100/hr ($2,400/yr) yields $2,920.09/yr fully loaded TCO.
  • Self-Hosted n8n Community on Hostinger KVM 8 (Multi-Agent / Heavy RAG):
    • Years 1–2 VPS (24-mo promo + QUICKSTACK10): $280.69/yr ($561.38 upfront; renews at $599.88/yr in Year 3+).
    • Total Direct Cash (Years 1–2): $660.49/yr ($55.04/mo) with backups + LLM ($979.68/yr post-renewal; $3,060.49/yr loaded with 2 hrs/mo DevOps).
  • n8n Cloud Pro (50,000 Executions Tier):
    • Platform subscription: €1,450/yr annual (~$1,537/yr at 1.06 USD/EUR; €145/mo monthly; entry Pro starts at €50/mo annual for 10k runs; Starter is €20/mo annual for 2.5k runs). Hard-capped at 50k runs with no pay-as-you-go overages.
    • External managed pgvector DB (e.g., Supabase Pro / Neon): ~$300/yr ($25/mo).
    • Total Direct Cash: ~$2,168.80/yr (~$2,768.80/yr loaded with 0.5 hr/mo admin). Note: Teams requiring SAML SSO, Git environments, and audit logs on self-hosted infrastructure need n8n Self-Hosted Business (€667/mo billed annually for 40k runs).
  • Make Pro (300,000 Credits Tier):
    • At 5 active modules per run, 50,000 runs consume 250,000 credits/month (routers and filters cost 0 credits; Make Code App scripts bill 2 credits per CPU-second).
    • Platform subscription: $349/mo annual ($4,188/yr) or $474/mo monthly ($5,688/yr) (entry Pro 10k starts at $21/mo annual / $28 monthly; Pro annual unlocks 12-month credit pooling, whereas Core annual credits expire monthly).
    • Adding external pgvector ($300/yr) and BYO gpt-6-luna ($331.80/yr) brings Total Direct Cash to $4,819.80/yr ($5,419.80/yr loaded).
  • Turnkey Managed RAG Alternative (CustomGPT.ai): Standard ($99/mo monthly / $89 annual, 1k queries, no PII scrubbing) and Premium ($499/mo monthly / $449 annual, 5k queries, built-in PII anonymization) bundle LLM queries and vector storage for dedicated documentation copilots, but are not built to replace general-purpose multi-step tool-calling agent graphs at 50k runs/month.

Production n8n Queue-Mode Docker Compose Blueprint

Running 50,000 monthly AI agent workflows on a single standalone n8n container with SQLite risks Node.js event-loop stalls during webhook spikes. Decouple n8n-main (UI/scheduler), n8n-webhook (HTTP/ChatKit ingest), and stateless n8n-worker replicas behind Redis 7 (--maxmemory-policy noeviction) and PostgreSQL 16 with pgvector.

You can pull this exact blueprint alongside our .env.example directly from the QuickStack Starter Blueprints on GitHub:

services:
  postgres:
    image: pgvector/pgvector:pg16
    restart: unless-stopped
    environment:
      POSTGRES_USER: ${POSTGRES_USER}
      POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
      POSTGRES_DB: ${POSTGRES_DB}
    volumes:
      - postgres_data:/var/lib/postgresql/data
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
      interval: 10s
      timeout: 5s
      retries: 5

  redis:
    image: redis:7-alpine
    restart: unless-stopped
    command:
      [
        "redis-server",
        "--appendonly",
        "yes",
        "--maxmemory",
        "1536mb",
        "--maxmemory-policy",
        "noeviction",
        "--requirepass",
        "${REDIS_PASSWORD}"
      ]
    volumes:
      - redis_data:/data
    healthcheck:
      test: ["CMD", "redis-cli", "-a", "${REDIS_PASSWORD}", "ping"]
      interval: 10s
      timeout: 5s
      retries: 5

  # Localhost-bound: terminate TLS with Caddy or Nginx in front of 127.0.0.1:5678 and 127.0.0.1:5679
  n8n-main:
    image: docker.n8n.io/n8nio/n8n:latest
    restart: unless-stopped
    ports:
      - "127.0.0.1:5678:5678"
    env_file: .env
    environment:
      EXECUTIONS_MODE: queue
      QUEUE_HEALTH_CHECK_ACTIVE: "true"
    depends_on:
      postgres:
        condition: service_healthy
      redis:
        condition: service_healthy
    volumes:
      - n8n_data:/home/node/.n8n

  n8n-webhook:
    image: docker.n8n.io/n8nio/n8n:latest
    restart: unless-stopped
    command: webhook
    ports:
      - "127.0.0.1:5679:5678"
    env_file: .env
    environment:
      EXECUTIONS_MODE: queue
      QUEUE_HEALTH_CHECK_ACTIVE: "true"
    depends_on:
      postgres:
        condition: service_healthy
      redis:
        condition: service_healthy

  n8n-worker:
    image: docker.n8n.io/n8nio/n8n:latest
    restart: unless-stopped
    command: worker --concurrency=10
    env_file: .env
    environment:
      EXECUTIONS_MODE: queue
      QUEUE_HEALTH_CHECK_ACTIVE: "true"
    depends_on:
      postgres:
        condition: service_healthy
      redis:
        condition: service_healthy
    deploy:
      replicas: 2

volumes:
  postgres_data:
  redis_data:
  n8n_data:

Four Hard Security & Reliability Guardrails Post-Migration

Before cutting live traffic over to your self-hosted stack, lock down four operational failure modes that trip up rushed migrations:

  • Bind Containers to 127.0.0.1 Behind a Reverse Proxy: Never expose 5678:5678 directly to 0.0.0.0. Route /webhook/* exclusively to 127.0.0.1:5679 (n8n-webhook) through Caddy or Nginx with automatic TLS, and lock the editor UI (127.0.0.1:5678) behind VPN or Cloudflare Access.
  • Prevent Silent Redis Drops & Postgres Disk Bloat: Keep --maxmemory-policy noeviction and --appendonly yes on Redis (monitoring bull:jobs:wait), and enforce EXECUTIONS_DATA_PRUNE=true, EXECUTIONS_DATA_MAX_AGE=168, and EXECUTIONS_DATA_SAVE_ON_SUCCESS=none in .env so verbose LLM payloads never fill NVMe storage or leak PII into execution logs.
  • Use Explicit Worker Commands & Identical Keys: Avoid the retired EXECUTIONS_PROCESS=worker flag; share the exact same 32-byte N8N_ENCRYPTION_KEY across n8n-main, n8n-webhook, and every n8n-worker replica.
  • Cap Retries & Automate Off-Box Backups: Configure exponential backoff with hard retry limits on OpenAI HTTP 429 responses, and run nightly encrypted pg_dump backups to S3 or Cloudflare R2 so a single VPS hardware fault never wipes workflows or embeddings.

In production, the biggest mistake teams make after a platform shutdown like November 30 is rushing straight into another closed visual builder without separating state from runtime. Keep workflow JSON and prompt templates in Git, run your execution engine on flat-rate KVM compute with local pgvector, and migrate any lingering gpt-4o-mini nodes well ahead of OpenAI's January 14, 2027 retirement cutoff.

Verified Stack & QuickStack Resources

Use the verified deployment links and calculators below to reproduce this benchmark:

Disclosure: QuickStack Media may earn an affiliate commission when you sign up through links in our benchmarks at no extra cost to you.

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.