This is the first AgentForge workflow to run when you are new to the project.
It installs AgentForge, scaffolds .agentforge/, turns on debug mode for a smoke test, and runs one direct Agent without provider credentials.
From the project directory that should own your AgentForge files, create and activate a Python environment. AgentForge requires Python 3.12 or newer; Python 3.14 is recommended when choosing a fresh interpreter:
python3 -m venv .venv
source .venv/bin/activateOn Windows, activate the environment with:
.venv\Scripts\activateInstall AgentForge:
pip install agentforgeRun the scaffold command from the same project directory:
python -m agentforge.init_agentforgeThis creates the project-owned .agentforge/ resource folder.
For this first run, you only need .agentforge/settings/system.yaml and .agentforge/prompts/hello_agent.yaml.
Debug mode returns a simulated response instead of calling a model provider.
No API keys or local model services are needed for this quickstart.
Open .agentforge/settings/system.yaml and set debug.mode to true:
debug:
mode: trueCreate run_hello_agent.py in your project root:
from agentforge.agent import Agent
result = Agent("hello_agent").run(user_input="AgentForge")
print(result)Run it:
python run_hello_agent.pyThe final output line should be:
Hello from AgentForge debug mode.
When debug.mode is true, AgentForge may print config/debug messages before that final line.
AgentForge resolves the active project root in this order:
- An explicit
Config(root_path=...)orConfig.reset(root_path=...)call. - The
AGENTFORGE_ROOTenvironment variable. - Auto-discovery walking upward from the running script until it finds
.agentforge/.
For the beginner path, keep run_hello_agent.py inside the project that contains .agentforge/.
If your script lives outside that project, set AGENTFORGE_ROOT before running it:
export AGENTFORGE_ROOT=/path/to/your/projectExplicit Config(root_path=...) and Config.reset(root_path=...) are advanced deterministic setup options used most often in tests or tools.
This quickstart uses debug mode, so it does not need provider credentials.
When debug mode is off, the shipped scaffold defaults to the Codex OAuth model path in .agentforge/settings/models.yaml.
That real-model path is covered in First Real Model Run.
API-key providers and local model services are alternatives after the smoke test works.
- Start: AgentForge Documentation
- Continue to First Real Model Run when you are ready to leave debug mode.
- Read Core Concepts when you want the mental model before editing more YAML.
- Use Installation Details for environment setup, provider key examples, and troubleshooting links.