Thalamus LabzThalamus Labz
Back to Docs
Getting Started

Your First Project

Build something real with Thalamus Labz tools.

What We'll Build

In this guide, we'll create a simple AI-powered workflow using SOPHIAClaw that demonstrates governance, audit trails, and policy enforcement.

Project Overview

  • Create a governed AI workflow
  • Set up policy enforcement
  • View audit trails
  • Deploy with confidence

Step 1: Initialize Project

# Create project directory
mkdir my-first-project
cd my-first-project

# Initialize SOPHIAClaw
npx @thalamuslabz/sophiaclaw init

# Follow the prompts to configure your project

Step 2: Define Your Policy

Create a policy file to govern AI behavior:

// policies/default.json
{
  "name": "safe-ai-policy",
  "rules": [
    {
      "id": "no-pii",
      "description": "Block requests containing PII",
      "condition": "contains_pii(input)",
      "action": "block"
    },
    {
      "id": "rate-limit",
      "description": "Max 100 requests per hour",
      "condition": "rate > 100/hour",
      "action": "throttle"
    }
  ]
}

Step 3: Run Your Workflow

# Start the server
npm run dev

# In another terminal, test your workflow
curl -X POST http://localhost:3000/api/workflow   -H "Content-Type: application/json"   -d '{"prompt": "Hello, AI!"}'

What's Next?

You've built your first governed AI project. Now explore advanced features and deployment options.