Skip to main content

Quickstart Guide

Get started with Egregore in just a few minutes and create your first AI agent with PACT architecture.

Installation

Setup API Key

Egregore supports 30+ AI providers. Set up your preferred provider’s API key:

Your First Agent

Create a simple agent that maintains conversation history:
The agent automatically manages context history using PACT’s depth system. Previous messages are pushed back through ODI (Overlap Demotion Invariant) as new turns are added.

Using Scaffolds for Memory

Add persistent memory to your agent with the built-in notes scaffold:

Streaming Responses

Get real-time responses as they’re generated:

Context Operations

Manipulate context precisely using PACT coordinates:

Using Tools

Add custom tools to your agent:

Hooks for Observability

Monitor and modify agent behavior with hooks:

Next Steps

Core Concepts

Learn about PACT architecture

Context Management

Master the context tree

Scaffolds

Build persistent memory systems

Workflows

Orchestrate multi-agent systems

Common Patterns

Multi-turn Conversation

Temporary Context with TTL

Async Support

Troubleshooting

Make sure you’ve installed the package:
Set your provider’s API key as an environment variable:
Or pass it directly:
Use TTL to manage context size:

Resources

What’s Next?

Now that you have a basic agent running, explore:
  1. Context Management - Learn PACT coordinates and depth system
  2. Scaffolds - Build custom persistent memory systems
  3. Hooks - Add observability and custom logic
  4. Workflows - Orchestrate multiple agents
Happy building! 🚀