render-env-vars
Configures environment variables, secrets, and env groups on Render. Use when the user needs to set env vars, wire secrets between services, create env groups, use generateValue, set sync: false, or troubleshoot missing or incorrect environment variable values in Blueprints or the Dashboard.
- License 许可
- MIT
- 最近更新
- 2026-08-25
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- render-env-vars
- license
- MIT
- metadata
- { "author": "Render", "version": "1.0.0", "category": "configuration" }
- description
- Configures environment variables, secrets, and env groups on Render. Use when the user needs to set env vars, wire secrets between services, create env groups, use generateValue, set sync: false, or troubleshoot missing or incorrect environment variable values in Blueprints or the Dashboard.
- compatibility
- Render Dashboard, CLI, or MCP tools
02 资源文件 3
- 参考文档agents/openai.yaml230 B
- 参考文档references/platform-variables.md4.9 KB
- 参考文档references/wiring-reference.md6.5 KB
03 SKILL.md 正文
Environment Variables on Render
Render exposes configuration to services as environment variables. Values are always strings at the platform layer—applications must parse numbers, booleans, and structured data explicitly.
There are three primary ways to set variables:
- Render Dashboard — per-service UI, bulk import from
.env, save/redeploy options - Blueprint —
envVars(and related keys) inrender.yaml - MCP / API — e.g.
update_environment_variableson a service
Deep wiring patterns, full platform variable tables, and language-specific notes live under references/.
When to Use This Skill
Use this skill when users want to:
- Add, change, or remove environment variables or secrets
- Understand Dashboard vs Blueprint vs API/MCP flows
- Use environment groups for shared configuration
- Wire
fromDatabase,fromService,fromGroup,sync: false, orgenerateValuein Blueprints - Debug missing vars, secret files, precedence, or platform-injected names
For full Blueprint authoring, pair with render-blueprints. For first-time deploys, render-deploy. For web service behavior and ports, render-web-services.
Setting Variables
Dashboard
- Add variables individually (name + value) or in bulk by pasting/uploading a
.env-style file. - Save options typically include:
- Save and rebuild & deploy — picks up build-time changes
- Deploy only — runtime change without a full rebuild (when applicable)
- Save only — persist without triggering a deploy
Use Dashboard edits when iterating quickly or when the repo should not carry certain values.
Blueprint (render.yaml)
Declare envVars on each service. Values can be literals, generated secrets, sync-disabled prompts, or references to databases, other services, or env groups. See Blueprint Wiring below and references/wiring-reference.md for exhaustive patterns and YAML.
MCP / API
Automation tools can set variables on existing services (e.g. update_environment_variables). Useful for CI, rotation, or keeping Dashboard state in sync with external secret stores—without committing secrets to Git.
Secret Management
sync: false— Render prompts in the Dashboard for the value only on initial Blueprint setup when the resource is first created. On Blueprint updates,sync: falseis ignored (values are not re-prompted from the file alone). These vars are excluded from preview environments and are invalid inside environment groups.generateValue: true— Render generates a base64-encoded 256-bit random value at provision time. Use for passwords, signing keys, or tokens that do not need human-chosen values.- Never commit real secrets in
render.yamlas plainvalue:entries. Prefer Dashboard, secret manager integration,generateValue, orsync: falsewith Dashboard entry.
Secret files
- Store sensitive file content as secret files (not inline env strings). They appear as plaintext files under
/etc/secrets/<filename>. - Combined limit: 1 MB total secret file payload per service or per linked env group (as applicable to your setup).
- Docker: secret files are available under
/etc/secrets/on the running instance.
Environment Groups
Environment groups are named collections of variables linked to multiple services.
- Precedence: Service-level variables override variables from linked groups with the same name.
- Multiple groups on one service: the group that was most recently created wins for overlapping keys. This ordering is not documented as stable—avoid relying on it; use distinct names or consolidate groups.
- Groups can be scoped to a project environment so staging and production differ without duplicating every service definition.
Blueprint Wiring (Summary)
Full syntax, examples, and edge cases: references/wiring-reference.md. Authoritative Blueprint docs: render-blueprints skill.
| Mechanism | Role |
|---|---|
value |
Hardcoded string (non-secret config only) |
generateValue: true |
Platform-generated secret |
sync: false |
Dashboard prompt on initial create only |
fromDatabase |
Inject DB fields (connectionString, host, port, user, password, database) |
fromService |
Key Value: type: keyvalue + properties; private/web: host, hostport, or envVarKey |
fromGroup |
Link all vars from a named group |
Platform-Injected Variables
Render sets read-only variables your app can read at runtime (and some at build). A concise list:
| Variable | Typical meaning |
|---|---|
RENDER |
"true" when running on Render |
RENDER_SERVICE_TYPE |
Service kind (e.g. web, worker) |
RENDER_SERVICE_ID |
Service identifier |
RENDER_SERVICE_NAME |
Human-readable service name |
RENDER_INSTANCE_ID |
Current instance |
RENDER_EXTERNAL_URL |
Public URL (when applicable) |
RENDER_EXTERNAL_HOSTNAME |
Public hostname |
RENDER_DISCOVERY_SERVICE |
Service discovery hostname (private network) |
RENDER_GIT_COMMIT |
Deployed commit SHA |
RENDER_GIT_BRANCH |
Branch for this deploy |
PORT |
HTTP port to bind (default 10000) |
IS_PULL_REQUEST |
Preview deploy indicator |
RENDER_CPU_COUNT |
vCPU count for the instance |
RENDER_WEB_CONCURRENCY |
Suggested worker/process count hint |
Build vs runtime availability, language version env vars, and WEB_CONCURRENCY defaults: references/platform-variables.md.
Runtime-Specific Defaults
Render and buildpacks may set defaults (verify in your service’s Environment tab):
| Runtime | Notable defaults |
|---|---|
| Node.js | NODE_ENV=production |
| Python | PYTHON_VERSION (pinned by build); Gunicorn-oriented images often set GUNICORN_CMD_ARGS to bind 0.0.0.0:10000 |
| Ruby | RAILS_ENV=production, RAILS_LOG_TO_STDOUT=true |
| Go | GO111MODULE=on (legacy modules flag; still seen on older stacks) |
| Rust | ROCKET_PORT=10000 (Rocket convention) |
Always bind HTTP servers to 0.0.0.0 and PORT (or the stack’s documented port env) unless using a static site or custom Docker entrypoint.
Common Issues
- Everything is a string —
DEBUG=falseis truthy in many parsers; use explicit comparison or typed config loaders. WEB_CONCURRENCY— Default behavior changed for services created after December 8, 2025. Compare with older services when debugging worker counts; seereferences/platform-variables.md.- Undocumented
RENDER_*variables — Names and semantics may change; do not depend on undocumented injection for critical logic. - Blueprint vs Dashboard drift — Editing only
render.yamldoes not retroactively applysync: falseprompts on update; merge strategy for env keys is easy to misunderstand—test in a scratch service. - Secret file paths — Code must read
/etc/secrets/<filename>; wrong paths or missing mounts usually show as file-not-found at runtime.
References
references/wiring-reference.md— Complete BlueprintenvVarwiring, YAML examples, precedence, edge casesreferences/platform-variables.md— Injected variables (build vs runtime), language versions, concurrency, reading vars from code
Related Skills
- render-blueprints — Full Blueprint authoring, validation, multi-service layouts
- render-deploy — First deploy, repo requirements, MCP vs YAML
- render-web-services — Ports, health checks, scaling behavior tied to env-driven servers
04 同仓库更多 Skills
syllabus
Generates a curated supplementary reading list from any course syllabus using Consensus academic search. Grill-me intake (syllabus input format + course audience + year range) plus a grouping forcing-options checkpoint before any search runs — so the reading list matches the course's level and recency need. Parses the syllabus to extract topics and learning outcomes, searches Consensus for recent peer-reviewed papers per topic, and produces a professionally formatted .docx with clickable Consensus links, plain-language summaries calibrated to audience level, and Bloom-higher-order discussion questions tied to course learning goals. Use when the user uploads a syllabus, course outline, or curriculum document and wants supplementary readings (e.g., 'create a reading list from this syllabus', 'find recent papers for my course') — even casual mentions with a syllabus attached should trigger this skill.
pulse
Multi-source recency research skill that takes the pulse of any topic across Reddit, Hacker News, the open web, and optionally X/Twitter within a configurable recent window (default 30 days). Forcing intake clarifies topic specificity, angle (trend/sentiment/problems/opportunities/comparison), time window, and platform scope before searching. Returns a synthesized briefing with citations, engagement metrics, and cross-platform pattern analysis. Use when the user requests multi-source recency intelligence on a topic (e.g., 'pulse on [topic]', 'what's happening with [topic]', 'what are people saying about [topic]', 'current conversation about [topic]', 'take the pulse of [topic]', 'trending: [topic]', 'find me info on [topic]'), and for competitor research, trend discovery, tool comparisons, and audience sentiment analysis.
patent
Patent prior-art and landscape intelligence skill — not generic patent help. Commits to one of five sub-use-cases via forcing intake (novelty search / freedom-to-operate / competitive landscape / acquisition diligence / litigation prior-art) before any search runs. Searches Google Patents, Espacenet, USPTO, and optionally Lens.org for citation-graph signals. Output is an editable Word document (.docx) with verdict, ranked closest art (claim-text extracted), CPC-class-aware landscape, family-resolved hits, geographic coverage, FTO flags where applicable, strategy recommendations, and full audit log. Use when the user asks for patent searching or analysis (e.g., 'prior art search for [invention]', 'freedom to operate analysis for [product]'). Produces search signal, not legal advice — always recommends consulting a patent attorney before filing or licensing decisions. Trademark, copyright, and trade-secret questions are out of scope.
notebooklm
Browser automation skill for controlling Google's NotebookLM. Use when the user wants anything done in NotebookLM (e.g., 'open NotebookLM', 'check my [name] notebook', 'ask my notebook about X', 'add [source] to NotebookLM', 'generate a Video Overview from my notebook', 'use NotebookLM Studio'). Handles reading and querying notebooks, adding sources (URLs, text, files, YouTube links, synthesized content), generating Studio outputs (Audio/Video Overviews, Mind Maps, Reports incl. Briefing Doc/Study Guide/FAQ, Flashcards, Quiz, slide decks, infographics — discover the exact set from the live Studio panel; the UI evolves fast), and creating new notebooks. Requires browser automation environment — fails gracefully when unavailable.
litreview
Academic literature orientation skill that searches papers via free keyless APIs (PubMed E-utilities + OpenAlex) by default — with the Consensus MCP as an optional enhancement lane when connected — builds a strategic search plan using PICO (default) or SPIDER / Decomposition / hybrid as fallbacks, and synthesizes findings into a formatted Word (.docx) research guide. Grill-me intake (research question specificity + framework hint + tentative depth) before the recon search; a second forcing checkpoint after Phase 2 confirms framework + sub-areas + depth before searches consume budget. Configurable depth (5/10/20 queries) controls coverage vs. speed. Output is a 'launching pad' — an orientation guide that lets a researcher dive in confidently, not a finished review. Use when the user starts literature-oriented research (e.g., 'litreview on [topic]', 'literature review on [topic]', 'I'm starting a literature review on X', 'I'm writing a paper on X', 'help me research X', 'I'm doing research on X', 'can you help me research X'). Do NOT use for single one-off paper searches wanting a quick list — that's a plain PubMed/OpenAlex (or Consensus) query.
grants
NIH grant research skill for clinical researchers. Grill-me intake (research idea + career stage + preliminary data + environment + submission posture + known institute targets) locks down the funding strategy before any search runs. Runs a 5-facet Consensus positioning analysis (with draft Significance/Innovation language), maps the research to the right NIH institutes and study sections via RePORTER, finds NOSIs and funded overlap, and produces an editable Word document (.docx) with budget/scope-aware mechanism recommendations, submission timelines, and a mandatory program officer recommendation. Use when the user asks about research funding or makes any grant-related request (e.g., 'grants for [topic]', 'find grants for my research idea', 'what grants match my research', 'help me find NIH funding', 'grant opportunities for my research'). NIH-only scope — non-NIH funders (PCORI, DOD CDMRP, VA, foundations) are out of scope and flagged at intake.