---
last_modified: 2026-08-25
title: "Configuring Deno behavior"
---

There are several environment variables which can impact the behavior of Deno:

### DENO_AUDIT_PERMISSIONS

Audit every permission access (allowed or denied). Set to a file path to write a
JSONL audit log, or to the literal value `otel` to emit each access as an
OpenTelemetry log record via the configured exporter. See
[permissions](/runtime/reference/permissions/) for the field set and the OTel
attribute names.

### DENO_AUTH_TOKENS

A list of authorization tokens which can be used to allow Deno to access remote
private code. See the
[Private modules and repositories](/runtime/reference/private_repositories)
section for more details.

### DENO_TLS_CA_STORE

A list of certificate stores which will be used when establishing TLS
connections. The available stores are `mozilla` and `system`. You can specify
one, both or none. Certificate chains attempt to resolve in the same order in
which you specify them. The default value is `mozilla`. The `mozilla` store will
use the bundled Mozilla certs provided by
[`webpki-roots`](https://crates.io/crates/webpki-roots). The `system` store will
use your platform's
[native certificate store](https://crates.io/crates/rustls-native-certs). The
exact set of Mozilla certs will depend on the version of Deno you are using. If
you specify no certificate stores, then no trust will be given to any TLS
connection without also specifying `DENO_CERT` or `--cert` or specifying a
specific certificate per TLS connection.

### DENO_CERT

Load a certificate authority from a PEM encoded file. This "overrides" the
`--cert` option. See the [Proxies](#proxies) section for more information.

### DENO_DIR

this will set the directory where cached information from the CLI is stored.
This includes items like cached remote modules, cached transpiled modules,
language server cache information and persisted data from local storage. This
defaults to the operating system's default cache location and then under the
`deno` path.

### DENO_INSTALL_ROOT

The root directory used by `deno install` when installing executables.
Executables are placed in the `bin` subdirectory of this root, unless the path
already ends with `bin`, in which case it is used directly. This defaults to
`$HOME/.deno`, so executables are installed to `$HOME/.deno/bin` by default.

### DENO_NO_PACKAGE_JSON

Set to disable auto-resolution of package.json files.

### DENO_NO_PROMPT

Set to disable permission prompts on access (alternative to passing
`--no-prompt` on invocation).

### DENO_NO_UPDATE_CHECK

Set to disable checking if a newer Deno version is available.

### DENO_WEBGPU_TRACE

The directory to use for WebGPU traces.

### HTTP_PROXY

The proxy address to use for HTTP requests. See the [Proxies](#proxies) section
for more information.

### HTTPS_PROXY

The proxy address to use for HTTPS requests. See the [Proxies](#proxies) section
for more information.

### NO_COLOR

If set, this will prevent the Deno CLI from sending ANSI color codes when
writing to stdout and stderr. See the website
[https://no-color.org](https://no-color.org/) for more information on this _de
facto_ standard. The value of this flag can be accessed at runtime without
permission to read the environment variables by checking the value of
[`Deno.noColor`](/api/deno/~/Deno.noColor).

### NO_PROXY

Indicates hosts which should bypass the proxy set in the other environment
variables. See the [Proxies](#proxies) section for more information.

### NODE_EXTRA_CA_CERTS

Path to a PEM file with extra certificate authorities. Loaded at the root
certificate store level, so the certs are honored by `fetch()`,
[`Deno.connectTls()`](/api/deno/~/Deno.connectTls), and the Node compat APIs
(`node:https`, `node:tls`). Available in Deno 2.8+. Missing or invalid files
emit a warning rather than failing, matching Node.js semantics.

### NPM_CONFIG_REGISTRY

The npm registry to use when loading modules via
[npm specifiers](/runtime/fundamentals/node/#using-npm-packages)

## Proxies

Deno is able to handle network requests through a proxy server, useful for
various reasons such as security, caching, or accessing resources behind a
firewall. The runtime supports proxies for module downloads and the Web standard
`fetch` API.

Deno reads proxy configuration from environment variables: `HTTP_PROXY`,
`HTTPS_PROXY` and `NO_PROXY`.

On Windows, if environment variables are not found, Deno falls back to reading
proxies from the registry.
