Configuration

Enhance works with zero config. But you can customize it per-project with a config file.

Config file

Create a .enhancerc.json file in your project root:

.enhancerc.json
{
  "provider": "claude",
  "model": "claude-sonnet-4-6",
  "maxContextTokens": 3000,
  "customInstructions": "Always use React Query for data fetching. Prefer named exports."
}

Also supported: .enhancerc, .enhancerc.yaml, enhance.config.js, or a "enhance" key in package.json.

Options

KeyTypeDefaultDescription
providerstringclaudeAI provider: claude | codex | opencode
modelstringclaude-sonnet-4-6Model ID to use
maxContextTokensnumber3000Max characters of project files to include as context
customInstructionsstringExtra instructions injected into every enhanced prompt

API key

Set via environment variable. Never hardcode in the config file.

Terminal
# Add to ~/.zshrc or ~/.bashrc to make permanent
export ANTHROPIC_API_KEY=sk-ant-...

# Reload shell
source ~/.zshrc

Security note

Never commit API keys to git. The config file is for provider/model preferences only. Keys always come from environment variables.