Installation¶
Docker (Recommended)¶
The easiest way to run Tessera is with Docker Compose:
This starts: - Tessera API server on port 8000 - PostgreSQL database on port 5432 - Redis for caching (optional)
Python Package¶
Install from PyPI:
Or with uv:
Running the Server¶
# Set required environment variables
export DATABASE_URL="postgresql+asyncpg://user:pass@localhost:5432/tessera"
export SESSION_SECRET_KEY="your-secret-key-at-least-32-characters"
# Run database migrations
alembic upgrade head
# Start the server
tessera serve
From Source¶
# Clone the repository
git clone https://github.com/ashita-ai/tessera.git
cd tessera
# Install with uv
uv sync --all-extras
# Run migrations
DATABASE_URL=postgresql+asyncpg://... uv run alembic upgrade head
# Start the server
uv run uvicorn tessera.main:app --reload
Database Setup¶
Tessera supports:
| Database | Use Case | Connection String |
|---|---|---|
| PostgreSQL | Production | postgresql+asyncpg://user:pass@host:5432/db |
| SQLite | Development/Testing | sqlite+aiosqlite:///./tessera.db |
PostgreSQL Setup¶
# Create database
createdb tessera
# Run migrations
DATABASE_URL=postgresql+asyncpg://localhost/tessera alembic upgrade head
SQLite Setup (Development)¶
Verify Installation¶
# Check health endpoint
curl http://localhost:8000/health
# Expected response:
# {"status": "healthy"}
Next Steps¶
- Configuration - Set up environment variables
- Quickstart - Create your first contract