Skip to main content
Goal: Run your first Timepoint Pro simulation and understand the output in under 5 minutes.

Prerequisites

You’ll need:
  • Python 3.10+ installed
  • An OpenRouter API key (free tier available at openrouter.ai/keys)
  • 5 minutes

Step 1: Get the Code

1

Clone the repository

git clone https://github.com/timepoint-ai/timepoint-pro.git
cd timepoint-pro
2

Install dependencies

pip install -r requirements.txt
If you prefer Poetry: poetry install
3

Set your API key

Create a .env file in the project root:
.env
OPENROUTER_API_KEY=your_key_here
Critical: Ensure your API key is on a single line with no line breaks. If you see “Illegal header value” errors, check for embedded newlines.
Load the environment variables:
# Export all variables from .env
export $(cat .env | xargs)

# Or source directly
source .env

# Or set directly (must be ONE line)
export OPENROUTER_API_KEY="your_key_here"

Step 2: Run Your First Simulation

# List all available templates
./run.sh list

# Run a showcase template - board meeting simulation
./run.sh run board_meeting
Cost: Most simulations cost 0.020.02-0.10. The board_meeting template costs approximately 0.050.05-0.10.Updated February 2026: Costs are ~10x lower than previous estimates due to efficient Llama 4 Scout pricing.

Step 3: Understand the Output

Your simulation generates four key artifacts:

Terminal Output

You’ll see real-time progress:
================================================================================
TEMPLATE CATALOG
================================================================================
ID                                       TIER           CATEGORY     MECHANISMS
--------------------------------------------------------------------------------
showcase/board_meeting                   standard       showcase     M1, M7, M11 +1
...

[Waveform] Scheduler initialized with 4 entity envelopes
[Waveform] Resolution schedule covers 40 (entity, timepoint) pairs
Generating dialog for tp_004 with 3 entities...

Output Files

Results are saved to output/simulations/:

Summary JSON

summary_TIMESTAMP.json - Full simulation summary with metadata, entity states, and causal graph

Entity Data

entities_TIMESTAMP.jsonl - Line-delimited JSON with detailed entity evolution across timepoints

SQLite Database

sim_TIMESTAMP.db - Complete queryable database with entities, timepoints, relationships, knowledge flow

Training Data

training_TIMESTAMP.jsonl - Structured prompt/completion pairs for fine-tuning (when applicable)

What You Get

Each simulation produces:
1

Entities - Characters with depth

  • Unique personalities derived from behavior tensors
  • Knowledge states with provenance tracking
  • Roles and relationship networks
  • Cognitive tensors (arousal, valence, energy)
2

Timepoints - Causal event sequence

  • Event descriptions with timestamps
  • Entity presence tracking (who was there)
  • Causal links showing what caused what
  • Forward/backward/branching temporal modes
3

Relationships - Social network graph

  • How entities relate to each other
  • Social connections and power dynamics
  • Information flow patterns
4

Knowledge Flow - Exposure events

  • What each entity knows at each timepoint
  • When and how they learned it
  • Confidence levels for each piece of knowledge

Step 4: Explore the Results

Check your most recent run:
# Show the latest run's status
./run.sh status

# View recent runs
./run.sh list runs --limit 5

# Export to markdown for reading
./run.sh export last --format md

Example Output

Run ID:     run_20260218_091456_55697771
Status:     completed
Template:   board_meeting
Started:    2026-02-18 09:14:56
Duration:   127s
Cost:       $0.0823
Tokens:     89,234
LLM Calls:  47
Entities:   4
Timepoints: 5

What’s Happening Under the Hood

Timepoint Pro implements SNAG (Social Network Augmented Generation) - the first practical SNAG engine:
SNAG is to social systems what RAG is to documents.Like RAG retrieves documents to ground generation, SNAG synthesizes and maintains a structured social graph—complete with causal provenance, knowledge flow, emotional states, and temporal consistency—to ground LLM generation in complex group dynamics.

Next Steps

Installation Guide

Set up Poetry, configure API keys, explore advanced options

First Simulation

Deep dive: understand templates, customize parameters, explore temporal modes

Templates

21 production templates from board meetings to Mars missions

API Reference

Programmatic access via REST API

Troubleshooting

Solution: Add your API key to .env and load it:
export $(cat .env | xargs)
Or set it directly:
export OPENROUTER_API_KEY="your_key_here"
Solution: Your API key has line breaks. Ensure it’s on a single line in .env:
.env
OPENROUTER_API_KEY=sk-or-v1-abc123...xyz
When exporting manually, use one line with no breaks:
export OPENROUTER_API_KEY="your_key_here"
Solution: Install the missing dependency:
pip install msgspec
Or reinstall all requirements:
pip install -r requirements.txt
Solution: Environment variables not loaded. Run before executing:
export $(cat .env | xargs)
Solution: API key is invalid or not loaded.
  1. Verify your key at openrouter.ai/keys
  2. Check .env file contains the correct key
  3. Export environment variables: export $(cat .env | xargs)

Quick Command Reference

# List all templates
./run.sh list

# Run by tier (complexity)
./run.sh quick                    # Fast tests (~2-3 min, <$0.05)
./run.sh standard                 # Moderate (~5-10 min, $0.05-0.20)
./run.sh comprehensive            # Thorough (~15-30 min, $0.20-1.00)

# Run by category
./run.sh run --category showcase  # Production scenarios

# Run specific template
./run.sh run board_meeting
./run.sh run mars_mission_portal

# Natural language
python run_all_mechanism_tests.py --nl "startup board meeting about pivoting"

# Check status
./run.sh status

# View help
./run.sh --help
Ready for more? Continue to the Installation Guide for environment setup and advanced configuration, or jump to First Simulation to explore templates and temporal modes.