2026-03-13 21:29:12 +08:00
|
|
|
# X-Agents Python Agent Environment Configuration
|
|
|
|
|
|
|
|
|
|
# API Settings
|
|
|
|
|
API_HOST=0.0.0.0
|
|
|
|
|
API_PORT=8001
|
|
|
|
|
|
|
|
|
|
# Go Backend URL (for tool sync)
|
|
|
|
|
GO_BACKEND_URL=http://localhost:8080
|
|
|
|
|
|
|
|
|
|
# LLM Provider (openai/anthropic)
|
|
|
|
|
LLM_PROVIDER=openai
|
|
|
|
|
|
|
|
|
|
# LLM API Key (required for actual LLM calls)
|
|
|
|
|
LLM_API_KEY=your-api-key-here
|
|
|
|
|
|
|
|
|
|
# LLM Model
|
|
|
|
|
LLM_MODEL=gpt-4o
|
|
|
|
|
|
|
|
|
|
# Optional: Custom LLM Base URL (for proxy/alternative endpoints)
|
|
|
|
|
# LLM_BASE_URL=https://api.openai.com/v1
|
|
|
|
|
|
|
|
|
|
# Workspace for agent files
|
|
|
|
|
WORKSPACE=./workspace
|
|
|
|
|
|
|
|
|
|
# Agent settings
|
|
|
|
|
MAX_ITERATIONS=10
|
|
|
|
|
TEMPERATURE=0.7
|
2026-03-15 19:49:40 +08:00
|
|
|
|
|
|
|
|
# Sandbox Configuration (optional)
|
|
|
|
|
# Enable sandbox mode for secure code execution (bwrap/gvisor)
|
|
|
|
|
# SANDBOX_TYPE=bwrap # Options: bwrap, gvisor, none
|
|
|
|
|
# SANDBOX_TIMEOUT=60 # Default timeout in seconds
|
|
|
|
|
# GVISCOR_RUNSC_PATH=runsc # Path to gVisor runsc binary
|
|
|
|
|
# BWRAP_PATH=bwrap # Path to bwrap binary
|