Skip to content
This repository was archived by the owner on Aug 18, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 20 additions & 11 deletions workspaces/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ env | grep CODER_
```

## Available environment variables

<!-- markdownlint-disable MD044 -->
<table>
<tr>
<th>Environment variable</th>
Expand All @@ -33,6 +33,19 @@ env | grep CODER_
<td><code>CODER_USERNAME</code></td>
<td>Your user name</td>
</tr>
<tr>
<td><code>CODER_URL</code></td>
<td>The base URL of your Coder deployment</td>
</tr>
<tr>
<td><code>CODER_WP_NAME</code></td>
<td>The name of the workspace provider hosting the workspace</td>
</tr>
<tr>
<td><code>CODER_ASSETS_ROOT</code></td>
<td>The directory where coder adds Coder-specific assets during
workspace creation, such as the <code>coder-cli</code> binary</td>
</tr>
<tr>
<td><code>CODER_CPU_LIMIT</code></td>
<td>The CPU core limit given to your workspace</td>
Expand All @@ -49,18 +62,14 @@ env | grep CODER_
<td><code>CODER_IMAGE_DIGEST</code></td>
<td>The content-addressable identifier for your image</td>
</tr>
<tr>
<td><code>CODER_IMAGE_URI</code></td>
<td>The URI for the image used to build the workspace</td>
</tr>
<tr>
<td><code>CODER_WP_NAME</code></td>
<td>The name of the workspace provider hosting the environment</td>
</tr>
<tr>
<td><code>CODER_RUNTIME</code></td>
<td>The container runtime used to start the workspace (either
`kubernetes/default` or `kubernetes/sysbox` if the workspace
is a CVM</td>
<code>kubernetes/default</code> or <code>kubernetes/sysbox</code>
if the workspace is a CVM</td>
</tr>
<tr>
<td><code>CODER_IMAGE_URI</code></td>
<td>The URI of the image used to build the workspace</td>
</tr>
</table>