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.
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
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