In short.
This Replit guide helps developers connect external secrets managers to development environments, but the resulting credentials are unavailable in published apps. It provides configuration examples for five secrets managers and JFrog Artifactory, using Replit identity tokens to obtain short-lived provider credentials. Provider trust and permissions must be configured first, and secret retrieval and application authentication require additional work. The documented behavior has not been tested; prices, exact token lifetimes and applicable licence terms are not established by the page.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage is limited to the complete captured text of [https://docs.replit.com/build/code/adding-secrets-to-environments.md], including all six provider tabs, the development-only restriction, CLI and SDK caveats, and chat-secret guidance. Linked pages, repository files and image contents were not assessed. No setup, authentication, secret retrieval, credential refresh or deployment behavior was tested.
The overview
Identity
Add secrets to environments is a Replit documentation guide at [https://docs.replit.com/build/code/adding-secrets-to-environments.md]. It explains how to configure Replit's development modules for reusable environments and how to ask Replit Agent to retrieve the required secrets.
Its examples reference the dev-modules repository at [https://github.com/replit/dev-modules]. The linked repository contents are outside the supplied evidence.
Assessment
The guide is useful when a Replit development project needs access to secrets already held in a supported provider. Its practical strengths are concrete configuration examples and explicit explanations of where authentication stops and application setup begins.
Adoption still requires someone who can configure the provider's identity trust and access permissions. The page alone does not establish that a particular application's SDK, background command or credential refresh will work.
Users
The intended users are Replit developers and teams preparing reusable development environments with controlled access to external secrets or private packages. Beginners will likely need help with provider roles, audiences, identity claims and permissions.
Experienced developers get provider-specific configuration parameters and important distinctions between CLI authentication, SDK authentication and published-app credentials. JFrog administrators also have a role in configuring identity mappings and repository permissions.
Capabilities
The page covers AWS Secrets Manager, Infisical, Azure Key Vault, HashiCorp Vault and Google Secret Manager. Each option includes a module build command and prerequisites for establishing provider trust and access.
The JFrog Artifactory option covers private-package authentication through an authenticated jf wrapper, including token refresh before commands when needed. The page also describes secure secret-entry forms for a private chat and entry through the editor's Secrets tab.
Using it
Requirements
You need a Replit development environment or workspace, a supported provider and authority to configure its trust and permissions. The provider must accept Replit's identity and grant access to the intended development secrets or repositories. Several configurations bind access to the workspace's org_id.
Provider requirements differ: AWS needs an OIDC provider and role; Infisical needs a machine identity with JWT authentication; Azure needs a managed identity or app registration; Vault needs a JWT role and a reachable server; Google needs workload identity and service-account permissions. JFrog needs an administrator-configured OIDC integration and identity mapping.
Mechanism
OpenID Connect, or OIDC, lets the provider accept a signed Replit identity token as proof of the workspace's identity. The modules exchange that token for short-lived provider credentials, subject to the provider's configured trust and permissions.
These credentials enable authentication; the modules do not automatically retrieve secrets or configure the app. The guide directs users to tell Agent which project, vault or secret path to access. JFrog's wrapper separately manages its cached token and refreshes it before commands when necessary.
Setup
Configure the provider's trust and narrowly scoped development permissions first. Then add the dev-modules repository to the reusable environment configuration and select the provider's build script with your own role, identity, project, region or server parameters. The supplied repository examples use ref: main.
After configuring the connection, ask Agent to retrieve the specific secrets and configure the application. For non-interactive commands, the page directs Agent to load ~/.config/replit-oidc/env.sh and follow the provider README's runtime instructions. Those linked instructions are not included here.
Example
The AWS example registers [https://sts.replit.com] as an OIDC provider with audience sts.amazonaws.com. A role must trust the intended Replit workspace and have read access to the required development secrets.
The environment then invokes bash ./dev-modules/aws-oidc/build.sh with --role-arn=arn:aws:iam::123456789012:role/replit-development and --region=us-east-1. These are example identifiers to replace with your own resources. Agent still needs instructions identifying which secrets the app requires. This example was not executed.
Assessment & evidence
Limitations
Replit identity tokens and the exchanged credentials are available only in development environments and the workspace. They are unavailable in published apps, including Autoscale, Reserved VM and Scheduled Deployments. The page directs production users to configure production app secrets separately.
CLI authentication does not guarantee SDK authentication or credential refresh. Vault and Infisical CLI helpers do not supply credentials to unrelated SDK processes. For JFrog, bare npm, pip, mvn and docker commands are not automatically authenticated; the documented jf commands also require repository configuration.
A chat-scoped secret must not be assumed available in another chat or in a reusable environment build. Exact credential lifetimes and complete runtime behavior are not established by this page.
Reasoning
The documented use of short-lived credentials suggests a way to reduce reliance on stored, long-lived provider authentication credentials during development. This is an inference from the authentication design, not a measured security result.
The benefit depends on correct workspace restrictions and provider permissions. The page's JFrog guidance illustrates this dependency: org_id identifies the Replit workspace, fixed token timestamps should not be matched, and a populated Username can introduce permissions through automatically joined groups.
Alternatives
For a secret needed only during a private chat, the page describes asking Agent to open a secure entry form. This offers a narrower scope than connecting an external provider to a reusable environment. Credentials belong in the form, never in chat.
The page also describes entering a secret through the editor's Secrets tab and directs published apps to production app secrets. It provides no comparative assessment of other development platforms or secrets-management products.
Evidence
The evidence is the complete captured text of Replit's Add secrets to environments page at [https://docs.replit.com/build/code/adding-secrets-to-environments.md]. Its captured source revision is sha256:c4dc1bfe7c3755edc1ffad1b8dadb8bb39ce5d0f6213771ff88907b2192359fe.
The linked provider READMEs, repository implementation, JFrog documentation and other Replit pages are not included. No modules, commands, provider connections, secure forms, applications or deployments were run or tested. Functional reliability and security outcomes remain unverified.
Access & freshness
Costs
The page provides no Replit prices, provider usage charges, included quotas or total operating-cost estimate. Those costs remain unknown.
For JFrog, the page states that its linked OIDC documentation lists support with Enterprise X and Enterprise+ licences. It supplies no prices for those licences. Describing the modules as open source does not establish that the connected services are free.
Rights
The page describes Replit's OIDC modules as open source but supplies no licence identifier or licence text. It also does not establish permission to redistribute the documentation.
The linked repository licences and provider service terms are outside the supplied evidence. Specific reuse, modification and redistribution rights therefore remain unknown.
Freshness
The document was captured on 15 November 2026 at 09:57:12.769 UTC. The supplied page does not state a publication date, last-update date or module release version; the capture timestamp does not establish those dates.
The configuration examples reference the repository's main branch without an immutable commit. Module contents may therefore change independently of this captured guide. Current implementation compatibility has not been assessed.
Actions
Start by identifying whether access is needed in a development environment, a single private chat or a published app. For a provider connection, confirm that an administrator can configure workspace trust and the minimum required secret or repository permissions, then consult the linked provider instructions.
Before relying on the connection, verify secret retrieval and authentication in the actual application process, including any required credential refresh. For JFrog, use the authenticated wrapper and keep jfrog-token output out of logs and chat. Confirm applicable prices and licence terms separately.
