config.template.toml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. ###################### OpenHands Configuration Example ######################
  2. #
  3. # All settings have default values, so you only need to uncomment and
  4. # modify what you want to change
  5. # The fields within each section are sorted in alphabetical order.
  6. #
  7. ##############################################################################
  8. #################################### Core ####################################
  9. # General core configurations
  10. ##############################################################################
  11. [core]
  12. # API key for E2B
  13. #e2b_api_key = ""
  14. # API key for Modal
  15. #modal_api_token_id = ""
  16. #modal_api_token_secret = ""
  17. # Base path for the workspace
  18. workspace_base = "./workspace"
  19. # Cache directory path
  20. #cache_dir = "/tmp/cache"
  21. # Debugging enabled
  22. #debug = false
  23. # Disable color in terminal output
  24. #disable_color = false
  25. # Enable saving and restoring the session when run from CLI
  26. #enable_cli_session = false
  27. # Path to store trajectories, can be a folder or a file
  28. # If it's a folder, the session id will be used as the file name
  29. #trajectories_path="./trajectories"
  30. # File store path
  31. #file_store_path = "/tmp/file_store"
  32. # File store type
  33. #file_store = "memory"
  34. # List of allowed file extensions for uploads
  35. #file_uploads_allowed_extensions = [".*"]
  36. # Maximum file size for uploads, in megabytes
  37. #file_uploads_max_file_size_mb = 0
  38. # Maximum budget per task, 0.0 means no limit
  39. #max_budget_per_task = 0.0
  40. # Maximum number of iterations
  41. #max_iterations = 100
  42. # Path to mount the workspace in the sandbox
  43. #workspace_mount_path_in_sandbox = "/workspace"
  44. # Path to mount the workspace
  45. #workspace_mount_path = ""
  46. # Path to rewrite the workspace mount path to
  47. #workspace_mount_rewrite = ""
  48. # Run as openhands
  49. #run_as_openhands = true
  50. # Runtime environment
  51. #runtime = "eventstream"
  52. # Name of the default agent
  53. #default_agent = "CodeActAgent"
  54. # JWT secret for authentication
  55. #jwt_secret = ""
  56. # Restrict file types for file uploads
  57. #file_uploads_restrict_file_types = false
  58. # List of allowed file extensions for uploads
  59. #file_uploads_allowed_extensions = [".*"]
  60. #################################### LLM #####################################
  61. # Configuration for LLM models (group name starts with 'llm')
  62. # use 'llm' for the default LLM config
  63. ##############################################################################
  64. [llm]
  65. # AWS access key ID
  66. #aws_access_key_id = ""
  67. # AWS region name
  68. #aws_region_name = ""
  69. # AWS secret access key
  70. #aws_secret_access_key = ""
  71. # API key to use
  72. api_key = "your-api-key"
  73. # API base URL
  74. #base_url = ""
  75. # API version
  76. #api_version = ""
  77. # Cost per input token
  78. #input_cost_per_token = 0.0
  79. # Cost per output token
  80. #output_cost_per_token = 0.0
  81. # Custom LLM provider
  82. #custom_llm_provider = ""
  83. # Embedding API base URL
  84. #embedding_base_url = ""
  85. # Embedding deployment name
  86. #embedding_deployment_name = ""
  87. # Embedding model to use
  88. embedding_model = "local"
  89. # Maximum number of characters in an observation's content
  90. #max_message_chars = 10000
  91. # Maximum number of input tokens
  92. #max_input_tokens = 0
  93. # Maximum number of output tokens
  94. #max_output_tokens = 0
  95. # Model to use
  96. model = "gpt-4o"
  97. # Number of retries to attempt when an operation fails with the LLM.
  98. # Increase this value to allow more attempts before giving up
  99. #num_retries = 8
  100. # Maximum wait time (in seconds) between retry attempts
  101. # This caps the exponential backoff to prevent excessively long
  102. #retry_max_wait = 120
  103. # Minimum wait time (in seconds) between retry attempts
  104. # This sets the initial delay before the first retry
  105. #retry_min_wait = 15
  106. # Multiplier for exponential backoff calculation
  107. # The wait time increases by this factor after each failed attempt
  108. # A value of 2.0 means each retry waits twice as long as the previous one
  109. #retry_multiplier = 2.0
  110. # Drop any unmapped (unsupported) params without causing an exception
  111. #drop_params = false
  112. # Using the prompt caching feature if provided by the LLM and supported
  113. #caching_prompt = true
  114. # Base URL for the OLLAMA API
  115. #ollama_base_url = ""
  116. # Temperature for the API
  117. #temperature = 0.0
  118. # Timeout for the API
  119. #timeout = 0
  120. # Top p for the API
  121. #top_p = 1.0
  122. # If model is vision capable, this option allows to disable image processing (useful for cost reduction).
  123. #disable_vision = true
  124. [llm.gpt4o-mini]
  125. api_key = "your-api-key"
  126. model = "gpt-4o"
  127. #################################### Agent ###################################
  128. # Configuration for agents (group name starts with 'agent')
  129. # Use 'agent' for the default agent config
  130. # otherwise, group name must be `agent.<agent_name>` (case-sensitive), e.g.
  131. # agent.CodeActAgent
  132. ##############################################################################
  133. [agent]
  134. # Name of the micro agent to use for this agent
  135. #micro_agent_name = ""
  136. # Memory enabled
  137. #memory_enabled = false
  138. # Memory maximum threads
  139. #memory_max_threads = 3
  140. # LLM config group to use
  141. #llm_config = 'your-llm-config-group'
  142. [agent.RepoExplorerAgent]
  143. # Example: use a cheaper model for RepoExplorerAgent to reduce cost, especially
  144. # useful when an agent doesn't demand high quality but uses a lot of tokens
  145. llm_config = 'gpt3'
  146. #################################### Sandbox ###################################
  147. # Configuration for the sandbox
  148. ##############################################################################
  149. [sandbox]
  150. # Sandbox timeout in seconds
  151. #timeout = 120
  152. # Sandbox user ID
  153. #user_id = 1000
  154. # Container image to use for the sandbox
  155. #base_container_image = "nikolaik/python-nodejs:python3.12-nodejs22"
  156. # Use host network
  157. #use_host_network = false
  158. # Enable auto linting after editing
  159. #enable_auto_lint = false
  160. # Whether to initialize plugins
  161. #initialize_plugins = true
  162. # Extra dependencies to install in the runtime image
  163. #runtime_extra_deps = ""
  164. # Environment variables to set at the launch of the runtime
  165. #runtime_startup_env_vars = {}
  166. # BrowserGym environment to use for evaluation
  167. #browsergym_eval_env = ""
  168. #################################### Security ###################################
  169. # Configuration for security features
  170. ##############################################################################
  171. [security]
  172. # Enable confirmation mode
  173. #confirmation_mode = false
  174. # The security analyzer to use
  175. #security_analyzer = ""
  176. #################################### Eval ####################################
  177. # Configuration for the evaluation, please refer to the specific evaluation
  178. # plugin for the available options
  179. ##############################################################################