---
title: Environment Variables
description: Learn about the environment variables used in Geistdocs
type: reference
summary: Environment variables required by Geistdocs for AI chat and production URL configuration.
prerequisites:
  - /docs/getting-started
related:
  - /docs/configuration
  - /docs/deployment
---

# Environment Variables



Geistdocs has functionality that requires specific environment variables to be set.

## `AI_GATEWAY_API_KEY`

The API key for the AI gateway. This is used to power the AI chat functionality.

<Callout>
  This is automatically set when deploying to Vercel.
</Callout>

## `NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL`

The production URL of the Geistdocs site. This is automatically set when deploying to Vercel.

It should be in the format `localhost:3000` (i.e. without the protocol prefix). This is how Vercel sets the environment variable when deploying to a project.


---

For a semantic overview of all documentation, see [/sitemap.md](/sitemap.md)

For an index of all available documentation, see [/llms.txt](/llms.txt)