Spring Boot Configuration Properties (openhusky.*)
Complete reference for dev.openhusky.spring.OpenHuskyProperties (openhusky-spring-boot-starter:0.3.0).
Core Switch (openhusky.*)
| Property | Type | Default | Description |
|---|---|---|---|
openhusky.enabled | boolean | true | Master switch enabling or disabling all OpenHusky Spring Boot auto-configurations. |
Model Provider (openhusky.provider.*)
| Property | Type | Default | Allowed Values & Behavior |
|---|---|---|---|
openhusky.provider.type | String | null | Required 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-key | String | "" | API key passed to the configured wire provider. |
openhusky.provider.base-url | String | null | Overrides the provider's default endpoint URL. Required when type=litellm. |
openhusky.provider.model | String | "gpt-4.1" | Model ID looked up in ModelCatalog.defaults(), or instantiated as ModelSpec.custom(...) when unknown. |
openhusky.provider.context-window | Integer | null | Explicit context window override. Defaults to catalog spec or 128000 for unknown custom models. |
openhusky.provider.max-output-tokens | Integer | null | Explicit max output tokens override. Defaults to catalog spec or 8192 for unknown custom models. |
openhusky.provider.retry-enabled | boolean | true | Wraps LlmProvider inside LlmClient with RetryInterceptor.defaults() before any custom LlmInterceptor beans. |
Runtime Execution & Guardrails (openhusky.runtime.*)
| Property | Type | Default | Allowed Values & Behavior |
|---|---|---|---|
openhusky.runtime.system-prompt | String | "" | Static system prompt applied to sessions unless overridden by a systemPromptSupplier customizer. |
openhusky.runtime.temperature | Double | null | Optional sampling temperature forwarded in ChatRequest. |
openhusky.runtime.max-output-tokens | Integer | null | Optional per-step max output token cap forwarded in ChatRequest. |
openhusky.runtime.max-steps-per-turn | int | 32 | Maximum LLM + tool cycles permitted per user turn. |
openhusky.runtime.reasoning-effort | ReasoningEffort | NONE | Extended thinking / reasoning level: NONE, MINIMAL, LOW, MEDIUM, HIGH, XHIGH. |
openhusky.runtime.cache-retention | CacheRetention | SHORT | Prompt caching retention hint: NONE, SHORT, LONG. |
openhusky.runtime.cache-key | String | null | Optional prompt cache routing key. |
openhusky.runtime.tool-timeout | Duration | 2m | Default per-tool execution timeout (unless overridden per tool). |
openhusky.runtime.approval-timeout | Duration | null | Optional runtime-level timeout waiting on ApprovalDecision.Handler. |
openhusky.runtime.max-total-tokens-per-run | int | 0 | Hard token budget across a single run (0 disables the limit). |
openhusky.runtime.max-run-duration | Duration | null | Optional wall-clock deadline across a single run. |
openhusky.runtime.session-access-policy | SessionAccessPolicy | TENANT_ISOLATED | Multi-tenant isolation mode: TENANT_ISOLATED, PRINCIPAL_ISOLATED, UNRESTRICTED. |
openhusky.runtime.doom-loop-guard-enabled | boolean | true | Automatically registers DoomLoopGuardInterceptor.defaults(). |
openhusky.runtime.output-offload-max-bytes | int | 32768 | Inline tool output character cap for OutputOffloadToolInterceptor.inMemory(...) (<= 0 disables). |
Tool Permissions (openhusky.permissions.*)
| Property | Type | Default | Allowed Values & Behavior |
|---|---|---|---|
openhusky.permissions.mode | Permissions.Mode | FAIL_CLOSED | Base permission preset: FAIL_CLOSED, READ_ONLY, REQUIRE_APPROVAL_FOR_WRITES, ALLOW_ALL. |
openhusky.permissions.allow-read-only-tools | boolean | false | When mode=FAIL_CLOSED, permits tools annotated with readOnly = true without explicit allow entries. |
openhusky.permissions.allow | List<String> | [] | Tool names or prefix wildcards ("mcp__docs__*") explicitly allowed. |
openhusky.permissions.require-approval | List<String> | [] | Tool names or prefix wildcards requiring interactive HITL approval. |
openhusky.permissions.deny | List<String> | [] | Tool names or prefix wildcards explicitly denied (highest precedence). |
Session Persistence (openhusky.session.*)
| Property | Type | Default | Allowed Values & Behavior |
|---|---|---|---|
openhusky.session.store | Session.StoreType | IN_MEMORY | SessionStore backend: IN_MEMORY, JSONL, SQLITE (SQLITE requires openhusky-session-sqlite on classpath). |
openhusky.session.path | String | null | Directory path (when store=JSONL) or SQLite database file path (when store=SQLITE). Required for JSONL and SQLITE. |
Tool Scanning (openhusky.tools.*)
| Property | Type | Default | Behavior |
|---|---|---|---|
openhusky.tools.auto-scan | boolean | true | Automatically 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).
| Property | Type | Default | Behavior |
|---|---|---|---|
openhusky.otel.enabled | boolean | true | Enables OpenHuskyOtel.install(...) via AgentRuntimeCustomizer. |
openhusky.otel.agent-name | String | "openhusky-agent" | Sets gen_ai.agent.name and root span suffix (invoke_agent <agentName>). |
openhusky.otel.capture-content | boolean | false | Whether 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).
| Property | Type | Default | Allowed Values & Behavior |
|---|---|---|---|
openhusky.agui.enabled | boolean | true | Auto-configures AgUiApprovalBroker, AgUiRunner, and graceful shutdown DisposableBean (abortAll). |
openhusky.agui.approval-timeout | Duration | 5m | Maximum wait duration for AgUiApprovalBroker before rejecting timed-out approvals. |
openhusky.agui.emit-initial-state-snapshot | boolean | true | Emits initial STATE_SNAPSHOT after RUN_STARTED when projected session state is non-empty. |
openhusky.agui.mvc.enabled | boolean | true | Enables OpenHuskyAgUiMvcController when spring-boot-starter-web and auth are configured. |
openhusky.agui.mvc.base-path | String | "/agui" | Base request mapping path for /run, /steer, /abort, and /approve. |
openhusky.agui.mvc.allow-anonymous | boolean | false | Fail-closed: controller refuses to activate without a SpringAgUiPrincipalResolver bean unless explicitly set to true. |
openhusky.agui.mvc.heartbeat-interval | Duration | 15s | Periodic SSE :keepalive comment interval (<= 0 disables). |
openhusky.agui.mvc.disconnect-policy | DisconnectPolicy | DETACH | Action 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