승인된 execution preset을 Edge 조정 경계와 Node workspace/tool 실행 경계로 연결해 단일 요청 수명주기와 관측 계약을 일관되게 처리한다.
29 KiB
Anthropic-Compatible Messages API Contract
계약 메타
- id:
iop.anthropic-compatible-api - boundary:
outer - status: active
- 원본 경로:
apps/edge/internal/openai/anthropic_handler.goapps/edge/internal/openai/anthropic_native.goapps/edge/internal/openai/anthropic_bridge.goapps/edge/internal/openai/anthropic_stream.goapps/edge/internal/openai/single_request_anthropic_stream.goapps/edge/internal/service/single_request_tool_types.goapps/edge/internal/service/single_request_tool_loop.goapps/edge/internal/openai/anthropic_types.goapps/edge/internal/openai/routes.goapps/edge/internal/openai/principal.goapps/edge/internal/authprojection/cache.goapps/edge/internal/openai/provider_tunnel.goapps/edge/internal/openai/provider_model_rewrite.gopackages/go/config/protocol_profile.go
- human docs: (none yet)
범위
이 문서는 외부 프로젝트가 IOP Edge의 Anthropic-compatible HTTP 표면을 호출할 때 확인할 계약 원문이다.
IOP 내부 실행은 adapter + target 기준이며, Anthropic-compatible 경계에서는 model과 messages를 사용한다.
Anthropic-compatible provider로 raw passthrough 되는 경로는 선택된 provider가 지원하는 표준 field와 provider extension field를 IOP allowlist로 제한하지 않는다.
Routing first resolves the request model through the provider pool. An anthropic_messages candidate uses a native provider tunnel, while an openai_chat candidate uses the Messages-to-Chat bridge over its provider tunnel.
Auth
Edge 설정의 openai.bearer_token이 비어 있지 않으면 Anthropic-compatible HTTP 표면은 다음 헤더를 요구한다.
Authorization: Bearer <token>
X-Api-Key: <token> is an equivalent caller-auth form. When both headers are supplied, the bearer token and API key must be equal; a non-Bearer Authorization value is rejected.
토큰이 없거나 일치하지 않으면 401 authentication_error Anthropic-compatible error response를 반환한다. openai.bearer_token이 빈 값이면 auth를 적용하지 않는다.
Shared principal token auth
When openai.principal_tokens[] is configured, either supported caller-auth form is hashed and matched against token_hash_sha256. A match supplies iop_principal_ref, iop_principal_alias, iop_token_ref, and iop_principal_source to internal dispatch metadata; no match returns 401 authentication_error unless the legacy fallback applies.
Managed projection auth
credential_plane.enabled=true selects managed mode at startup. The Control Plane supplies the initial secret-free projection in the authenticated mTLS hello and pushes newer generations after durable credential mutations. Edge shares one bounded immutable cache across OpenAI and Anthropic-compatible ingress and fails closed when a managed hello or refresh is missing, stale, invalid, or expired.
Bearer and X-Api-Key remain equivalent inbound IOP token forms, and when both are present they must contain the same token. The token digest must exist in the fresh projection. Mismatch, unknown or removed digest, malformed Authorization, and projection expiry return 401 authentication_error before provider dispatch. Static principal mappings and legacy bearer fallback are prohibited in managed mode.
In managed mode, model discovery (GET /anthropic/v1/models and GET /v1/models
with anthropic-version) lists active ordinary projected route_ids and any authorized
virtual preset model IDs for the authenticated principal. Ordinary request model
selection binds strictly to one projected route's slot_id, profile_id, and
upstream_model. A catalog execution preset is discoverable and admissible only when
its selector and every referenced stage model resolve through their canonical catalog
bindings to exactly one active route for that principal. Missing or ambiguous
selector/stage bindings fail closed and never fall back to the global catalog, legacy
defaults, or a different route.
Authentication and route resolution retain one immutable projection generation for a
request. A public route_id resolves only inside the verified managed gate to one
internal model group and selector-compatible provider resource set; it is distinct from
the provider resource and from credential_slot_ref. For a virtual preset, the
selector's real projected route and revisions remain the credential and lease authority;
the virtual ID is never synthesized as a route or credential binding. The credential
slot is trusted attribution/lease scope, not a provider ID. Edge overwrites caller
metadata with trusted route/slot revisions and preserves the internal model group and
binding through recovery; missing or ambiguous bindings are rejected with no fallback.
An authorized virtual preset retains its requested virtual ID in successful responses
across the native Messages tunnel and Chat bridge. Ordinary native routes preserve the
provider response model and body bytes; the Chat bridge emits its converted Anthropic
response model semantics.
Marked preset: single-request admission
An authorized fixed single-request preset compiles one service-owned admission value at request start. The admission freezes the requested public model, the canonical plan/work/review stage bindings resolved through the principal's managed authorization, an opaque workspace capability reference, and absolute resource caps (wall-clock, stage-timeout, tool-iterations, output-bytes). The admission is compiled only after every canonical reference has been verified through its catalog binding for the authenticated principal; missing, duplicate, unauthorized, dynamically selected, or option-inconsistent inputs are rejected without generic fallback. Later runtime refresh or config mutation cannot alter an admitted request's frozen shape. No private binding (route ID, credential slot, provider ID, endpoint, or raw workspace data) is echoed to the caller. The admission is owned by the service package; the OpenAI and Anthropic surfaces read only the public model identity and the frozen limits.
Marked preset: one-ingress runtime boundary
After request validation, principal authorization, and immutable preset resolution, a
marked Messages request requires the service's separate StartSingleRequest
capability. The handler never widens the generic run service or falls back to the
ordinary provider-pool/caller-continuation path when this capability is missing.
Missing capability returns a sanitized 503 api_error; a coordinator start or runtime
failure returns a sanitized 502 api_error on the same request.
An accepted marked Messages POST increments
iop_anthropic_single_request_ingress_total exactly once. The counter has no labels and
is not incremented for internal stages, tools, retries, progress events, terminals,
count-tokens requests, or a marked request rejected before capability admission.
Request, principal, route, provider, credential, workspace, and stage identities are
forbidden metric dimensions.
The handler gives the service an immutable copy of the admitted binding and request
input. Arbitrary internal progress messages, reasoning, tool protocol, and execution
identities remain private. A non-streaming marked request projects only the service's
finalizing SingleRequestResult.Output as one buffered Anthropic message with a
generated msg_iop_ id, the requested public model, one text content block,
stop_reason="end_turn", and no caller-facing tool_use continuation.
A streaming marked request uses a separate privacy-closed projector for the same
coordinator execution. The projector opens exactly one message_start envelope and
may expose each of the following fixed summaries at most once, each as a complete text
content block with a monotonically increasing index:
- planning:
Planning the requested work. - work:
Executing the requested work. - review:
Reviewing the completed work. - repair:
Repairing issues found during review.
Accepted, internal-tool, finalizing, completed, and cleanup details do not create
public progress blocks. event: ping may occur between message_start and the
exclusive terminal, does not open or consume a content-block index, and is stopped and
joined before terminal output or handler return. The final caller-safe output is the
last text block. Success then writes one message_delta with
stop_reason="end_turn" followed by exactly one message_stop. A coordinator failure
or non-disconnect cancellation writes one sanitized error event and never writes the
success terminal sequence. Caller disconnect cancels execution and suppresses further
wire output.
One serialized writer owns envelope state, content indices, pings, flushes, and the
terminal decision. The endpoint acknowledges success only after message_stop is
written successfully; a partial or failed terminal write is negatively acknowledged
and cannot be retried as another success or error terminal. Calls arriving after a
terminal decision are no-ops that return the established write result. Private
provider reasoning, tool_use/tool arguments/results, route/provider/credential
identifiers, workspace paths, raw commands, internal stage terminal data, and
caller-supplied arbitrary progress strings are forbidden from the marked stream.
Marked preset: private internal workspace continuation
An executor may emit exactly one service-owned InternalWorkspaceToolCall while its
active stage is saved in internal_tool. The closed names are workspace_read,
workspace_list, workspace_write, workspace_delete, and workspace_command.
Each operation has a distinct strict JSON object schema: unknown fields, duplicate
keys, trailing values, malformed identities, non-canonical paths, private .iop
paths, unapproved operations or command IDs, and unapproved environment names are
rejected before any Node wire effect. Command input contains only an approved command
ID and approved environment values; executable paths and argv are never model input.
The service opens the admitted workspace lifecycle once on the exact frozen Node
connection generation, then executes one tool call at a time. Every result must echo
the immutable request, canonical stage (plan, work, or review), and unique tool
call ID. Only bounded typed content, entries, stdout, stderr, exit status, truncation,
duration, and closed status/error code reach the emitting executor's optional
ContinueInternalTool port. Raw arguments and raw Node error text are excluded. A
result permits only the saved stage to resume; repeated IDs, stale identities,
malformed or denied calls, unavailable continuation, and exhausted per-stage
iteration/output/deadline or request wall-clock budgets fail closed without
reselection, fallback, or caller continuation. Caller cancellation cancels the
request context and an in-flight Node tool receives the typed request/stage/tool
cancel through the admitted connection.
The continuation does not create an HTTP request or an Anthropic content block. The
deterministic real-POST evidence performs multiple private Node tool round trips while
observing exactly one /v1/messages ingress, one caller-safe terminal, and no public
tool_use or tool_result protocol.
This projector is a service-to-endpoint boundary and does not widen the generic Stream Evidence Gate event/filter/recovery contract. Provider-specific plan/work/review stage drivers, request-artifact cleanup, and actual Claude qualification remain deferred. Ordinary unmarked Messages routing, Chat behavior, and both count-tokens routes remain unchanged.
After provider selection, Edge validates the projected slot/profile/model/revision/generation binding, acquires a short-lived signed lease over the authenticated Control Plane connection, and revalidates immediately before sending it to the selected Node. The Node opens the recipient-sealed lease only immediately before provider execution. Rotation, disable, revoke, expiry, or a stale binding fails closed without legacy, route, provider, or same-model slot fallback.
Legacy fallback
openai.principal_tokens[]가 설정되어 있더라도, raw token이 어떤 principal_tokens entry에도 매칭되지 않으면 openai.bearer_token이 설정된 경우 legacy 단일 bearer auth가 unmapped fallback으로 동작한다. openai.bearer_token과 openai.principal_tokens[]가 모두 설정된 경우, principal token 매칭이 실패하면 legacy fallback을 시도하고, 그래도 실패하면 401 authentication_error를 반환한다.
Managed versus legacy provider credentials
- Managed mode sources provider authentication only from the credential slot and Node-targeted lease. Config validation rejects
openai.provider_authand static provider credential sources, while ingress rejects caller-supplied legacy provider credential headers with400 invalid_request_error. - Legacy mode may enable
openai.provider_auth; the caller supplies the provider token through the configured header (defaultX-IOP-Provider-Authorization) and Edge applies the configured target header/scheme. This provider token is distinct from either supported inbound IOP token form. - Both modes keep the Anthropic-compatible public request and response schema unchanged. Route and credential selection remain internal authenticated operations.
Required Headers
Anthropic-compatible 요청은 다음 헤더를 필수로 포함해야 한다.
anthropic-version: 2023-06-01
지원하는 Anthropic-Beta 값:
claude-code-20250219effort-2025-11-24fine-grained-tool-streaming-2025-05-14interleaved-thinking-2025-05-14mid-conversation-system-2026-04-07prompt-caching-2024-07-31structured-outputs-2025-12-15
지원하지 않는 beta 값을 보내면 400 invalid_request_error를 반환한다.
Native Messages 경로는 지원 beta 헤더를 upstream으로 전달한다. Chat bridge 경로는 지원 beta 헤더를 upstream으로 전달하지 않고, 아래에 명시한 대응 field만 Chat Completions 형식으로 변환한다.
Routes
POST /v1/messages 및 POST /anthropic/v1/messages
Anthropic Messages API 호환 chat 요청.
POST /v1/messages/count_tokens 및 POST /anthropic/v1/messages/count_tokens
Anthropic count_tokens 호환 요청.
GET /v1/models and GET /anthropic/v1/models
/anthropic/v1/models always returns the Anthropic model-list shape. /v1/models returns that shape when anthropic-version is present; otherwise it retains the OpenAI-compatible list shape.
Method Not Allowed
Wrong methods on Anthropic-selected endpoints return 405 invalid_request_error.
Request/Response Contract
Messages
{
"model": "claude-route",
"max_tokens": 1024,
"messages": [
{
"role": "user",
"content": "Hello, world."
}
],
"stream": false,
"temperature": 0.5,
"top_p": 0.9,
"stop_sequences": ["\\n\\nHuman:"],
"tools": [
{
"name": "search",
"description": "Search the web",
"input_schema": { "type": "object", "properties": { "query": { "type": "string" } } }
}
],
"tool_choice": { "type": "auto" },
"thinking": { "type": "adaptive" },
"output_config": {
"effort": "high",
"format": {
"type": "json_schema",
"schema": { "type": "object" }
}
},
"metadata": { "user_id": "user-123" }
}
필드 의미:
model: Edge가 내부adapter + target으로 해석할 외부 route 이름이다. IOP Edge에서는 라우팅을 위해 필수다.max_tokens: 출력 토큰 상한이다. 필수 field다. 0 이하 값은400 invalid_request_error를 반환한다.messages:user또는assistantrole만 허용한다. content는 string 또는 content block array다.system: string 또는 text block array만 허용한다.stream:true이면 ordinary provider routes relay raw provider SSE.false또는 생략이면 non-streaming JSON 응답을 반환한다. An admitted virtual-preset Hot Path is the narrow exception described in routing: it emits the caller-requested endpoint-native shape after structural classification. A marked single-request request withstream=trueuses the closed progress/ping/terminal subset above;stream=falseretains the buffered final-only response.temperature: 0..1 범위. 범위를 벗어나면400 invalid_request_error를 반환한다.top_p: 0..1 범위. 범위를 벗어나면400 invalid_request_error를 반환한다.top_k: 양수여야 한다.stop_sequences: 빈 문자열은 허용되지 않는다.tools: 각 tool은name,input_schema를 필수로 가진다.tool_choice:auto,any,none,tool타입만 허용한다.thinking: 양수budget_tokens가 있는type="enabled"또는 budget 없는type="adaptive"를 허용한다. Chat bridge의enabled는 profile의 thinking/reasoning extension이 필요하고,adaptive는output_config.effort기반 provider 제어를 사용한다.output_config.effort:low,medium,high를 허용하며 Chat bridge에서reasoning_effort로 변환한다.output_config.format:type="json_schema"와 objectschema를 허용하며 Chat bridge에서 OpenAI-compatibleresponse_format.json_schema로 변환한다.cache_control: text/image/tool/tool-result/thinking block과 tool declaration의 compatibility annotation을 수용하되 Chat bridge에서는 정책으로 해석하거나 provider body에 전달하지 않는다.metadata: caller-defined object이며 IOP identity source로 사용하지 않는다. Native Messages 경로는 원문을 보존하고, Chat bridge는 object 여부만 검증한 뒤 provider body에서는 제거한다.
Response (non-streaming)
{
"id": "msg_iop_xxx",
"type": "message",
"role": "assistant",
"model": "claude-route",
"content": [
{ "type": "text", "text": "Hello!" },
{ "type": "thinking", "thinking": "...", "signature": "" },
{ "type": "tool_use", "id": "toolu_xxx", "name": "search", "input": { "query": "..." } }
],
"stop_reason": "end_turn",
"usage": {
"input_tokens": 100,
"output_tokens": 50,
"cache_read_input_tokens": 0,
"cache_creation_input_tokens": 0
}
}
응답 필드:
id: provider 응답 ID 또는"msg_iop"prefix fallback.type: 항상"message".role: 항상"assistant".model: Authorized virtual presets echo the requested virtual model. Ordinary native responses preserve the provider response model, while Chat bridge responses use the converted Anthropic request model.content: text, thinking, tool_use block array.stop_reason:end_turn,max_tokens,tool_use,stop_sequence중 하나.usage: provider-reported token count.
Response (streaming, SSE)
event: message_start
data: {"type":"message_start","message":{"id":"msg_iop_xxx","role":"assistant","content":[],"stop_reason":null}}
event: content_block_start
data: {"type":"content_block_start","content_block":{"type":"text","text":""}}
event: content_block_delta
data: {"type":"content_block_delta","delta":{"type":"text_delta","text":"Hello"}}
event: content_block_delta
data: {"type":"content_block_delta","delta":{"type":"thinking_delta","thinking":"..."}}
event: content_block_stop
data: {"type":"content_block_stop","content_block":{"type":"text"}}
event: message_delta
data: {"type":"message_delta","delta":{"stop_reason":"end_turn","stop_sequence":null}}
event: message_stop
data: {"type":"message_stop"}
streaming 응답 header allowlist:
Cache-Control,Content-Length,Content-Type,Request-Id,Retry-After,X-Request-Id,X-Robots-Taganthropic-ratelimit-*prefix headerratelimit-*prefix header
Marked single-request SSE subset
The marked projector preserves the standard Anthropic event framing while narrowing the allowed content. Its order is:
- exactly one
message_startcontaining the coordinator-derivedmsg_iop_id, the requested public model, an empty content array, and no stop reason; - zero or more complete fixed progress text blocks and zero or more
event: pingframes, with pings consuming no block index; - on success, one complete final text block, one
message_deltawithend_turn, and exactly onemessage_stop; or - on service failure/cancellation, one sanitized
errorevent and nomessage_delta/message_stopsuccess terminal.
The subset never emits thinking, thinking_delta, tool_use, or
input_json_delta, and never forwards internal provider/stage terminal events. A
terminal or wire failure closes projector ownership: no ping, block, alternate
terminal, or other byte may follow it.
Count Tokens
{"input_tokens": 42}
Error Contract
The Anthropic-compatible error body uses a top-level type: "error" containing a nested error object with type and message.
{
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "model is required"
}
}
오류 타입:
invalid_request_error: 요청 validation 실패 (missing field, bad value, unsupported header), request body가 ingress 상한 초과 (413)authentication_error: auth 실패 (401)not_supported_error: model이 protocol profile로 해석되지 않음, operation 미지원, unsupported driver (400)api_error: provider dispatch 실패, tunnel unavailable, timeout, upstream error (400/502)
Typed operation rejection
provider-pool candidate가 요청 Messages operation을 지원하지 않으면 400 not_supported_error "no provider profile supports the requested Messages operation"으로 종료한다.
Provider auth required
In legacy mode, openai.provider_auth.enabled=true with a missing required header returns 400 invalid_request_error "provider auth token is required". Managed mode does not read that caller header.
Routing
Messages requests require a models[] provider-pool route. A configured model-catalog TokenCounter returns a deterministic local count for count-tokens without provider selection. Only the native upstream count-tokens fallback requires an anthropic_messages provider-pool candidate. Legacy direct-route and single-target fallback are not admitted to this surface.
In managed mode, the public model must also be an active projected route ID/alias or an authorized virtual preset ID for the authenticated principal. An ordinary route resolves to exactly one internal model group and selector-compatible provider; a virtual preset requires unique canonical projected-route bindings for its selector and every stage. Failure never falls back to a legacy model, another route, or another credential slot. An authorized virtual preset retains its requested virtual response model identity; ordinary native routes and the Chat bridge retain their distinct response semantics.
Top-level models[] is the static catalog source for IOP model discovery and provider-pool dispatch.
models[] provider mapping은 OpenAI-compatible provider와 normalized-only provider를 같은 model group 안에 둘 수 있다. dispatch는 기존 capacity + priority + availability 기준으로 provider를 한 번 선택하고, client request field가 아니라 selected provider capability로 native Anthropic 또는 Chat bridge execution path를 결정한다.
Native vs Bridge
선택된 provider의 ConcreteProtocolProfile.Driver가 anthropic_messages이면 Edge는 provider raw tunnel을 통해 Anthropic-native request/response를 relay한다. Ordinary native routes preserve provider response model/body bytes, while authorized virtual presets rewrite successful response identity to the requested virtual model.
openai_chat이면 Edge는 Anthropic Messages request를 Chat Completions request로 bridge하고, Chat bridge 응답을 다시 Anthropic Messages response로 변환한다. Authorized virtual presets retain their requested virtual response model identity through that conversion; ordinary bridge responses use the bridge's converted response model semantics.
그 외 driver는 502 api_error "selected provider returned an unsupported protocol driver"를 반환한다.
Chat bridge는 Gemini OpenAI-compatible tool call의 extra_content.google.thought_signature를 opaque Anthropic tool_use.id에 담아 caller에게 전달한다. Caller는 해당 id를 tool result까지 변경 없이 replay해야 하며, 다음 요청에서 Edge는 원래 tool call id와 signature를 복원한다. Signature가 없는 provider의 tool id는 변경하지 않는다.
Authorized virtual-preset Hot Path
Ordinary native Messages routes preserve selected-provider status, allowlisted headers, body bytes, and SSE framing; the ordinary Chat bridge retains its documented converted response semantics. The exception is an admitted catalog execution preset with an authorized virtual public model and immutable selector provider, health, capability, and credential-binding evidence.
For that virtual-preset Hot Path, Edge collects and structurally classifies selected
tunnel or normalized output before commitment, then emits the caller-requested
endpoint-native JSON or SSE shape. Successful output keeps the requested virtual model
and requires a provider-reported response ID (including message_start.message.id for
native SSE). It never promotes a run ID, frame timestamp, or another IOP transport value
into public provider metadata, and it does not apply the ordinary msg_iop fallback.
Missing provider identity, BODY or END before RESPONSE_START, malformed selected
output, or a failed selector gate returns one sanitized endpoint-standard api_error
before response commitment.
Profile capability admission
Anthropic Messages 요청은 선택된 provider가 다음 capability를 가져야 한다:
- native:
messagescapability +messagesoperation - Chat bridge:
chatcapability +chat_completionsoperation streamingcapability (streaming 요청인 경우)tool_callingcapability (tools가 있는 요청인 경우)count_tokenscapability +count_tokensoperation (count_tokens native fallback 요청인 경우; TokenCounter local count path는 provider selection 및 capability check가 필요 없다)
capability 불만족은 400 not_supported_error로 종료한다.
Profile thinking support
Chat bridge의 explicit thinking.type="enabled"와 assistant thinking block 전달은 provider profile의 extensions.thinking 또는 extensions.reasoning이 true일 때만 지원한다. Claude Code가 이전 응답에서 받은 빈 signature의 thinking block을 generic Chat profile 요청에 replay하면 private reasoning block만 제거하고 visible text/tool history는 유지한다. Signed thinking block은 profile과 관계없이 Chat bridge에서 거부한다.
해당 profile extension 없이 explicit enabled thinking으로 bridge하면 400 invalid_request_error "selected Chat profile does not support thinking"를 반환한다. thinking.type="adaptive"는 별도 budget field를 만들지 않고 output_config.effort를 reasoning_effort로 변환한다.
Usage Attribution
Anthropic handlers do not record the OpenAI canonical usage metric series. Native USAGE tunnel frames are ignored by the Anthropic relay; provider-reported usage remains in the native response body or is converted by the Chat bridge response path. The marked coordinator exception records only the unlabeled admission counter iop_anthropic_single_request_ingress_total; it does not infer provider usage or expose request-derived dimensions.
Managed API-key lease issuance
Built-in API-key profiles such as seulgi_messages may declare their auth header case-insensitively (for example the lowercase x-api-key). The Control Plane canonicalizes the resolved header name to its HTTP-canonical spelling (X-Api-Key) before signing the lease scope, so the managed API-key lease is issued and consumed successfully and the Node injects only that exact signed lease instruction upstream, never the raw secret. A lease-issuance or consumption failure fails closed with a sanitized 502 api_error and never falls back to caller auth or a bearer slot. This outbound provider-header canonicalization is distinct from inbound IOP caller auth. The deterministic credential-slot qualification exercises both managed profiles (Chat and Messages) end to end.
금지 사항
metadata.user는 identity source가 아니며 사용되지 않는다.metadata는 route/response mode selector가 아니다.- Anthropic request에 provider/Ollama 전용 root field를 추가하지 않는다.
- provider body에는 IOP 확장 envelope를 섞지 않는다.
- raw provider token을 Edge config, tracked docs, roadmap, task artifact, metric label에 저장하지 않는다.
- missing required provider auth error body나 log에 raw header 값을 echo하지 않는다.
- Never expose a slot alias, raw credential, lease id, ciphertext, private key, recipient material, or target URL through an Anthropic error, log, event, metric, or task artifact.
관련 계약
iop.openai-compatible-api:agent-contract/outer/openai-compatible-api.md(공유 auth, metadata, ingress, usage metric, model catalog)iop.edge-node-runtime-wire:agent-contract/inner/edge-node-runtime-wire.md(provider tunnel, protocol profile wire)iop.edge-config-runtime-refresh:agent-contract/inner/edge-config-runtime-refresh.md(protocol profile config, overlay, alias)