{"meta":{"title":"Default environment variables for your codespace","intro":"GitHub sets default environment variables for each codespace.","product":"Codespaces","breadcrumbs":[{"href":"/en/codespaces","title":"Codespaces"},{"href":"/en/codespaces/developing-in-a-codespace","title":"Developing in a codespace"},{"href":"/en/codespaces/developing-in-a-codespace/default-environment-variables-for-your-codespace","title":"Default environment variables"}],"documentType":"article"},"body":"# Default environment variables for your codespace\n\nGitHub sets default environment variables for each codespace.\n\n## About default environment variables\n\nGitHub sets default environment variables for every codespace. Commands run in codespaces can create, read, and modify environment variables.\n\n> \\[!NOTE]\n> Environment variables are case-sensitive.\n\n## List of default environment variables\n\n| Environment variable                       | Description                                                                                                                                                                                                                                                   |\n| ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `CODESPACE_NAME`                           | The name of the codespace For example, `octocat-literate-space-parakeet-mld5`                                                                                                                                                                                 |\n| `CODESPACES`                               | Always `true` while in a codespace                                                                                                                                                                                                                            |\n| `GIT_COMMITTER_EMAIL`                      | The email for the \"author\" field of future `git` commits.                                                                                                                                                                                                     |\n| `GIT_COMMITTER_NAME`                       | The name for the \"committer\" field of future `git` commits.                                                                                                                                                                                                   |\n| `GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN` | Returns the domain of the GitHub Codespaces forwarded port. For example, `app.github.dev`.                                                                                                                                                                    |\n| `GITHUB_API_URL`                           | Returns the API URL. For example, `https://api.github.com`.                                                                                                                                                                                                   |\n| `GITHUB_GRAPHQL_URL`                       | Returns the GraphQL API URL. For example, `https://api.github.com/graphql`.                                                                                                                                                                                   |\n| `GITHUB_REPOSITORY`                        | The owner and repository name. For example, `octocat/Hello-World`.                                                                                                                                                                                            |\n| `GITHUB_SERVER_URL`                        | Returns the URL of the GitHub server. For example, `https://github.com`.                                                                                                                                                                                      |\n| `GITHUB_TOKEN`                             | A signed auth token representing the user in the codespace. You can use this to make authenticated calls to the GitHub API. For more information, see [Security in GitHub Codespaces](/en/codespaces/reference/security-in-github-codespaces#authentication). |\n| `GITHUB_USER`                              | The name of the user that initiated the codespace. For example, `octocat`.                                                                                                                                                                                    |"}