Clockchain uses environment variables for configuration. Create aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/timepoint-ai/timepoint-clockchain/llms.txt
Use this file to discover all available pages before exploring further.
.env file in the project root or set variables in your deployment environment.
Required Variables
These variables must be set for Clockchain to function:PostgreSQL connection URL
Shared secret for inbound service authentication. All API endpoints (except
/health and /) require the X-Service-Key header with this value.Authentication key for making requests to the Flash service API.
Flash Integration
URL of the Flash service for scene generation.
AI Workers
Configuration for autonomous graph expansion and content moderation:OpenRouter API key for LLM-powered workers (Expander and Judge).
Model to use for AI workers via OpenRouter.
Enable the autonomous graph expansion worker. Requires When enabled, the Expander worker:
OPENROUTER_API_KEY.- Picks frontier nodes with low degree (< 3 edges)
- Generates 3-5 related events via LLM
- Creates causal edges and auto-links
- Runs every 300 seconds
Enable the “Today in History” daily worker.When enabled:
- Runs every 24 hours
- Finds events matching today’s month/day
- Queues up to 5 events for Flash scene generation
Server Configuration
HTTP server port.
Environment name for logging and behavior.
Enable debug logging.
Data and Storage
Directory for seed data files.
Admin Access
Secret key for accessing admin endpoints like bulk generation.
Example Configuration
Configuration Loading
Clockchain uses Pydantic Settings to load configuration:- Reads from
.envfile in the project root - Overrides with environment variables
- Falls back to default values
app/core/config.py:6:
Next Steps
Deployment
Deploy Clockchain to Railway, Docker, or local server