-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
120 lines (96 loc) · 3.36 KB
/
.env.example
File metadata and controls
120 lines (96 loc) · 3.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# ==========================================
# Flex AI Agent Environment Configuration
# ==========================================
# ===================
# OPENROUTER SETTINGS
# ===================
# OpenRouter API Key (REQUIRED)
# Get your API key from: https://openrouter.ai/keys
# This is required for accessing OpenRouter's 400+ AI models
OPENROUTER_API_KEY=your_openrouter_api_key_here
# OpenRouter API Base URL (Optional)
# Default: https://openrouter.ai/api/v1
# Only change if using a custom OpenRouter instance
OPENROUTER_BASE_URL=https://openrouter.ai/api/v1
# HTTP Referer Header (Optional)
# Used for OpenRouter API requests for app identification
# Default: https://github.com/flex-ai-agent
OPENROUTER_HTTP_REFERER=https://github.com/flex-ai-agent
# Application Title (Optional)
# Used in OpenRouter requests for app identification
# Default: Flex AI Agent
OPENROUTER_APP_TITLE=Flex AI Agent
# ====================
# FLEX LANGUAGE SETTINGS
# ====================
# Flex CLI Path (Optional)
# Path to the Flex programming language CLI executable
# Default: flex (assumes flex is in PATH)
FLEX_CLI_PATH=flex
# Flex Examples Directory (Optional)
# Directory where generated Flex code examples are stored
# Default: ./flex_examples
FLEX_EXAMPLES_DIR=./flex_examples
# Flex Temporary Directory (Optional)
# Directory for temporary Flex files during execution
# Default: ./temp
FLEX_TEMP_DIR=./temp
# Flex File Extensions (Optional)
# Comma-separated list of supported Flex file extensions
# Default: .flex,.flx
FLEX_FILE_EXTENSIONS=.flex,.lx,.txt
# ====================
# APPLICATION SETTINGS
# ====================
# Maximum Code Length (Optional)
# Maximum lines of code that can be generated (per CLAUDE.md)
# Default: 500, Min: 50, Max: 2000
MAX_CODE_LENGTH=500
# Execution Timeout (Optional)
# Maximum time in seconds for Flex code execution
# Default: 30, Min: 5, Max: 300
EXECUTION_TIMEOUT=30
# Enable File Operations (Optional)
# Whether to allow file read/write operations
# Default: true
ENABLE_FILE_OPERATIONS=true
# Model Cache Duration (Optional)
# How long to cache OpenRouter model information (in seconds)
# Default: 3600 (1 hour), Min: 300 (5 minutes), Max: 86400 (24 hours)
MODEL_CACHE_DURATION=3600
# Default Model (Optional)
# Default OpenRouter model to use when starting the agent
# Default: openai/gpt-4.1-mini
DEFAULT_MODEL=openai/gpt-4.1-mini
# ====================
# DEVELOPMENT SETTINGS
# ====================
# Debug Mode (Optional)
# Enable debug logging and verbose output
# Default: false
DEBUG=false
# Log Level (Optional)
# Logging level for the application
# Options: DEBUG, INFO, WARNING, ERROR, CRITICAL
# Default: INFO
LOG_LEVEL=INFO
# ====================
# SECURITY SETTINGS
# ====================
# Enable Security Validation (Optional)
# Enable security checks for file operations
# Default: true (RECOMMENDED)
ENABLE_SECURITY_VALIDATION=true
# Max File Size (Optional)
# Maximum file size in bytes for file operations
# Default: 10485760 (10MB)
MAX_FILE_SIZE=10485760
# ====================
# SETUP INSTRUCTIONS
# ====================
# 1. Copy this file to .env in your project root
# 2. Get your OpenRouter API key from https://openrouter.ai/keys
# 3. Replace 'your_openrouter_api_key_here' with your actual API key
# 4. Adjust other settings as needed for your use case
# 5. Install Flex CLI if not already installed
# 6. Run: python main.py to start the agent