Configuration

CodeLogician can be configured through a .codelogician file in your project root or through environment variables.

Configuration File

The .codelogician file uses YAML format:

# Model settings
model: "codelogician-v1"
temperature: 0.7
max_tokens: 2000
 
# Code style
style_guide: "pep8"
line_length: 88
 
# Features
enable_analysis: true
enable_optimization: true
enable_verification: false

Environment Variables

You can also configure CodeLogician using environment variables:

  • CODELOGICIAN_API_KEY: Your API key
  • CODELOGICIAN_MODEL: Model to use
  • CODELOGICIAN_STYLE: Code style guide

IDE Integration

CodeLogician integrates with popular IDEs. See the IDE Setup page for details.