Configuration

Setting up your environment for production.

Loom uses environment variables to manage connections to third-party services like the Foru.ms API, Cloudinary, and OpenAI.

Environment Variables

Create a .env.local file in the root directory of your project. You can copy the template from .env.example.

Core Configuration

FORUMS_API_KEYRequired

The Master API key for the Foru.ms backend. This allows Loom to create threads, manage users, and update statuses on your behalf.

CLOUDINARY_URLRequired

Used for persistent storage of roadmap indexes and user avatars. Format: cloudinary://key:secret@cloud_name.

AI Intelligence

OPENAI_API_KEY

Your OpenAI API key starting with sk-...

OPENAI_MODEL

The model ID to use for analysis. Defaults to gpt-4-turbo or gpt-4o if not specified.

OPENAI_BASE_URL

(Optional) Use this to proxy requests if you are using a compatible endpoint (e.g. specialized detailed models).

Next.js Config

Loom is a Next.js application. You can further customize the build process in next.config.mjs.