-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
158 lines (114 loc) · 4.88 KB
/
.env.example
File metadata and controls
158 lines (114 loc) · 4.88 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
# FastReAct Configuration
# Copy this file to .env and fill in your values
# =============================================================================
# Quick Start (Minimum Required)
# =============================================================================
# Your LLM API Key
# Get one from: https://platform.siliconflow.cn/ (SiliconFlow)
# Or use your own OpenAI/Anthropic/DeepSeek key
API_KEY=your-api-key-here
# API Base URL
# SiliconFlow: https://api.siliconflow.cn/v1
# OpenAI: https://api.openai.com/v1
BASE_URL=https://api.siliconflow.cn/v1
# Model Name
MODEL=deepseek-ai/DeepSeek-V3
# =============================================================================
# Advanced LLM Configuration
# =============================================================================
# Provider (siliconflow, openai, azure, etc.)
PROVIDER=siliconflow
# OpenAI Configuration (if using OpenAI)
OPENAI_API_KEY=sk-your-api-key-here
OPENAI_BASE_URL=https://api.openai.com/v1
OPENAI_MODEL=gpt-4
# =============================================================================
# Feature Flags
# =============================================================================
# Enable context pruning (reduces token usage by 40-60%)
ENABLE_PRUNING=true
# Enable approval workflow for high-risk tools
ENABLE_APPROVAL=true
# Enable tool display with colors
ENABLE_COLORS=true
# =============================================================================
# Performance Settings
# =============================================================================
# Max iterations for ReACT loop
MAX_ITERATIONS=10
# Max concurrent tools
MAX_CONCURRENT_TOOLS=3
# Enable cache
ENABLE_CACHE=true
# Cache size
CACHE_SIZE=1000
# Enable streaming output
ENABLE_STREAMING=false
# =============================================================================
# Context Configuration
# =============================================================================
# Max history messages
MAX_HISTORY_MESSAGES=1000
# Max history tokens
MAX_HISTORY_TOKENS=48000
# Reserve tokens for response
RESERVE_TOKENS=12000
# =============================================================================
# Tool Policy Configuration
# =============================================================================
# Tool policy mode: permissive, restrictive, custom
TOOL_POLICY_MODE=permissive
# Denied tools (comma-separated patterns)
DENIED_TOOLS=rm_*,format*
# =============================================================================
# Approval Configuration
# =============================================================================
# Approval mode: auto_approve, auto_deny, always_ask, ask_high_risk
APPROVAL_MODE=ask_high_risk
# Approval timeout (seconds)
APPROVAL_TIMEOUT=60
# =============================================================================
# GraphRAG Configuration (Optional)
# =============================================================================
# HippoRAG backend URL
HIPPO_RAG_URL=http://localhost:8080
# HippoRAG API key
HIPPO_RAG_API_KEY=
# HippoRAG timeout (seconds)
HIPPO_RAG_TIMEOUT=10
# =============================================================================
# Logging Configuration
# =============================================================================
# Log level: DEBUG, INFO, WARNING, ERROR
LOG_LEVEL=INFO
# Log file path (optional)
LOG_FILE=
# =============================================================================
# Docker Configuration (if using Docker)
# =============================================================================
# Docker socket path (for sandbox execution)
DOCKER_SOCKET=/var/run/docker.sock
# =============================================================================
# Gateway Configuration (if using Gateway server)
# =============================================================================
# Gateway port
GATEWAY_PORT=8765
# Gateway host
GATEWAY_HOST=0.0.0.0
# =============================================================================
# MCP Server Configuration
# =============================================================================
# MCP client mode: simple (recommended), isolated, direct
# simple: Use SimpleMCP-Stdio (no MCP SDK dependency, follows Iron Rule)
# isolated: Use thread-isolated proxy (for compatibility)
# direct: Use official MCP SDK (may have anyio conflicts)
FASTREACT_MCP_SIMPLE_CLIENT=true
# =============================================================================
# GitHub MCP Server (for TODO #16)
# =============================================================================
# GitHub Personal Access Token (Classic or Fine-grained)
# Required scopes: repo (for Classic), or Contents/Issues/Pull Requests (for Fine-grained)
# Get token from: https://github.com/settings/tokens
GITHUB_PERSONAL_ACCESS_TOKEN=ghp_your-github-token-here
# GitHub repository owner/name (for auto-targeted operations)
GITHUB_DEFAULT_REPO=atom32/FastReAct