AgentForge requires a single environment variable to operate: a Groq API key that authorizes calls to the Groq LLM service. This key is stored in aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/dominikKos9/AgentForge/llms.txt
Use this file to discover all available pages before exploring further.
.env file at the project root and loaded automatically by python-dotenv when the visual agent module initialises. No other credentials or environment setup is needed beyond a working Python installation and the installed dependencies.
The .env file
Create a file named .env in the project root directory — the same directory that contains requirements.txt — and add your Groq API key:
.env
gsk_xxxxxxxxxxxxxxxxx with your actual key. The variable name must be exactly GROQ_API_KEY; the visual agent reads it with os.getenv("GROQ_API_KEY").
Getting a Groq API key
Create a Groq account
Visit console.groq.com and sign up for a free account.
Generate an API key
In the Groq console, navigate to API Keys and click Create API Key. Give it a descriptive name such as
agentforge-local.How the key is loaded
python-dotenv loads the .env file at module import time inside visual_agent.py:
backend/agents/visual_agent.py
load_dotenv() runs at the top level of the module, so the key is available in os.environ before any agent function executes. The Groq client is then initialised immediately after:
backend/agents/visual_agent.py
Because
load_dotenv() runs automatically when the module is imported, you do not need to export GROQ_API_KEY as a shell variable before starting the application. Simply having the key in your .env file is sufficient.