config.template.toml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256
  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 (For Headless / CLI only - In Web this is overridden by Session Init)
  72. api_key = "your-api-key"
  73. # API base URL (For Headless / CLI only - In Web this is overridden by Session Init)
  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. (For Headless / CLI only - In Web this is overridden by Session Init)
  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. # Custom tokenizer to use for token counting
  125. # https://docs.litellm.ai/docs/completion/token_usage
  126. #custom_tokenizer = ""
  127. [llm.gpt4o-mini]
  128. api_key = "your-api-key"
  129. model = "gpt-4o"
  130. #################################### Agent ###################################
  131. # Configuration for agents (group name starts with 'agent')
  132. # Use 'agent' for the default agent config
  133. # otherwise, group name must be `agent.<agent_name>` (case-sensitive), e.g.
  134. # agent.CodeActAgent
  135. ##############################################################################
  136. [agent]
  137. # Name of the micro agent to use for this agent
  138. #micro_agent_name = ""
  139. # Memory enabled
  140. #memory_enabled = false
  141. # Memory maximum threads
  142. #memory_max_threads = 3
  143. # LLM config group to use
  144. #llm_config = 'your-llm-config-group'
  145. [agent.RepoExplorerAgent]
  146. # Example: use a cheaper model for RepoExplorerAgent to reduce cost, especially
  147. # useful when an agent doesn't demand high quality but uses a lot of tokens
  148. llm_config = 'gpt3'
  149. #################################### Sandbox ###################################
  150. # Configuration for the sandbox
  151. ##############################################################################
  152. [sandbox]
  153. # Sandbox timeout in seconds
  154. #timeout = 120
  155. # Sandbox user ID
  156. #user_id = 1000
  157. # Container image to use for the sandbox
  158. #base_container_image = "nikolaik/python-nodejs:python3.12-nodejs22"
  159. # Use host network
  160. #use_host_network = false
  161. # runtime extra build args
  162. #runtime_extra_build_args = ["--network=host", "--add-host=host.docker.internal:host-gateway"]
  163. # Enable auto linting after editing
  164. #enable_auto_lint = false
  165. # Whether to initialize plugins
  166. #initialize_plugins = true
  167. # Extra dependencies to install in the runtime image
  168. #runtime_extra_deps = ""
  169. # Environment variables to set at the launch of the runtime
  170. #runtime_startup_env_vars = {}
  171. # BrowserGym environment to use for evaluation
  172. #browsergym_eval_env = ""
  173. #################################### Security ###################################
  174. # Configuration for security features
  175. ##############################################################################
  176. [security]
  177. # Enable confirmation mode (For Headless / CLI only - In Web this is overridden by Session Init)
  178. #confirmation_mode = false
  179. # The security analyzer to use (For Headless / CLI only - In Web this is overridden by Session Init)
  180. #security_analyzer = ""
  181. #################################### Eval ####################################
  182. # Configuration for the evaluation, please refer to the specific evaluation
  183. # plugin for the available options
  184. ##############################################################################