Configure Stellarion using environment variables. Set these in .stellarion/.env in your project directory.
OpenAI API key for enhanced AI features.
OPENAI_API_KEY=sk-your-api-key-here
Required for: Enhanced semantic search, advanced analysis
Note: Basic functionality works without an API key.
Path to RoBERTa model files for local semantic search.
ROBERTA_MODEL_PATH=/path/to/models/roberta-base
Default: ~/.stellarion/models/roberta-base
Note: Download models using the setup script:
curl -sSL https://stellarion.dev/download-models.sh | bash
Control logging verbosity.
STELLARION_LOG_LEVEL=info
Values:
debug — Verbose debugging informationinfo — Standard operational messageswarn — Warnings onlyerror — Errors onlyDefault: info
Logging level for the Rust native module.
RUST_LOG=info
Values: Same as STELLARION_LOG_LEVEL
Indicates the application is running as an MCP server.
MCP_SERVER=true
Note: Set automatically when running as MCP server. Do not modify.
Override the default project path.
REPO_PATH=/path/to/project
Default: Current working directory
Complete .stellarion/.env file:
OPENAI_API_KEY=sk-your-key-here
ROBERTA_MODEL_PATH=/Users/dev/.stellarion/models/roberta-base
STELLARION_LOG_LEVEL=info
RUST_LOG=info
Environment variables are loaded in this order:
.stellarion/.env fileLater values override earlier ones.
.stellarion/.env with API keys to version control.stellarion/.env to your .gitignore