Prerequisites
Before installing Loom, ensure you have the following:Elixir 1.18+
Download from elixir-lang.org
LLM Provider API Key
At least one of: Anthropic, OpenAI, Google, Groq, xAI, or other req_llm supported provider
Loom uses SQLite for persistence, which is automatically included via
ecto_sqlite3. No separate database installation required.Installation from Source
Install dependencies and set up the database
mix deps.get— Downloads all Elixir dependenciesmix ecto.create— Creates the SQLite databasemix ecto.migrate— Runs database migrations
Build the CLI escript (optional)
If you want to use Loom as a standalone CLI tool:This creates an executable
./loom file in your project directory that you can run from anywhere.Verify installation
Start the Phoenix web UI to verify everything works:You should see output like:Open http://localhost:4200 in your browser to access the web UI.
Configure Your LLM Provider
Create a .loom.toml configuration file (optional)
Create a
.loom.toml file in your project root to customize Loom’s behavior:.loom.toml
All configuration values are optional. Loom uses sensible defaults if not specified.
Environment Variables
Loom recognizes the following environment variables:| Variable | Description | Default |
|---|---|---|
ANTHROPIC_API_KEY | Anthropic API key | None |
OPENAI_API_KEY | OpenAI API key | None |
GOOGLE_API_KEY | Google AI API key | None |
GROQ_API_KEY | Groq API key | None |
XAI_API_KEY | xAI API key | None |
LOOM_MODEL | Override default model | From .loom.toml or config |
LOOM_DB_PATH | SQLite database location | ~/.loom/loom.db (prod) |
PORT | Web UI port | 4200 |
PHX_HOST | Web UI host | localhost |
SECRET_KEY_BASE | Phoenix secret key | Auto-generated |
Building a Standalone Binary
Loom can be packaged as a single self-contained binary using Burrito. The binary bundles the BEAM runtime, so users don’t need Elixir or Erlang installed.Next Steps
Quickstart
Start your first coding session with Loom
Project Rules
Create a LOOM.md file to give project-specific instructions
Configuration
Learn about all configuration options
Tools
Explore the 11 built-in tools