ConfigurationΒΆ
How to configure Perspt for your workflow.
Configuration SourcesΒΆ
Perspt loads configuration from (highest priority first):
CLI Arguments β
perspt --model gpt-5.2Environment Variables β
export OPENAI_API_KEY=...Config File β
~/.perspt/config.tomlDefaults β Built-in fallbacks
Config File LocationΒΆ
~/.perspt/config.toml
Create it:
mkdir -p ~/.perspt
perspt config --edit
Config File FormatΒΆ
# ~/.perspt/config.toml
[default]
provider = "openai"
model = "gpt-5.2"
[providers.openai]
api_key = "sk-..."
[providers.anthropic]
api_key = "sk-ant-..."
[agent]
architect_model = "gpt-5.2"
actuator_model = "claude-opus-4.5"
verifier_model = "gemini-3-pro"
energy_weights = [1.0, 0.5, 2.0]
stability_threshold = 0.1
max_retries_compile = 3
max_retries_tool = 5
Environment VariablesΒΆ
Variable |
Description |
|---|---|
|
OpenAI API key |
|
Anthropic API key |
|
Google Gemini API key |
|
Groq API key |
|
Cohere API key |
|
XAI (Grok) API key |
|
DeepSeek API key |
CLI Configuration CommandsΒΆ
# Show current configuration
perspt config --show
# Set a value
perspt config --set default.model=gpt-5.2
# Edit in $EDITOR
perspt config --edit
Project ConfigurationΒΆ
Initialize project-specific config:
cd my-project
perspt init --memory --rules
This creates:
my-project/
βββ PERSPT.md # Project memory/context
βββ .perspt/
βββ config.toml # Project config
βββ rules.star # Policy rules
PERSPT.mdΒΆ
Project memory file that provides context to the agent:
# My Project
## Overview
This is a Python web application using FastAPI.
## Architecture
- `api/` - REST endpoints
- `core/` - Business logic
- `tests/` - pytest suite
## Conventions
- Use type hints everywhere
- 100% test coverage required
Per-Session ConfigurationΒΆ
Override for a single session:
perspt chat --model claude-opus-4.5
perspt agent \
--architect-model gpt-5.2 \
--actuator-model claude-opus-4.5 \
"Create module"
See AlsoΒΆ
Providers - Provider-specific setup
Agent Options - Agent configuration
Security Rules - Policy rules