| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243 |
- ###################### OpenHands Configuration Example ######################
- #
- # All settings have default values, so you only need to uncomment and
- # modify what you want to change
- # The fields within each section are sorted in alphabetical order.
- #
- ##############################################################################
- #################################### Core ####################################
- # General core configurations
- ##############################################################################
- [core]
- # API key for E2B
- #e2b_api_key = ""
- # Base path for the workspace
- workspace_base = "./workspace"
- # Cache directory path
- #cache_dir = "/tmp/cache"
- # Debugging enabled
- #debug = false
- # Disable color in terminal output
- #disable_color = false
- # Enable saving and restoring the session when run from CLI
- #enable_cli_session = false
- # File store path
- #file_store_path = "/tmp/file_store"
- # File store type
- #file_store = "memory"
- # List of allowed file extensions for uploads
- #file_uploads_allowed_extensions = [".*"]
- # Maximum file size for uploads, in megabytes
- #file_uploads_max_file_size_mb = 0
- # Maximum budget per task, 0.0 means no limit
- #max_budget_per_task = 0.0
- # Maximum number of iterations
- #max_iterations = 100
- # Path to mount the workspace in the sandbox
- #workspace_mount_path_in_sandbox = "/workspace"
- # Path to mount the workspace
- #workspace_mount_path = ""
- # Path to rewrite the workspace mount path to
- #workspace_mount_rewrite = ""
- # Run as openhands
- #run_as_openhands = true
- # Runtime environment
- #runtime = "eventstream"
- # Name of the default agent
- #default_agent = "CodeActAgent"
- # JWT secret for authentication
- #jwt_secret = ""
- # Restrict file types for file uploads
- #file_uploads_restrict_file_types = false
- # List of allowed file extensions for uploads
- #file_uploads_allowed_extensions = [".*"]
- #################################### LLM #####################################
- # Configuration for LLM models (group name starts with 'llm')
- # use 'llm' for the default LLM config
- ##############################################################################
- [llm]
- # AWS access key ID
- #aws_access_key_id = ""
- # AWS region name
- #aws_region_name = ""
- # AWS secret access key
- #aws_secret_access_key = ""
- # API key to use
- api_key = "your-api-key"
- # API base URL
- #base_url = ""
- # API version
- #api_version = ""
- # Cost per input token
- #input_cost_per_token = 0.0
- # Cost per output token
- #output_cost_per_token = 0.0
- # Custom LLM provider
- #custom_llm_provider = ""
- # Embedding API base URL
- #embedding_base_url = ""
- # Embedding deployment name
- #embedding_deployment_name = ""
- # Embedding model to use
- embedding_model = "local"
- # Maximum number of characters in an observation's content
- #max_message_chars = 10000
- # Maximum number of input tokens
- #max_input_tokens = 0
- # Maximum number of output tokens
- #max_output_tokens = 0
- # Model to use
- model = "gpt-4o"
- # Number of retries to attempt when an operation fails with the LLM.
- # Increase this value to allow more attempts before giving up
- #num_retries = 8
- # Maximum wait time (in seconds) between retry attempts
- # This caps the exponential backoff to prevent excessively long
- #retry_max_wait = 120
- # Minimum wait time (in seconds) between retry attempts
- # This sets the initial delay before the first retry
- #retry_min_wait = 15
- # Multiplier for exponential backoff calculation
- # The wait time increases by this factor after each failed attempt
- # A value of 2.0 means each retry waits twice as long as the previous one
- #retry_multiplier = 2.0
- # Drop any unmapped (unsupported) params without causing an exception
- #drop_params = false
- # Using the prompt caching feature if provided by the LLM and supported
- #caching_prompt = true
- # Base URL for the OLLAMA API
- #ollama_base_url = ""
- # Temperature for the API
- #temperature = 0.0
- # Timeout for the API
- #timeout = 0
- # Top p for the API
- #top_p = 1.0
- # If model is vision capable, this option allows to disable image processing (useful for cost reduction).
- #disable_vision = true
- [llm.gpt4o-mini]
- # API key to use
- api_key = "your-api-key"
- # Model to use
- model = "gpt-4o-mini"
- #################################### Agent ###################################
- # Configuration for agents (group name starts with 'agent')
- # Use 'agent' for the default agent config
- # otherwise, group name must be `agent.<agent_name>` (case-sensitive), e.g.
- # agent.CodeActAgent
- ##############################################################################
- [agent]
- # Name of the micro agent to use for this agent
- #micro_agent_name = ""
- # Memory enabled
- #memory_enabled = false
- # Memory maximum threads
- #memory_max_threads = 2
- # LLM config group to use
- #llm_config = 'your-llm-config-group'
- [agent.RepoExplorerAgent]
- # Example: use a cheaper model for RepoExplorerAgent to reduce cost, especially
- # useful when an agent doesn't demand high quality but uses a lot of tokens
- llm_config = 'gpt3'
- #################################### Sandbox ###################################
- # Configuration for the sandbox
- ##############################################################################
- [sandbox]
- # Sandbox timeout in seconds
- #timeout = 120
- # Sandbox user ID
- #user_id = 1000
- # Container image to use for the sandbox
- #base_container_image = "nikolaik/python-nodejs:python3.12-nodejs22"
- # Use host network
- #use_host_network = false
- # Enable auto linting after editing
- #enable_auto_lint = false
- # Whether to initialize plugins
- #initialize_plugins = true
- # Extra dependencies to install in the runtime image
- #runtime_extra_deps = ""
- # Environment variables to set at the launch of the runtime
- #runtime_startup_env_vars = {}
- # BrowserGym environment to use for evaluation
- #browsergym_eval_env = ""
- #################################### Security ###################################
- # Configuration for security features
- ##############################################################################
- [security]
- # Enable confirmation mode
- #confirmation_mode = false
- # The security analyzer to use
- #security_analyzer = ""
- #################################### Eval ####################################
- # Configuration for the evaluation, please refer to the specific evaluation
- # plugin for the available options
- ##############################################################################
|