Bundled Libraries
Claude Code ships with libraries inside its program. These libraries read their own environment variables, and Claude Code itself does not use them. A variable here only works when the library code runs. Setting one can change behavior in a way Claude Code does not plan for.
This page lists 126 variables. The effect depends on the library and the feature that runs it. Set them in your shell.
Example
export GRPC_VERBOSITY=DEBUG
claude
The bundled gRPC library prints more log lines. This helps when an OTEL gRPC exporter fails.
Variables
The table is sorted by name. See Environment Variables for what each column and badge means.
| Variable | Status | Library | What it does |
|---|---|---|---|
APP_ | Undocumented | cloud detector | A bundled cloud detector treats a value that contains ondigitalocean. as the DigitalOcean App Platform. |
AWS_ | Undocumented | AWS SDK | The bundled AWS SDK env credential provider reads it with the key, secret, token, expiry, and scope vars. |
AWS_ | Undocumented | AWS SDK | The bundled AWS SDK reads it as a comma list of preferred auth schemes. |
AWS_ | Undocumented | AWS SDK | The bundled AWS SDK sends it as the auth value to the container credentials endpoint. |
AWS_ | Undocumented | AWS SDK | The bundled AWS SDK reads the container credentials auth token from this file path. |
AWS_ | Documented | AWS SDK | The bundled AWS SDK env credential provider reads it as the expiry time of the env credentials. |
AWS_ | Undocumented | AWS SDK | The bundled AWS SDK reads it as the SDK defaults mode. |
AWS_ | Undocumented | AWS SDK | Turns off the EC2 instance metadata lookup in the bundled AWS SDK credential chain and region defaults. |
AWS_ | Undocumented | AWS SDK | Sets the EC2 metadata service URL for the bundled AWS SDK. |
AWS_ | Undocumented | AWS SDK | Picks IPv4 or IPv6 for the EC2 metadata service address in the bundled AWS SDK. |
AWS_ | Undocumented | AWS SDK | Blocks the IMDSv1 fallback in the bundled AWS SDK, so only token-based IMDSv2 is used. |
AWS_ | Undocumented | AWS SDK | Overrides the AWS SSO endpoint in the bundled AWS SDK. |
AWS_ | Undocumented | AWS SDK | Overrides the AWS SSO OIDC endpoint in the bundled AWS SDK. |
AWS_ | Undocumented | AWS SDK | Selects the concurrent-aware store in the bundled AWS Lambda Invoke when present. |
AWS_ | Undocumented | AWS SDK | Sets the cache folder for the AWS SDK login_ credential provider (aws login). |
AWS_ | Undocumented | AWS SDK | Sets the maximum retry attempts of the bundled AWS SDK clients. |
AWS_ | Undocumented | AWS SDK | Sets the retry mode of the bundled AWS SDK clients. |
AWS_ | Undocumented | AWS SDK | Sets the session name for AWS web identity role assumption in the bundled AWS SDK. |
AWS_ | Undocumented | AWS SDK | Adds an app/ part to the user agent of the bundled AWS SDK calls. |
AWS_ | Undocumented | AWS SDK | Turns on AWS dual-stack endpoints in the AWS SDK. |
AZURE_ | Undocumented | Azure SDK | Lists extra tenant IDs the bundled Azure identity library may use. |
AZURE_ | Undocumented | Azure SDK | Sets the Microsoft Entra authority URL of the bundled Azure identity library. |
AZURE_ | Undocumented | Azure SDK | Gives the password of the client certificate for the Azure Environment. |
AZURE_ | Undocumented | Azure SDK | Gives the client certificate path for the Azure Environment. |
AZURE_ | Documented | Azure SDK | Gives the Azure app client ID for the bundled Azure identity credentials. |
AZURE_ | Undocumented | Azure SDK | Gives the Azure app client secret for the Azure Environment. |
AZURE_ | Undocumented | Azure SDK | Makes the Azure client certificate credential send the full certificate chain. |
AZURE_ | Undocumented | Azure SDK | Gives the federated token file for Azure workload identity login. |
AZURE_ | Undocumented | Azure SDK | Turns off multi-tenant token requests in the Azure identity library, so the configured tenant is always used. |
AZURE_ | Undocumented | Azure SDK | Sets the log level of the bundled Azure SDK logger. |
AZURE_ | Undocumented | Azure SDK | Gives the password for the Azure username and password credential. |
AZURE_ | Undocumented | Azure SDK | Sets the Azure pod identity authority host for managed identity login in the bundled MSAL library. |
AZURE_ | Undocumented | Azure SDK | Sets the regional authority name for MSAL token requests. |
AZURE_ | Documented | Azure SDK | Gives the Azure tenant ID for the bundled Azure identity credentials. |
AZURE_ | Undocumented | Azure SDK | Picks which Azure credential chain Default uses. |
AZURE_ | Undocumented | Azure SDK | Gives the username for the Azure username and password credential. |
BUF_ | Undocumented | protobuf | Turns off native Big use in the bundled protobuf library, so it uses its fallback int64 code. |
BUN_ | Undocumented | Bun runtime | Turns off dynamic chunk size tuning for native readable streams in the Bun runtime. |
BUN_ | Undocumented | Bun runtime | Shows the Bun runtime warning for unsupported async_ use. |
BUN_ | Undocumented | Bun runtime | Tells the Bun inspector where to report that it listens. |
BUN_ | Undocumented | Bun runtime | Gives a fallback port for the Bun dev server when the default port is busy. |
CHOKIDAR_ | Undocumented | chokidar | Sets the poll interval for the bundled chokidar file watcher when polling is on. |
CHOKIDAR_ | Undocumented | chokidar | Forces the bundled chokidar file watcher to use polling or not. |
CLOUD_ | Undocumented | Google auth | Marks a Google Cloud Run job. |
DATABASE_ | Documented | Bun SQL | Gives the default connection URL to the embedded Bun SQL client. |
DATABASEURL | Undocumented | Bun SQL | Is a second spelling of DATABASE_ for the embedded Bun SQL client. |
DEBUG_ | Undocumented | Google auth | Prints GCP metadata detection errors with console.. |
DETECT_ | Undocumented | Google auth | Sets the number of retries for GCP metadata server detection. |
FUNCTION_ | Undocumented | Google auth | Marks a Google Cloud Functions runtime in the bundled Google auth library. |
FUNCTION_ | Undocumented | Google auth | Marks a Google Cloud Functions runtime in the bundled Google auth library. |
GAE_ | Undocumented | Google auth | Marks a Google App Engine runtime in the bundled Google auth library. |
GAE_ | Undocumented | Google auth | Marks a Google App Engine runtime in the bundled Google auth library. |
GCE_ | Undocumented | Google auth | Sets the host of the Compute Engine metadata server for the bundled Google auth library. |
GCE_ | Undocumented | Google auth | Sets the address of the Compute Engine metadata server for the bundled Google auth library. |
GOOGLE_ | Undocumented | Google auth | Path of the certificate config for mTLS in the bundled Google auth library. |
GOOGLE_ | Undocumented | Google auth | Sets the quota project of the credential in the bundled Google auth library. |
GRACEFUL_ | Undocumented | graceful-fs | Overrides the platform name that the bundled graceful- patches use. |
GRPC_ | Undocumented | gRPC | Path of a root certificate file that the bundled gRPC library loads as its TLS roots. |
GRPC_ | Undocumented | gRPC | Turns the gRPC outlier detection load balancer on or off. |
GRPC_ | Undocumented | gRPC | Lists the gRPC tracers to turn on. |
GRPC_ | Undocumented | gRPC | Makes the gRPC DNS resolver use the alternative path when it is true. |
GRPC_ | Undocumented | gRPC | Sets the gRPC log level. |
GRPC_ | Undocumented | gRPC | Sets the TLS cipher suites of the bundled gRPC library. |
GRPC_ | Undocumented | gRPC | Lists the gRPC tracers to turn on. |
GRPC_ | Undocumented | gRPC | Sets the gRPC log level. |
LRU_ | Undocumented | lru-cache | Set to 1 to hide the lru- warning about a missing Abort. |
MARIADB_ | Undocumented | Bun SQL | Sets the database of the MariaDB connection of the embedded Bun SQL client. |
MARIADB_ | Undocumented | Bun SQL | Sets the host of the MariaDB connection of the embedded Bun SQL client. |
MARIADB_ | Undocumented | Bun SQL | Sets the password of the MariaDB connection of the embedded Bun SQL client. |
MARIADB_ | Undocumented | Bun SQL | Sets the port of the MariaDB connection of the embedded Bun SQL client. |
MARIADB_ | Undocumented | Bun SQL | Gives the default MariaDB connection URL to the embedded Bun SQL client. |
MARIADB_ | Undocumented | Bun SQL | Sets the user of the MariaDB connection of the embedded Bun SQL client. |
MARIADBDATABASE | Undocumented | Bun SQL | Is another spelling of MARIADB_. |
MARIADBHOST | Undocumented | Bun SQL | Is another spelling of MARIADB_. |
MARIADBPASSWORD | Undocumented | Bun SQL | Is another spelling of MARIADB_. |
MARIADBPORT | Undocumented | Bun SQL | Is another spelling of MARIADB_. |
MARIADBURL | Undocumented | Bun SQL | Is another spelling of MARIADB_ for the embedded Bun SQL client. |
MARIADBUSER | Undocumented | Bun SQL | Is another spelling of MARIADB_. |
MYSQL_ | Undocumented | Bun SQL | Sets the database of the MySQL connection of the embedded Bun SQL client. |
MYSQL_ | Undocumented | Bun SQL | Sets the host of the MySQL connection of the embedded Bun SQL client. |
MYSQL_ | Undocumented | Bun SQL | Sets the password of the MySQL connection of the embedded Bun SQL client. |
MYSQL_ | Undocumented | Bun SQL | Sets the port of the MySQL connection of the embedded Bun SQL client. |
MYSQL_ | Undocumented | Bun SQL | Gives the default MySQL connection URL to the embedded Bun SQL client. |
MYSQL_ | Undocumented | Bun SQL | Sets the user of the MySQL connection of the embedded Bun SQL client. |
MYSQLDATABASE | Undocumented | Bun SQL | Is another spelling of MYSQL_. |
MYSQLHOST | Undocumented | Bun SQL | Is another spelling of MYSQL_. |
MYSQLPASSWORD | Undocumented | Bun SQL | Is another spelling of MYSQL_. |
MYSQLPORT | Undocumented | Bun SQL | Is another spelling of MYSQL_. |
MYSQLURL | Undocumented | Bun SQL | Is another spelling of MYSQL_ for the embedded Bun SQL client. |
MYSQLUSER | Undocumented | Bun SQL | Is another spelling of MYSQL_. |
NODE_ | Undocumented | Bun runtime | Bun runtime: if set, the process has an IPC channel and send and disconnect are stubbed in workers. |
NODE_ | Undocumented | Bun runtime | Bun runtime cluster: rr or none picks the scheduling policy. |
NODE_ | Undocumented | Bun runtime | Bun runtime: enables debuglog sections by name. |
NODE_ | Undocumented | Bun runtime | Bun runtime: a non-empty value sets terminal color depth to one color. |
NODE_ | Undocumented | Bun runtime | Bun REPL: a number that parses to non-zero turns off terminal mode. |
NODE_ | Undocumented | Bun runtime | Bun dev server: fallback port after PORT and BUN_ when the port is in use. |
NODE_ | Undocumented | Bun runtime | Bun REPL: path of a module to load in place of the built-in REPL. |
NODE_ | Undocumented | Bun runtime | Bun REPL: file path for persistent history. |
NODE_ | Undocumented | Bun runtime | Bun REPL: history size. |
NODE_ | Undocumented | Bun runtime | Bun REPL: strict or sloppy mode. |
NODE_ | Undocumented | Bun runtime | Bun runtime cluster: gives the worker id of a forked worker and is deleted after use. |
OSTYPE | Undocumented | which | The bundled which code treats cygwin or msys as a Windows-style path list. |
PASSWORD | Documented | Bun SQL | Gives a fallback password to the embedded Bun SQL client. |
PG_ | Undocumented | Bun SQL | Sets the database of the Postgres connection of the embedded Bun SQL client. |
PG_ | Undocumented | Bun SQL | Sets the host of the Postgres connection of the embedded Bun SQL client. |
PG_ | Undocumented | Bun SQL | Sets the password of the Postgres connection of the embedded Bun SQL client. |
PG_ | Undocumented | Bun SQL | Sets the port of the Postgres connection of the embedded Bun SQL client. |
PG_ | Undocumented | Bun SQL | Sets the TLS mode of the Postgres connection of the embedded Bun SQL client. |
PG_ | Undocumented | Bun SQL | Is a third spelling of POSTGRES_ for the embedded Bun SQL client. |
PG_ | Undocumented | Bun SQL | Sets the user of the Postgres connection of the embedded Bun SQL client. |
PGDATABASE | Undocumented | Bun SQL | Is another spelling of PG_. |
PGHOST | Undocumented | Bun SQL | Is another spelling of PG_. |
PGPASSWORD | Undocumented | Bun SQL | Is another spelling of PG_. |
PGPORT | Undocumented | Bun SQL | Is another spelling of PG_. |
PGSSLMODE | Undocumented | Bun SQL | Is another spelling of PG_. |
PGURL | Undocumented | Bun SQL | Is another spelling of POSTGRES_ for the embedded Bun SQL client. |
PGUSER | Undocumented | Bun SQL | Is another spelling of PG_. |
POSTGRES_ | Undocumented | Bun SQL | Gives the default Postgres connection URL to the embedded Bun SQL client. |
SQLITE_ | Undocumented | Bun SQL | Gives the default SQLite connection URL to the embedded Bun SQL client. |
SQLITEURL | Undocumented | Bun SQL | Is another spelling of SQLITE_ for the embedded Bun SQL client. |
TEAMCITY_ | Undocumented | color support | TeamCity CI variable. |
TLS_ | Undocumented | Bun SQL | Gives a default URL and turns on TLS for the embedded Bun SQL client. |
TLS_ | Undocumented | Bun SQL | Gives the MariaDB URL and turns on TLS for the embedded Bun SQL client. |
TLS_ | Undocumented | Bun SQL | Gives the MySQL URL and turns on TLS for the embedded Bun SQL client. |
TLS_ | Undocumented | Bun SQL | Gives the Postgres URL and turns on TLS for the embedded Bun SQL client. |
VERBOSE_ | Undocumented | Bun runtime | Bun's server-side rendering debug flag. |
How It Works
The names were found by scanning strings in the program, so the list can miss names built at run time. Rows describe what the library does with the name, not what Claude Code does.
Related Pages
- Environment Variables: how Claude Code reads variables and which value wins.
- System and Third-Party
- Telemetry and Debug
- Undocumented Items: every item that only the program shows.
Source: the program (variable names found in the 2.1.304 binary) and the Environment Variables page of the official docs.