Oloyid Docs
GitHub Back to site

Quick Start

Get the Oloyid MVP stack running locally with Docker Compose. The full stack includes the FastAPI API, React admin portal, PostgreSQL, and Redis.

Prerequisites

1. Clone and configure

git clone https://github.com/portaltickandtie-creator/oloyid-guardrails.git
cd oloyid-gurdrails
cp .env.example .env

2. Start the stack

docker compose up --build

Or run in the background:

docker compose up --build -d

3. Register your organization

On first visit, register an admin account and organization:

curl -X POST http://localhost:8000/api/v1/auth/register \
  -H "Content-Type: application/json" \
  -d '{
    "email": "admin@acme.com",
    "password": "securepass123",
    "name": "Admin User",
    "organization_name": "Acme Corp",
    "organization_slug": "acme"
  }'

4. Sign in to the admin portal

Open http://localhost:3000 and sign in with admin@acme.com / securepass123.

5. Make your first inference request

Authenticate and send a guarded completion request:

curl -X POST http://localhost:8000/api/v1/auth/login \
  -H "Content-Type: application/json" \
  -d '{"email": "admin@acme.com", "password": "securepass123"}'

# Use the returned access_token in subsequent requests
curl -X POST http://localhost:8000/api/v1/inference/completions \
  -H "Authorization: Bearer <access_token>" \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [{"role": "user", "content": "Hello, how are you?"}],
    "model": "gpt-4o-mini"
  }'

Tip: Use the Makefile shortcuts — make up to start, make down to stop, and make logs to tail service logs.

Makefile commands

Command Description
make up Start all services
make down Stop all services
make logs Tail service logs
make test Run API test suite
make migrate Run database migrations

Next steps