Configuration#
All settings are read from environment variables (or a .env file in the project root). Copy .env.example to .env and edit before running.
LLM Backend#
Variable |
Default |
Description |
|---|---|---|
|
|
Backend: |
|
|
Anthropic API key. If empty, falls back to ccproxy OAuth ( |
|
|
|
|
|
Override base URL for the Anthropic client (e.g. for proxies or test servers) |
|
|
Port for ccproxy server |
|
|
Base URL for OpenAI-compatible endpoint (OpenRouter / local vLLM) |
|
|
API key for OpenAI-compatible endpoint |
|
|
Model name for OpenAI-compatible endpoint |
Backend shortcuts:
|
Notes |
|---|---|
|
Default. Uses |
|
Set |
|
Defaults to |
|
Set |
Minimax-specific variables:
Variable |
Default |
Description |
|---|---|---|
|
|
Minimax API key |
|
|
Minimax model name (e.g. |
Models#
Variable |
Default |
Description |
|---|---|---|
|
|
Main reasoning model (all agents) |
|
|
Fast/cheap model for compression, formalization, counterexample |
settings.active_model and settings.active_fast_model are derived read-only properties that resolve the correct model string for the active backend. All agents use these properties — never the raw EUREKACLAW_MODEL variable directly.
External APIs#
Variable |
Default |
Description |
|---|---|---|
|
|
Semantic Scholar API key (optional — higher rate limits) |
|
|
Brave Search API key (web search) |
|
|
SerpAPI key (web search fallback) |
|
|
Wolfram Alpha app ID (symbolic computation) |
Pipeline Modes#
Variable |
Default |
Options |
Description |
|---|---|---|---|
|
|
|
Post-run learning mode |
|
|
|
Stage gate behavior |
|
|
|
Which theory proof pipeline to use |
|
|
|
Paper output format |
|
|
|
Experiment stage: auto-detect / force run / force skip (future work — recommend |
Gate modes:
none— no stage cards or approval promptsauto— prints stage summary cards; prompts only when low-confidence lemmas detectedhuman— prints cards and prompts at every gate; accepts text feedback injected into next agent
Proof & Theory#
Variable |
Default |
Description |
|---|---|---|
|
|
Max proof iterations in LemmaDeveloper loop |
|
|
Max retries when human reviewer flags a proof step |
|
|
Auto-accept proofs with confidence ≥ this threshold (skips LLM Verifier call) |
|
|
Confidence threshold for the LLM Verifier to mark a lemma as passing |
|
|
Force Refiner if same error repeats N times |
|
|
Inject proof readability rules into WriterAgent prompts |
Context & Compression#
Variable |
Default |
Description |
|---|---|---|
|
|
Compress agent history every N turns using fast model |
Token Limits (per call type)#
Variable |
Default |
Applies to |
|---|---|---|
|
|
Main agent reasoning loop (all agents) |
|
|
Proof generation (Prover) |
|
|
Research direction planning (diverge); converge uses half |
|
|
Lemma decomposition (LemmaDecomposer, KeyLemmaExtractor) |
|
|
Proof assembly narrative (Assembler) |
|
|
Final theorem statement extraction (TheoremCrystallizer) |
|
|
Proof plan generation (ProofArchitect) |
|
|
Analysis stages (MemoryGuidedAnalyzer, TemplateSelector, ProofSkeletonBuilder) |
|
|
Lean4/Coq sketch generation (SketchGenerator) |
|
|
Formalization, Refiner, CounterexampleSearcher, ResourceAnalyst, PaperReader |
|
|
Proof verification (Verifier) and peer review |
|
|
Context compression summaries (fast model) |
All 12 values are adjustable from the Settings tab in the web UI.
Paper Reader#
Variable |
Default |
Description |
|---|---|---|
|
|
Download and extract from full PDF in addition to abstract |
|
|
Max papers to extract from abstract |
|
|
Max papers to extract from full PDF |
Turn Limits#
Variable |
Default |
Description |
|---|---|---|
|
|
Tool-use turns in SurveyAgent loop |
|
|
Turns per inner theory stage |
|
|
Turns for WriterAgent |
Search & Retrieval#
Variable |
Default |
Description |
|---|---|---|
|
|
Hard cap on arXiv search results |
Retry & Resilience#
Variable |
Default |
Description |
|---|---|---|
|
|
Retry count on 5xx / rate-limit errors |
|
|
Minimum exponential backoff (seconds) |
|
|
Maximum exponential backoff (seconds) |
File Paths & Tools#
Variable |
Default |
Description |
|---|---|---|
|
|
Base directory for skills, memory, and run artifacts |
|
|
Path to the Lean4 binary |
|
|
Path to the pdflatex binary |
|
|
Use Docker container for Python code execution (future work — sandbox not fully integrated) |
Derived Paths (read-only properties on settings)#
Property |
Value |
|---|---|
|
|
|
|
|
|
|
|