Render Integration Guide

Technology: render · Category: hosting · Last reviewed: 2026-10-20

Source: https://tech-stack.codeamanilabs.org/guide/render

Insight:

Render covers what serverless can't: long-running services, background workers, cron jobs, durable Workflows and managed Postgres/Key Value with persistent connections. Reach for it when you need an always-on process or multi-hour task, not the Vercel/Netlify function model. Plans now use spec-based IDs (0.5c-512mb, 1c-2g) and workspaces are flat-priced.

██████╗ ███████╗███╗   ██╗██████╗ ███████╗██████╗
██╔══██╗██╔════╝████╗  ██║██╔══██╗██╔════╝██╔══██╗
██████╔╝█████╗  ██╔██╗ ██║██║  ██║█████╗  ██████╔╝
██╔══██╗██╔══╝  ██║╚██╗██║██║  ██║██╔══╝  ██╔══██╗
██║  ██║███████╗██║ ╚████║██████╔╝███████╗██║  ██║
╚═╝  ╚═╝╚══════╝╚═╝  ╚═══╝╚═════╝ ╚══════╝╚═╝  ╚═╝

Render Integration Guide

Focus: Running codeAmani backends on Render and managing them from Claude Code with the hosted Render MCP server, the render CLI, Blueprints (render.yaml), the REST API, and the @renderinc/sdk Workflows SDK.

Overview

Render is a unified cloud platform for web services, private services, static sites, background workers, cron jobs, Workflows (durable, distributed task runs), and managed Render Postgres and Render Key Value (Valkey 8, Redis-compatible). Everything in one region shares a private network, and a Blueprint (render.yaml) describes the whole stack as code.

What changed in 2026 that matters for codeAmani:

Change Date Impact
Workspace plans went flat-priced: Pro $25/mo, Scale $499/mo, unlimited seats 2026-04-23 (forced migration 2026-08-01) No more per-member fees ($19/$29 per seat on the old Professional/Organization plans)
Compute plans renamed to spec-based IDs (starter → 0.5c-512mb, standard → 1c-2g, pro → 2c-4g) + new memory-heavy and 12-CPU plans 2026-08-26 Legacy names still accepted everywhere; prices unchanged
Render Workflows (TS + Python SDK 1.x) with the usage-billed flex plan, now in Blueprints (type: workflow) public beta 2026-04-07, flex 2026-09-01, Blueprints 2026-09-16 Replaces "worker + Key Value queue" for many background jobs
Hosted MCP server: OAuth for Claude Code/Codex/Cursor, trigger_deploy tool, official Claude Code plugin 2026-07 Install via /plugin install render@claude-plugins-official
Postgres connection pooling (PgBouncer), Key Value persistence modes, new Key Value plans with lower prices 2026-06 → 2026-10-01 Fewer reasons to self-run PgBouncer/Redis
Managed OIDC to AWS, Anthropic and OpenAI (Pro+) 2026-07-24 Call Claude from a Render service without storing a long-lived API key
Render Sandboxes (@renderinc/sdk experimental.sandboxes, render ea sandboxes) early access Not for production yet

A single git push fans out into all of Render's service types:

flowchart LR
  A["git push to main"] --> B["Render auto-build"]
  B --> C["Web service"]
  B --> D["Background worker"]
  B --> E["Cron job"]
  B --> F["Static site"]
  B --> W["Workflow (task runs)"]
  C --> G["Render Postgres / Key Value"]
  D --> G
  E --> G
  W --> G

Official Documentation

Resource URL
Render Docs (append .md to any page for Markdown) https://render.com/docs
Render MCP Server https://render.com/docs/mcp-server
MCP server source https://github.com/render-oss/render-mcp-server
Coding agents (skills + plugins) https://render.com/docs/llm-support
Blueprint (render.yaml) spec https://render.com/docs/blueprint-spec
Blueprint JSON Schema https://render.com/schema/render.yaml.json
Compute plans https://render.com/docs/compute-plans
Render Workflows https://render.com/docs/workflows
Render CLI https://render.com/docs/cli
REST API reference https://api-docs.render.com
Changelog https://render.com/changelog
Pricing https://render.com/pricing

MCP Server Setup

Render hosts the official MCP server at https://mcp.render.com/mcp. Prefer the hosted endpoint over running it locally — it updates automatically as tools ship. Source: github.com/render-oss/render-mcp-server (local binary v0.3.0, Docker ghcr.io/render-oss/render-mcp-server).

It can change production. The server can update a service's env vars (merged by default; replace: true overwrites the whole set) and trigger deploys. Only connect it with an account you're comfortable letting the agent act as.

sequenceDiagram
  participant U as "You"
  participant C as "Claude Code"
  participant M as "Render MCP"
  participant R as "Render services"
  U->>C: "Why is my API down?"
  C->>M: list_services
  M->>R: query status
  R-->>M: status results
  M->>R: list_logs + get_metrics
  R-->>M: logs and metrics
  M-->>C: diagnostic data
  C-->>U: summary and fix

Option A — Render plugin (OAuth, interactive): bundles the MCP server and Render's agent skills.

/plugin install render@claude-plugins-official
/reload-plugins

The first MCP call opens a browser authorization flow.

Option B — API key (non-interactive / CI):

claude mcp add --transport http render https://mcp.render.com/mcp \
  --header "Authorization: Bearer ${RENDER_API_KEY}"

.mcp.json equivalent (the key stays in your shell environment, never in the file):

{
  "mcpServers": {
    "render": {
      "type": "http",
      "url": "https://mcp.render.com/mcp",
      "headers": { "Authorization": "Bearer ${RENDER_API_KEY}" }
    }
  }
}

Create API keys at https://dashboard.render.com/u/settings → API Keys. Then set the active workspace once per session: "Set my Render workspace to <name>" — every tool call is scoped to it.

Tools (hosted server)

Resource Tools
Workspaces list_workspaces · select_workspace · get_selected_workspace
Services list_services · get_service · create_web_service · create_static_site · create_cron_job · update_environment_variables
Deploys trigger_deploy (optionally clears build cache) · list_deploys · get_deploy
Logs & events list_logs · list_log_label_values · list_events
Metrics get_metrics — CPU/memory, instance count, datastore connections, HTTP response counts by status, response times (Pro workspace+), outbound bandwidth
Render Postgres create_postgres · list_postgres_instances · get_postgres · query_render_postgres (read-only SQL)
Render Key Value create_key_value · list_key_value · get_key_value

Can't do (use Blueprint, CLI or REST API): create background workers, private services, workflows or image-backed services; set IP allowlists; change scaling or other operational settings; delete anything.


Render CLI

Official CLI render — v2.30.0 (2026-10-18), source github.com/render-oss/cli.

brew install render            # macOS/Linux
winget install render.cli      # Windows
# or: curl -fsSL https://raw.githubusercontent.com/render-oss/cli/refs/heads/main/bin/install.sh | sh

render login                   # browser auth → CLI token; then pick a workspace
render workspace set           # switch workspace any time
Command Does
render services Interactive list of services/datastores (deploy, logs, SSH, psql from the menu)
render services create --repo <url> … / --image <url> / --from <srv-id> Create (or clone) a service — non-interactive only
render deploys create [SERVICE_ID] --wait Trigger a deploy; --commit <sha>, --image <tag>; non-zero exit on failure
render deploys list [SERVICE_ID] Deploy history
render logs --tail Stream logs (auto-reconnects since v2.29)
render psql [DATABASE_ID] -c "SQL" -o json One-shot query; -- --csv passes flags to psql
render postgres create|update --connection-pool=pgbouncer Manage Postgres incl. the PgBouncer pool (v2.26+)
render ssh [SERVICE_ID] / --ephemeral SSH into an instance or a throwaway shell (non-interactive since v2.30)
render blueprints validate [FILE] Validate render.yaml (exit 1 when invalid)
render workflows dev / workflows versions list / workflows tasks list Local task server and workflow inspection
render skills install Install Render agent skills for Claude Code / Codex / Cursor / OpenCode
render ea sandboxes … Early-access Sandboxes (create, snapshots, egress allow-list)

CI/CD: set RENDER_API_KEY (it overrides CLI tokens and doesn't expire) and use -o json --confirm:

render deploys create "$RENDER_SERVICE_ID" --output json --confirm --wait

The CLI collects usage telemetry by default since v2.26.0 — opt out with DO_NOT_TRACK=1 or RENDER_CLI_DISABLE_ANALYTICS=1.


Compute plans (new IDs)

Since 2026-08-26 plans use {CPU}c-{RAM}g IDs (or mb under 1 GB). Legacy names still work in Blueprints, the API and the CLI; prices didn't change.

Spec New ID Legacy USD/mo (web/pserv/worker)
0.1 CPU / 512 MB free — $0 (web only, spins down)
0.5 CPU / 512 MB 0.5c-512mb starter $7
1 CPU / 2 GB 1c-2g standard $25
2 CPU / 4 GB 2c-4g pro $85
4 CPU / 8 GB 4c-8g pro plus $175
4 CPU / 16 GB 4c-16g pro max $225
8 CPU / 32 GB 8c-32g pro ultra $450

New plans with no legacy name: 2c-8g $135, 2c-16g $200, 4c-32g $350, 8c-16g $300, 8c-64g $1,000, 12c-24g $450, 12c-48g $800, 12c-96g $1,500. Postgres, Key Value and cron have their own tables — see reference/limits-and-pricing.md.

Spelling trap: Blueprints spell the legacy names with a space (pro plus); the REST API uses underscores (pro_plus). Use the new IDs and the problem goes away.


render.yaml Blueprint (Infrastructure as Code)

A Blueprint (render.yaml at the repo root by default; custom paths are supported) is the source of truth for services, databases, env groups, and projects/environments. Connect the repo once in the Dashboard; by default Render re-syncs on every push to the linked branch.

flowchart LR
  A["Edit render.yaml"] --> V["render blueprints validate"]
  V --> B["git push to linked branch"]
  B --> C["Render reads Blueprint"]
  C --> D["Sync services<br/>build · start · plan"]
  C --> E["Sync Render Postgres"]
  C --> F["Sync env groups"]
  D --> G["Live infrastructure"]
  E --> G
  F --> G

Web service + Postgres + shared env group, wired correctly:

# render.yaml
envVarGroups:
  - name: amani-shared
    envVars:
      - key: NODE_ENV
        value: production

databases:
  - name: amani-db
    plan: 0.1c-256mb            # legacy basic-256mb
    databaseName: amani
    user: amani
    region: oregon
    postgresMajorVersion: "18"

services:
  - type: web
    name: amani-api
    runtime: node
    plan: 0.5c-512mb            # legacy starter
    region: oregon
    buildCommand: npm ci && npm run build
    preDeployCommand: npm run migrate
    startCommand: node dist/index.js
    healthCheckPath: /health
    autoDeployTrigger: commit   # commit | checksPass | off
    envVars:
      - fromGroup: amani-shared # how a service attaches an env group
      - key: DATABASE_URL
        fromDatabase:
          name: amani-db
          property: connectionString
      - key: ANTHROPIC_API_KEY
        sync: false             # prompted once at Blueprint creation; never in Git
      - key: SESSION_SECRET
        generateValue: true     # base64 256-bit random value

Attach env groups with - fromGroup: <name> inside envVars. There is no service-level envVarGroups: key — earlier versions of this guide used one and the Blueprint JSON Schema rejects it.

Workflow services are Blueprint-managed too (no plan — plans are set per task in code; region is required; no preview copies):

services:
  - type: workflow
    name: amani-billing
    runtime: node               # workflows support node and python only
    region: oregon
    buildCommand: npm ci && npm run build
    startCommand: node dist/workflow-tasks.js

Sync gotchas. Dashboard edits to a Blueprint-managed resource are overwritten on the next sync. Removing a resource from the file does not delete it. sync: false values are only prompted on the initial creation (later syncs ignore them, and they're not copied to preview environments). Never define one resource in two places (root vs. projects[].environments[] vs. ungrouped). Validate with render blueprints validate, the API's Validate Blueprint endpoint, or your editor via the JSON Schema.

The full starter (web + worker + cron + Postgres + Key Value) is in examples/render.yaml; field-by-field notes are in reference/blueprint-cheatsheet.md.


Render Workflows

Workflows run TypeScript or Python functions ("tasks") as individually provisioned, retried, durable task runs — up to 24 h each, chained with ctx.run(), scaling to zero when idle. Render manages the queue; you pay per-second compute plus short-term retention of task arguments/results.

npm install @renderinc/sdk@1.3.0      # Python: pip install render_sdk==1.3.0

Define tasks (examples/workflow-tasks.ts):

import { task, type TaskContext } from "@renderinc/sdk/workflows";

export const square = task(
  { name: "square", retry: { maxRetries: 3, waitDurationMs: 1000, backoffScaling: 1.5 }, timeoutSeconds: 120 },
  function square(_ctx: TaskContext, n: number): number {
    return n * n;
  },
);

export const sumSquares = task(
  { name: "sumSquares", plan: "2c-4g" },
  async function sumSquares(ctx: TaskContext, a: number, b: number): Promise<number> {
    const [x, y] = await Promise.all([ctx.run(square, a), ctx.run(square, b)]);
    return x + y;
  },
);

Trigger runs from any server-side code (examples/trigger-task.mts):

import { Render } from "@renderinc/sdk";

const render = new Render(); // reads RENDER_API_KEY
const started = await render.workflows.startTask("amani-math/sumSquares", [2, 3]);
const finished = await started.get();
console.log(started.taskRunId, finished.results);

Without the SDK: POST https://api.render.com/v1/task-runs with {"task": "<workflow-slug>/<task>", "input": [...]}.

Fact Value
Default task plan flex — up to 1 CPU / 4 GB, billed on actual use: $0.20/CPU-hour + $0.05/GB-hour (max $0.40/h)
Fixed task plans 2c-4g $0.40/h · 2c-8g $0.70/h · 4c-8g $1.00/h · 4c-16g $1.50/h · 8c-32g $2.50/h (docs; pricing page lists up to 4c-16g)
Timeout 30 s – 24 h per task, default 2 h
Concurrent runs Hobby 20 · Pro 50 · Scale 100 (+$10/mo per extra 50)
Not yet supported scheduling (trigger from a cron job), preview environments, HIPAA workspaces, inbound connections

REST API

The REST API (https://api.render.com/v1, Bearer API key) sits under the CLI and MCP server. Reach for it to create workers/private services, change scaling, or anything else the MCP server can't do.

# List services (each item is { service, cursor })
curl -s https://api.render.com/v1/services \
  -H "Authorization: Bearer $RENDER_API_KEY" | jq '.[].service | {id, name, type}'

# Trigger a deploy: 201 → deploy object, 202 → queued behind an in-progress deploy (no body)
curl -X POST "https://api.render.com/v1/services/$RENDER_SERVICE_ID/deploys" \
  -H "Authorization: Bearer $RENDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"clearCache": "do_not_clear"}'

Deploy statuses: created · queued · build_in_progress · update_in_progress · pre_deploy_in_progress · live (success) and build_failed · update_failed · pre_deploy_failed · canceled · deactivated (stop). examples/deploy-and-wait.mts polls GET /services/{id}/deploys/{deployId} until one of those.

Create a background worker (TypeScript, server-side only):

const res = await fetch("https://api.render.com/v1/services", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.RENDER_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    type: "background_worker",     // web_service | private_service | background_worker | cron_job | static_site
    name: "amani-worker",
    ownerId: "tea-...",             // workspace ID (Settings page)
    repo: "https://github.com/my-org/my-repo", // no branch in the URL
    branch: "main",
    autoDeployTrigger: "commit",    // commit | checksPass | off
    serviceDetails: {
      runtime: "node",
      plan: "0.5c-512mb",           // default when omitted
      region: "oregon",
      envSpecificDetails: { buildCommand: "npm ci && npm run build", startCommand: "node dist/worker.js" },
    },
  }),
});
const { service, deployId } = (await res.json()) as { service: { id: string }; deployId?: string };

Changing serviceDetails.plan via Update service does not redeploy — follow it with a Trigger deploy call.

Deploy hooks

Each service has a secret deploy hook URL (Settings tab). GET/POST it with no headers to deploy — handy for CMS webhooks and image-backed services. Treat the URL as a secret and regenerate it if leaked.


Environment Variables

The only secret Claude Code / CI needs for Render itself:

RENDER_API_KEY=rnd_...        # Account Settings → API Keys; server-side / CI only

Non-secret settings — keep in plain config, not the vault:

Variable Example Notes
RENDER_SERVICE_ID srv-... Target for CI deploys
RENDER_CLI_CONFIG_DIR ~/.render Override CLI config dir
DO_NOT_TRACK 1 Disable CLI telemetry
PORT 10000 Injected by Render on web services; bind to it, don't hard-code
RENDER_EXTERNAL_HOSTNAME, RENDER_GIT_COMMIT, RENDER_INSTANCE_ID — Built-in runtime vars (see https://render.com/docs/environment-variables)

App secrets (database URLs, Stripe/Clerk keys) live on the service: sync: false / fromDatabase in the Blueprint, the Dashboard, update_environment_variables (MCP; merges unless replace: true), or PUT /v1/services/{id}/env-vars (replaces the whole list). Secret files (≤1 MB combined per service or env group) mount at /etc/secrets/<filename>.


Automation Workflows

Claude Code slash command: service health check

.claude/commands/render-health.md:

Check the health of all Render services in the selected workspace.

Use the Render MCP tool `list_services`, then `list_deploys` for each service.
For any service whose latest deploy is not `live`, fetch recent error-level logs
with `list_logs` and recent `list_events`, and diagnose the failure.
Return a table: service, type, latest deploy status, suspected cause.
Do not trigger deploys or change env vars.

GitHub Actions: deploy after tests pass

Set autoDeployTrigger: checksPass in render.yaml and Render waits for your GitHub checks on its own — no deploy job needed. If you need an explicit job (monorepo fan-out, image deploys), use the CLI:

# .github/workflows/render-deploy.yml
name: Deploy to Render
on:
  push:
    branches: [main]

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with: { node-version: '22' }
      - run: npm ci && npm test

  deploy:
    needs: test
    runs-on: ubuntu-latest
    steps:
      - name: Install Render CLI
        run: curl -fsSL https://raw.githubusercontent.com/render-oss/cli/refs/heads/main/bin/install.sh | sh
      - name: Deploy and wait
        env:
          RENDER_API_KEY: ${{ secrets.RENDER_API_KEY }}
          DO_NOT_TRACK: "1"
        run: render deploys create "${{ vars.RENDER_SERVICE_ID }}" --output json --confirm --wait

Pin Actions to commit SHAs per the SLSA policy; tags are shown here for readability.


Pricing at a glance (2026-10-20)

Workspace plan Price Key limits
Hobby $0 + compute 1 seat · 25 services · 5 GB bandwidth · single-service previews · 2 environments/project · 7-day logs
Pro $25/mo flat + compute Unlimited seats & services · 25 GB bandwidth · full-stack previews · autoscaling · isolated environments · OIDC · AWS PrivateLink · audit logs
Scale $499/mo flat + compute Multiple workspaces (org) · 1 TB bandwidth · SAML SSO/SCIM · HIPAA workspaces (+20% compute) · inbound IP rules
Enterprise Custom Uptime/support SLAs, seat-based billing possible

Overages: bandwidth $0.15/GB, build minutes $5 per 1,000, custom domains $0.25/mo each beyond the included 2/15/25. Full tables: reference/limits-and-pricing.md.


Common Use Cases

Use Case Approach
Inspect a failing service MCP list_logs + get_metrics + list_events
Query production DB MCP query_render_postgres (read-only) or render psql -c
Create web / static / cron / Postgres / Key Value MCP create tools, CLI services create, or Blueprint
Create worker / private service / workflow Blueprint or REST API (not MCP)
Long-running or fan-out background jobs Render Workflows (@renderinc/sdk) instead of worker + queue
Deploy on merge autoDeployTrigger: checksPass, or CLI deploys create --wait in CI
Env var management Blueprint / Dashboard; MCP update_environment_variables (merges; replace: true overwrites all)
Change compute plan Blueprint plan: (redeploys on sync) or API update + trigger deploy

Troubleshooting

Issue Fix
Blueprint sync fails on envVarGroups under a service Use - fromGroup: <group> inside envVars
Blueprint rejects a Key Value service ipAllowList is required for type: keyvalue ([] = private only)
Service stuck building MCP list_logs / render logs; check buildCommand
Port connection refused / health check fails Bind to process.env.PORT on 0.0.0.0; avoid reserved ports 18012, 18013, 19099
503 / slow first request Free web service spun down after 15 min idle — use 0.5c-512mb+
Free service can't send email Free web services block outbound ports 25/465/587 — use Resend's HTTPS API
Deploy not triggering Check autoDeployTrigger (and that CI checks pass with checksPass) and buildFilter paths
Old plan name rejected by API API wants pro_plus, Blueprint pro plus — use new IDs (4c-8g)
API key invalid Regenerate in Account Settings → API Keys
Can't reach DB from another region Private networks are per region; co-locate or use the external URL + ipAllowList

codeAmani notes

Official docs: