Skip to content

Configuration

Environment Variables

Server

VariableDefaultDescription
SERVER_PORT8080HTTP server port
SERVER_HOST0.0.0.0HTTP server host
GIN_MODEdebugGin mode (debug/release)

Database

VariableDefaultDescription
DB_HOSTlocalhostPostgreSQL host
DB_PORT5432PostgreSQL port
DB_USERpostgresPostgreSQL user
DB_PASSWORDPostgreSQL password
DB_NAMEomnidevDatabase name

Redis

VariableDefaultDescription
REDIS_HOSTlocalhostRedis host
REDIS_PORT6379Redis port
REDIS_PASSWORDRedis password

LLM Providers

VariableDefaultDescription
OPENAI_API_KEYOpenAI API key
OPENAI_BASE_URLhttps://api.openai.com/v1OpenAI API base URL
ANTHROPIC_API_KEYAnthropic API key

Embedding

VariableDefaultDescription
EMBEDDING_PROVIDERopenaiEmbedding provider (openai/jina)
EMBEDDING_MODELtext-embedding-3-smallEmbedding model name
EMBEDDING_DIMENSION1536Embedding dimension

Configuration File

You can also use a .env file in the project root:

bash
cp .env.example .env
# Edit .env with your values

Released under the MIT License.