Skip to Content

Environment

Create .env from .env.example and set the required key(s).

Required

  • OPENAI_API_KEY: API key for OpenAI models (used by GraphRAG via settings.yaml).

Tips

  • Do not commit secrets. Prefer .env.local in production workflows.
  • If running GraphRAG commands via API routes, .env is read at app root.
  • Rotate keys if they may have been exposed in logs or outputs.
Last updated on