-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathexample.env
More file actions
64 lines (49 loc) · 2.86 KB
/
example.env
File metadata and controls
64 lines (49 loc) · 2.86 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
# Tool-Bot Environment Configuration
# Access these variables using process.env (Node.js v20.6.0+)
# ------------------- AI PROVIDERS -------------------
# AI Provider Selection (openai, bedrock)
AI_CLIENT=openai
# OpenAI Configuration
OPENAI_API_KEY=your_openai_key
OPENAI_API_BASE=https://api.openai.com/v1 # Optional: for custom endpoints
OPENAI_API_MODEL=openai.gpt-4o # Optional: default model
# AWS Bedrock Configuration
AWS_REGION=us-east-1
AWS_ACCESS_KEY_ID=your_aws_access_key
AWS_SECRET_ACCESS_KEY=your_aws_secret_key
AWS_SESSION_TOKEN= # Optional: for temporary credentials
VITE_DEFAULT_MODEL_ID=anthropic.claude-3.5-sonnet.v2 # Default model when none specified
VITE_BEDROCK_MODEL_ID=anthropic.claude-3.5-sonnet.v2 # Legacy: kept for backward compatibility
# Model Options Configuration
VITE_AWS_LLM_OPTIONS=anthropic.claude-3.5-sonnet.v2,anthropic.claude-3-7-sonnet-20250219-v1:0
VITE_OPENAI_LLM_OPTIONS=openai.gpt-4o,openai.gpt-4o-mini,openai.gpt-4o.2024-08-06,openai.text-embedding-3-small,openai.text-embedding-3-large
# ------------------- CONVERSATION SETTINGS -------------------
# Token thresholds for conversation context management
VITE_TARGET_TOKENS=100 # Target number of tokens in active context (default: 100)
VITE_MAX_TOKENS=600 # Maximum tokens allowed in context
VITE_OVERLAP_TOKENS=50 # Tokens to overlap between context windows
# ------------------- TOOL CONFIGURATIONS -------------------
# Active Tools Configuration
# Comma-separated list of enabled tools
ACTIVE_TOOLS=fetch_url,html,bash,project_reader,file_writer
# GitHub (Octokit) Configuration
GITHUB_AUTH_TOKEN=your_github_personal_access_token
# ------------------- SECURITY & LIMITS -------------------
# File Operations Settings
MAX_FILE_SIZE=1048576 # Maximum file size in bytes (1MB)
MAX_TOTAL_FILES=100 # Maximum number of files to process
ALLOWED_FILE_TYPES=.ts,.js,.json,.md # Comma-separated list of allowed extensions
# Bash Tool Security Settings
BASH_ALLOWED_COMMANDS=ls,git,npm,node # Comma-separated list of allowed commands
BASH_ALLOWED_PATHS=/app,/workspace # Comma-separated list of allowed paths
BASH_MAX_TIMEOUT=300000 # Maximum execution time in milliseconds
# Fetch Tool Settings
ALLOWED_DOMAINS=api.github.com,api.openai.com # Comma-separated list of allowed domains
MAX_REQUEST_SIZE=5242880 # Maximum request size in bytes (5MB)
# ------------------- DEVELOPMENT SETTINGS -------------------
# Development Configuration
NODE_ENV=development # development, production, test
LOG_LEVEL=info # trace, debug, info, warn, error
# Server Configuration
PORT=3000 # Server port
HOST=localhost # Server host