Documentation Index
Fetch the complete documentation index at: https://mintlify.com/kstij/Envark/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Envark’s behavior can be customized through configuration files, environment variables, and runtime settings.Configuration Files
~/.envark/ai-config.json
Stores persisted AI provider settings. Location:~/.envark/ai-config.json
Structure:
AI provider name.Options:
openai, anthropic, gemini, ollamaAPI key for the provider.Required for: OpenAI, Anthropic, GeminiOptional for: Ollama
Specific model identifier.Examples:
gpt-4o(OpenAI)claude-sonnet-4-20250514(Anthropic)gemini-1.5-pro(Gemini)llama3.2(Ollama)
Custom API base URL.Use cases:
- OpenAI-compatible endpoints
- Ollama custom port
- API proxies
ISO 8601 timestamp of last configuration update.Automatically set by Envark.
.envark/cache.json
Project-specific scan result cache. Location:<project>/.envark/cache.json
Purpose:
- Cache scan results for performance
- Reduce analysis time by 80%+
- Invalidated on file changes
- File modified (hash changed)
- File added/removed
.env*file changed- Manual deletion
MCP Configuration
Configuration for AI assistant integration.VS Code (.vscode/mcp.json)
Location:<project>/.vscode/mcp.json
Format:
Claude Desktop (~/.claude/mcp.json)
Location:~/.claude/mcp.json (macOS/Linux) or %APPDATA%\.claude\mcp.json (Windows)
Format:
Cursor (~/.cursor/mcp.json)
Location:~/.cursor/mcp.json
Format: Same as Claude Desktop
Windsurf (~/.windsurf/mcp.json)
Location:~/.windsurf/mcp.json
Format: Same as Claude Desktop
Environment Variables
AI Provider Configuration
OpenAI API key.Format:
sk-proj-... or sk-...Example: sk-proj-abc123def456...Required for: OpenAI models (GPT-4, GPT-4o, etc.)Anthropic API key.Format:
sk-ant-...Example: sk-ant-api03-abc123def456...Required for: Claude modelsGoogle Gemini API key.Alternative name:
GOOGLE_API_KEYFormat: AIza...Example: AIzaSyAbc123Def456...Required for: Gemini modelsDefault Ollama model to use.Examples:
llama3.2(default)llama3.1mistralcodellama
Ollama API base URL.Use cases:
- Custom Ollama port
- Remote Ollama server
- Ollama behind proxy
http://192.168.1.100:11434Application Settings
Node.js environment mode.Options:
development- Development modeproduction- Production modetest- Testing mode
Debug logging pattern.Examples:
envark:*- All Envark debug logsenvark:scanner- Scanner debug onlyenvark:ai- AI debug only
Provider-Specific Configuration
OpenAI Configuration
Environment variables:~/.envark/ai-config.json
Anthropic Configuration
Environment variables:Google Gemini Configuration
Environment variables:- Visit Google AI Studio
- Click “Create API Key”
- Copy key (format:
AIza...)
Ollama Configuration
Installation:Configuration Precedence
Settings are loaded in this order (later overrides earlier):-
Default values
- Built-in defaults
- Model defaults per provider
-
Environment variables
OPENAI_API_KEYANTHROPIC_API_KEYGEMINI_API_KEYOLLAMA_MODEL
-
Persisted config file
~/.envark/ai-config.json- Written by
/configcommand
-
Runtime configuration
/configcommand in TUI- Overrides all previous settings
Security Best Practices
API Key Storage
Recommended:File Permissions
AI config file:Git Ignore Rules
Add to.gitignore:
.gitignore
Troubleshooting
Configuration Not Loading
Check file exists:API Key Issues
Verify key is set:| Error | Cause | Solution |
|---|---|---|
401 Unauthorized | Invalid API key | Check key format, regenerate if needed |
429 Rate Limit | Too many requests | Wait and retry, upgrade plan |
403 Forbidden | Insufficient permissions | Check API key permissions |
Ollama Connection Issues
Check Ollama is running:Cache Issues
Clear project cache:Advanced Configuration
Custom Ollama Base URL
~/.envark/ai-config.json
OpenAI-Compatible Endpoints
~/.envark/ai-config.json
- Azure OpenAI Service
- OpenRouter
- LocalAI
- LM Studio
- Anything OpenAI-compatible
Configuration Examples
Development Setup
~/.bashrc
CI/CD Setup
.github/workflows/env-check.yml
Team Shared Config
scripts/setup-envark.sh