Configuration#
Pantheon uses a unified configuration system shared by all interfaces (REPL, UI, and API).
Overview#
Configuration is stored in the .pantheon/ directory:
.pantheon/
├── settings.json # Main configuration
├── mcp.json # MCP server definitions
├── agents/ # Agent templates
├── teams/ # Team templates
├── prompts/ # Reusable prompt snippets
├── memory/ # Conversation storage
└── logs/ # Application logs
Configuration Priority#
Settings are loaded in this order (highest priority first):
Command-line arguments
Environment variables
Project config (
./.pantheon/)User global config (
~/.pantheon/)Package defaults
This means project-level settings override user-level settings, and CLI arguments override everything.
Quick Setup#
Create project configuration:
mkdir -p .pantheon/agents .pantheon/teams
Set API key:
export OPENAI_API_KEY="your-key"
Or in .pantheon/settings.json:
{
"api_keys": {
"openai": "your-key"
}
}
Create an agent template:
Create .pantheon/agents/my_assistant.md:
---
name: My Assistant
model: openai/gpt-4o-mini
icon: 🤖
---
You are a helpful assistant.
Use in any interface:
# REPL
pantheon cli --template my_assistant
# ChatRoom
pantheon ui --auto-start-nats --auto-ui --template my_assistant
# API
from pantheon.factory import load_agent
agent = load_agent("my_assistant")
Next Steps#
Settings Reference - Full settings.json reference
Templates - Creating agent and team templates
MCP Configuration - MCP server configuration
Model Configuration - Model selection and fallbacks