Skip to content

Spring Boot Configuration Properties (openhusky.*) ​

Complete reference for dev.openhusky.spring.OpenHuskyProperties (openhusky-spring-boot-starter:0.3.0).


Core Switch (openhusky.*) ​

PropertyTypeDefaultDescription
openhusky.enabledbooleantrueMaster switch enabling or disabling all OpenHusky Spring Boot auto-configurations.

Model Provider (openhusky.provider.*) ​

PropertyTypeDefaultAllowed Values & Behavior
openhusky.provider.typeStringnullRequired to auto-configure LlmProvider (unless a custom LlmProvider bean is supplied). Supported: openai, openai-responses, anthropic, gemini, deepseek, qwen, zhipu, mistral, openrouter, ollama, litellm.
openhusky.provider.api-keyString""API key passed to the configured wire provider.
openhusky.provider.base-urlStringnullOverrides the provider's default endpoint URL. Required when type=litellm.
openhusky.provider.modelString"gpt-4.1"Model ID looked up in ModelCatalog.defaults(), or instantiated as ModelSpec.custom(...) when unknown.
openhusky.provider.context-windowIntegernullExplicit context window override. Defaults to catalog spec or 128000 for unknown custom models.
openhusky.provider.max-output-tokensIntegernullExplicit max output tokens override. Defaults to catalog spec or 8192 for unknown custom models.
openhusky.provider.retry-enabledbooleantrueWraps LlmProvider inside LlmClient with RetryInterceptor.defaults() before any custom LlmInterceptor beans.

Runtime Execution & Guardrails (openhusky.runtime.*) ​

PropertyTypeDefaultAllowed Values & Behavior
openhusky.runtime.system-promptString""Static system prompt applied to sessions unless overridden by a systemPromptSupplier customizer.
openhusky.runtime.temperatureDoublenullOptional sampling temperature forwarded in ChatRequest.
openhusky.runtime.max-output-tokensIntegernullOptional per-step max output token cap forwarded in ChatRequest.
openhusky.runtime.max-steps-per-turnint32Maximum LLM + tool cycles permitted per user turn.
openhusky.runtime.reasoning-effortReasoningEffortNONEExtended thinking / reasoning level: NONE, MINIMAL, LOW, MEDIUM, HIGH, XHIGH.
openhusky.runtime.cache-retentionCacheRetentionSHORTPrompt caching retention hint: NONE, SHORT, LONG.
openhusky.runtime.cache-keyStringnullOptional prompt cache routing key.
openhusky.runtime.tool-timeoutDuration2mDefault per-tool execution timeout (unless overridden per tool).
openhusky.runtime.approval-timeoutDurationnullOptional runtime-level timeout waiting on ApprovalDecision.Handler.
openhusky.runtime.max-total-tokens-per-runint0Hard token budget across a single run (0 disables the limit).
openhusky.runtime.max-run-durationDurationnullOptional wall-clock deadline across a single run.
openhusky.runtime.session-access-policySessionAccessPolicyTENANT_ISOLATEDMulti-tenant isolation mode: TENANT_ISOLATED, PRINCIPAL_ISOLATED, UNRESTRICTED.
openhusky.runtime.doom-loop-guard-enabledbooleantrueAutomatically registers DoomLoopGuardInterceptor.defaults().
openhusky.runtime.output-offload-max-bytesint32768Inline tool output character cap for OutputOffloadToolInterceptor.inMemory(...) (<= 0 disables).

Tool Permissions (openhusky.permissions.*) ​

PropertyTypeDefaultAllowed Values & Behavior
openhusky.permissions.modePermissions.ModeFAIL_CLOSEDBase permission preset: FAIL_CLOSED, READ_ONLY, REQUIRE_APPROVAL_FOR_WRITES, ALLOW_ALL.
openhusky.permissions.allow-read-only-toolsbooleanfalseWhen mode=FAIL_CLOSED, permits tools annotated with readOnly = true without explicit allow entries.
openhusky.permissions.allowList<String>[]Tool names or prefix wildcards ("mcp__docs__*") explicitly allowed.
openhusky.permissions.require-approvalList<String>[]Tool names or prefix wildcards requiring interactive HITL approval.
openhusky.permissions.denyList<String>[]Tool names or prefix wildcards explicitly denied (highest precedence).

Session Persistence (openhusky.session.*) ​

PropertyTypeDefaultAllowed Values & Behavior
openhusky.session.storeSession.StoreTypeIN_MEMORYSessionStore backend: IN_MEMORY, JSONL, SQLITE (SQLITE requires openhusky-session-sqlite on classpath).
openhusky.session.pathStringnullDirectory path (when store=JSONL) or SQLite database file path (when store=SQLITE). Required for JSONL and SQLITE.

Tool Scanning (openhusky.tools.*) ​

PropertyTypeDefaultBehavior
openhusky.tools.auto-scanbooleantrueAutomatically registers all AgentTool beans and @OpenHuskyTools-annotated beans into AgentRuntime.

OpenTelemetry GenAI (openhusky.otel.*) ​

Active when openhusky-otel and an OpenTelemetry bean are present (OpenHuskyOtelAutoConfiguration).

PropertyTypeDefaultBehavior
openhusky.otel.enabledbooleantrueEnables OpenHuskyOtel.install(...) via AgentRuntimeCustomizer.
openhusky.otel.agent-nameString"openhusky-agent"Sets gen_ai.agent.name and root span suffix (invoke_agent <agentName>).
openhusky.otel.capture-contentbooleanfalseWhether to record tool arguments, tool results, and steering text in span attributes.

AG-UI Runner & Spring MVC Endpoints (openhusky.agui.*) ​

Active when openhusky-agui is on the classpath (OpenHuskyAgUiAutoConfiguration & OpenHuskyAgUiMvcAutoConfiguration).

PropertyTypeDefaultAllowed Values & Behavior
openhusky.agui.enabledbooleantrueAuto-configures AgUiApprovalBroker, AgUiRunner, and graceful shutdown DisposableBean (abortAll).
openhusky.agui.approval-timeoutDuration5mMaximum wait duration for AgUiApprovalBroker before rejecting timed-out approvals.
openhusky.agui.emit-initial-state-snapshotbooleantrueEmits initial STATE_SNAPSHOT after RUN_STARTED when projected session state is non-empty.
openhusky.agui.mvc.enabledbooleantrueEnables OpenHuskyAgUiMvcController when spring-boot-starter-web and auth are configured.
openhusky.agui.mvc.base-pathString"/agui"Base request mapping path for /run, /steer, /abort, and /approve.
openhusky.agui.mvc.allow-anonymousbooleanfalseFail-closed: controller refuses to activate without a SpringAgUiPrincipalResolver bean unless explicitly set to true.
openhusky.agui.mvc.heartbeat-intervalDuration15sPeriodic SSE :keepalive comment interval (<= 0 disables).
openhusky.agui.mvc.disconnect-policyDisconnectPolicyDETACHAction on SSE client disconnect: DETACH (finish & persist run) or ABORT (cancel active run).

Complete application.yml Template ​

yaml
spring:
  threads:
    virtual:
      enabled: true

openhusky:
  enabled: true
  provider:
    type: openai
    api-key: ${OPENAI_API_KEY:}
    model: gpt-4.1
    retry-enabled: true
  runtime:
    system-prompt: "You are an enterprise operations assistant."
    max-steps-per-turn: 24
    reasoning-effort: NONE
    cache-retention: SHORT
    tool-timeout: 2m
    approval-timeout: 5m
    max-total-tokens-per-run: 200000
    max-run-duration: 5m
    session-access-policy: TENANT_ISOLATED
    doom-loop-guard-enabled: true
    output-offload-max-bytes: 32768
  permissions:
    mode: FAIL_CLOSED
    allow-read-only-tools: true
    require-approval:
      - refund_order
  session:
    store: SQLITE
    path: ./data/sessions.db
  tools:
    auto-scan: true
  otel:
    enabled: true
    agent-name: order-assistant
    capture-content: false
  agui:
    enabled: true
    approval-timeout: 5m
    emit-initial-state-snapshot: true
    mvc:
      enabled: true
      base-path: /agui
      allow-anonymous: false
      heartbeat-interval: 15s
      disconnect-policy: DETACH

Released under the MIT License. Built with Java 21 Virtual Threads.