models.json. It lists every supported field and default; for setup examples and file locations (normally ~/.atomic/agent/models.json), see Configure custom models.
Add "$schema": "https://raw.githubusercontent.com/bastani-inc/atomic/main/packages/coding-agent/schemas/models.schema.json" to models.json for editor validation and completion.
Providers
Each key underproviders is a provider ID. A built-in provider ID changes that provider, and any other ID adds a provider (which needs baseUrl and an api at provider or model level). The following table lists the provider fields:
| Field | Type | Default | Description |
|---|---|---|---|
name | string | None | Display name. |
baseUrl | string | None | API base URL. Also applies to the provider’s built-in models. |
apiKey | string | None | Literal key, “$NAME” environment interpolation, or “!command” output. |
api | string | None | API for the provider’s models, such as “openai-completions”, “openai-responses”, “anthropic-messages”, or “google-generative-ai”. |
headers | object | None | Request headers. Values resolve like apiKey. |
compat | object | None | Provider and model compatibility overrides. |
authHeader | boolean | false | Whether to send the resolved API key as Authorization: Bearer. |
models | object[] | None | Custom or replacement model definitions for this provider. |
modelOverrides | object | None | Per-model field overrides keyed by built-in or extension model ID. |
Models
Eachmodels entry adds a model to the provider, replacing any existing model with the same id. The following table lists the model fields:
| Field | Type | Default | Description |
|---|---|---|---|
id | string | None | Required. Model ID sent to the API. |
name | string | None | Display name, also matched by —model patterns. |
type | "chat" | "compactor" | "chat" | Model kind: “chat” (default) or “compactor” for a dedicated remote compaction endpoint. |
api | string | None | Overrides the provider api. |
baseUrl | string | None | Overrides the provider baseUrl. |
endpointPath | string | "/compact" (compactor models) | Endpoint path appended to baseUrl for compactor requests. Set to "" to POST directly to baseUrl. Applies only to compactor models. |
reasoning | boolean | false | Whether the model supports thinking. Applies only to chat models. |
thinkingLevelMap | object | None | Provider value sent for each thinking level. null marks a level unsupported. Levels the model doesn’t map use the provider’s default value through high; xhigh and max are unsupported. |
input | ("text" | "image" | "pdf")[] | ["text"] | Accepted input modalities (text, image, or PDF). |
inputLimits | object | None | Per-request payload and image limits enforced before sending provider requests. |
cost | object | None | Token pricing in USD per million tokens and optional request-wide pricing tiers. |
cost.input | number | None | Required. Input cost in USD per million tokens. |
cost.output | number | None | Required. Output cost in USD per million tokens. |
cost.cacheRead | number | None | Required. Cache-read cost in USD per million tokens. |
cost.cacheWrite | number | None | Required. Cache-write cost in USD per million tokens. |
cost.tiers | object[] | None | Request-wide pricing tiers. The highest matching input threshold applies to the full request. |
cost.tiers[].inputTokensAbove | number | None | Required. Use this tier when total request input exceeds this token count. |
cost.tiers[].input | number | None | Required. Input cost in USD per million tokens. |
cost.tiers[].output | number | None | Required. Output cost in USD per million tokens. |
cost.tiers[].cacheRead | number | None | Required. Cache-read cost in USD per million tokens. |
cost.tiers[].cacheWrite | number | None | Required. Cache-write cost in USD per million tokens. |
promptCache | object | None | Best-effort prompt cache lifetime in seconds for the short and long retention tiers. Atomic warms only tiers with a known lifetime. |
contextWindow | number | 128000 | Context window in tokens. Applies only to chat models. |
maxTokens | number | 16384 | Maximum output tokens. Defaults to 16384 for chat models. On compactor models it has no default: when set, compacted output longer than this many estimated tokens clears the context instead; when omitted, output has no size limit. |
timeoutMs | number | 120000 (compactor models) | Wall-clock timeout in milliseconds for one compactor request. Applies only to compactor models. |
samplingParams | object | None | Fields merged into every request body. Applies only to OpenAI-compatible APIs. |
samplingParamsByThinkingLevel | object | None | samplingParams per thinking level, merged over samplingParams. |
compactionParams | object | None | API-specific request-body parameters merged into for compactor requests. Omit to let the remote API use its own defaults. Applies only to compactor models. |
headers | object | None | Request headers. Values resolve like apiKey. |
compat | object | None | Provider and model compatibility overrides. |
Model overrides
EachmodelOverrides key is the ID of a built-in or extension model. Unknown IDs are ignored. Object fields, such as cost, merge with the model’s value field by field; other fields replace it. The following table lists the model override fields:
| Field | Type | Default | Description |
|---|---|---|---|
name | string | None | Display name, also matched by —model patterns. |
baseUrl | string | None | Overrides the model baseUrl. |
endpointPath | string | None | Endpoint path appended to baseUrl for compactor requests. Set to "" to POST directly to baseUrl. Applies only to compactor models. |
reasoning | boolean | None | Whether the model supports thinking. Applies only to chat models. |
thinkingLevelMap | object | None | Provider value sent for each thinking level. null marks a level unsupported. Levels the model doesn’t map use the provider’s default value through high; xhigh and max are unsupported. |
input | ("text" | "image" | "pdf")[] | None | Accepted input modalities (text, image, or PDF). |
inputLimits | object | None | Per-request payload and image limits enforced before sending provider requests. |
cost | object | None | Per-field overrides for token pricing in USD per million tokens and pricing tiers. |
cost.input | number | None | Input cost in USD per million tokens. |
cost.output | number | None | Output cost in USD per million tokens. |
cost.cacheRead | number | None | Cache-read cost in USD per million tokens. |
cost.cacheWrite | number | None | Cache-write cost in USD per million tokens. |
cost.tiers | object[] | None | Request-wide pricing tiers. The highest matching input threshold applies to the full request. |
cost.tiers[].inputTokensAbove | number | None | Required. Use this tier when total request input exceeds this token count. |
cost.tiers[].input | number | None | Required. Input cost in USD per million tokens. |
cost.tiers[].output | number | None | Required. Output cost in USD per million tokens. |
cost.tiers[].cacheRead | number | None | Required. Cache-read cost in USD per million tokens. |
cost.tiers[].cacheWrite | number | None | Required. Cache-write cost in USD per million tokens. |
promptCache | object | None | Best-effort prompt cache lifetime in seconds for the short and long retention tiers. Atomic warms only tiers with a known lifetime. |
contextWindow | number | None | Context window in tokens. Applies only to chat models. |
maxTokens | number | None | Maximum output tokens. On compactor models, compacted output longer than this many estimated tokens clears the context instead; omit it for no size limit. |
timeoutMs | number | None | Wall-clock timeout in milliseconds for one compactor request. Applies only to compactor models. |
samplingParams | object | None | Fields merged into every request body. Applies only to OpenAI-compatible APIs. |
samplingParamsByThinkingLevel | object | None | samplingParams per thinking level, merged over samplingParams. |
compactionParams | object | None | API-specific request-body parameters merged into for compactor requests. Omit to let the remote API use its own defaults. Applies only to compactor models. |
headers | object | None | Request headers. Values resolve like apiKey. |
compat | object | None | Provider and model compatibility overrides. |
Input limits
See Image input limits for sizing guidance. The following table lists theinputLimits fields:
| Field | Type | Default | Description |
|---|---|---|---|
maxRequestBytes | integer | None | Maximum serialized provider request size in bytes. |
images | object | None | Image count and resize limits for requests sent to this model. |
images.resize | object | None | Cache-safe resize profile applied before a new image enters conversation history. |
images.resize.maxWidth | integer | None | Maximum resized image width in pixels. |
images.resize.maxHeight | integer | None | Maximum resized image height in pixels. |
images.resize.maxBytes | integer | None | Maximum base64-encoded payload size in bytes. |
images.resize.jpegQuality | integer | None | JPEG compression quality from 1 to 100. |
images.maxPerMessage | integer | None | Maximum images accepted in one provider message. |
images.maxPerRequest | integer | None | Maximum images accepted across one provider request. |
Compatibility
compat describes verified differences from an API’s standard request and response behavior. Model values override provider values per field. The fields that apply depend on the model’s api.
openai-completions
The following table lists the compat fields for openai-completions:
| Field | Type | Default | Description |
|---|---|---|---|
supportsStore | boolean | Auto-detected from URL | Whether the provider supports the store field. |
supportsDeveloperRole | boolean | Auto-detected from URL | Whether the provider supports the developer role instead of system. |
supportsReasoningEffort | boolean | Auto-detected from URL | Whether the provider supports reasoning_effort. |
supportsTemperature | boolean | true | Whether the model accepts the temperature request field. When false, the provider omits temperature and also strips temperature, top_p, and top_k from samplingParams. |
supportsForcedToolChoice | boolean | true | Whether the model accepts forced tool use (tool_choice “required” or a specific function). When false, the provider rejects a forced choice with an error instead of sending a request the model can’t honor. “auto” and “none” are never altered. |
supportsUsageInStreaming | boolean | true | Whether the provider supports stream_options.include_usage for token usage in streaming responses. |
supportsFinishReason | boolean | true | Whether streamed responses include finish_reason. When false, Atomic infers stop or toolUse when the stream ends. |
maxTokensField | "max_completion_tokens" | "max_tokens" | Auto-detected from URL | Which field to use for max tokens. |
requiresToolResultName | boolean | Auto-detected from URL | Whether tool results require the name field. |
requiresAssistantAfterToolResult | boolean | Auto-detected from URL | Whether a user message after tool results requires an assistant message in between. |
requiresNonNullAssistantContent | boolean | false | Whether replayed assistant messages with no text (for example, tool-call-only messages) must send "" instead of null content. |
requiresToolsWithToolHistory | boolean | false (the field is omitted) | Whether requests without tools must send “tools”: [] when the conversation contains tool calls or tool results. Needed by some proxies in front of Anthropic, such as older LiteLLM versions. |
requiresThinkingAsText | boolean | Auto-detected from URL | Whether thinking blocks must be converted to text blocks with <thinking> delimiters. |
requiresReasoningContentOnAssistantMessages | boolean | Auto-detected from URL | Whether all replayed assistant messages must include an empty reasoning_content field when reasoning is enabled. |
thinkingFormat | "openai" | "openrouter" | "deepseek" | "together" | "baseten" | "zai" | "qwen" | "chat-template" | "qwen-chat-template" | "string-thinking" | "ant-ling" | Auto-detected from URL | Format for reasoning or thinking parameters. “openai” uses reasoning_effort, “openrouter” uses reasoning.effort, “deepseek” uses thinking.type plus reasoning_effort when supported, “together” uses reasoning.enabled plus reasoning_effort when supported, “baseten” uses configurable chat_template_args plus reasoning_effort when supported, “zai” uses thinking.type, “qwen” uses top-level enable_thinking, “qwen-chat-template” uses chat_template_kwargs.enable_thinking and preserve_thinking, “chat-template” uses configurable chat_template_kwargs, “string-thinking” uses top-level thinking, and “ant-ling” uses reasoning.effort only when the mapped effort is non-null. |
chatTemplateKwargs | object | None | Kwargs sent as chat_template_kwargs when thinkingFormat is “chat-template”. Use $var with “thinking.enabled”, “thinking.effort”, or “thinking.budget” for Atomic-controlled values. |
chatTemplateArgs | object | None | Arguments sent as chat_template_args when thinkingFormat is “baseten”. Use $var with “thinking.enabled”, “thinking.effort”, or “thinking.budget” for Atomic-controlled values. |
openRouterRouting | object | None | OpenRouter provider routing preferences. Controls which upstream providers OpenRouter routes requests to. Sent as the provider field in the OpenRouter API request body. See OpenRouter provider routing. |
vercelGatewayRouting | object | None | Vercel AI Gateway routing preferences. Controls which upstream providers the gateway routes requests to. See Vercel AI Gateway provider options. |
zaiToolStream | boolean | false | Whether z.ai supports top-level tool_stream for streaming tool call deltas. |
thinkingTokenBudgetField | "thinking_token_budget" | "thinking_budget" | "thinking_budget_tokens" | None | Top-level request field used to cap reasoning tokens from thinkingBudgets. Reasoning and the answer share max_tokens on these endpoints. “thinking_token_budget” is vLLM, “thinking_budget” is Qwen, DashScope, or SGLang, and “thinking_budget_tokens” is llama.cpp. Off by default and not set on the generated catalog. |
supportsThinkingTokenBudget | boolean | false | Alias for thinkingTokenBudgetField: “thinking_token_budget” (vLLM). Prefer thinkingTokenBudgetField. |
supportsOpenAIGrammarTools | boolean | false | Whether the provider supports OpenAI custom tools with Lark or regex grammar formats. When false, grammar-constrained tools fall back to normal function tools. The generated catalog enables this for capable models. |
supportsMidConvoSystemMessages | boolean | false | Whether the exact model accepts system or developer messages after the conversation has started. When false, later system messages are folded into the leading system message. The generated catalog enables this for verified models. |
supportsMidConvoToolAdditions | boolean | false | Whether system messages can introduce additional tools mid-conversation. Requires supportsMidConvoSystemMessages. The generated catalog enables this for capable models. |
supportsStrictMode | boolean | false | Whether the provider supports the strict field in tool definitions. Generated capable models enable it explicitly. |
cacheControlFormat | "anthropic" | None | Cache control convention for prompt caching. Anthropic applies cache_control markers to the system prompt, last tool definition, and last user, assistant, or tool-result text content. |
sendSessionAffinityHeaders | boolean | True for OpenRouter endpoints, false otherwise | Whether to send session-affinity data from options.sessionId. |
sessionAffinityFormat | "openai" | "openai-nosession" | "openrouter" | Auto-detected | Session-affinity header format. openai sends session_id and x-session-affinity; openai-nosession sends x-session-affinity; openrouter sends x-session-id. Compatible endpoints using either OpenAI format also receive the legacy x-client-request-id affinity header. api.openai.com uses that header for request tracing instead. Doesn’t affect prompt_cache_key. |
sendIdempotencyKey | boolean | false | Send an Idempotency-Key across retries of the same request. Enable only if the endpoint documents support. |
promptCacheKeyMode | "auto" | "enabled" | "disabled" | "auto" | Controls the prompt_cache_key request field. auto sends it to api.openai.com, or with long cache retention when supportsLongCacheRetention is true; enabled sends it whenever caching is active, for compatible proxies; disabled never sends it. |
supportsLongCacheRetention | boolean | Auto-detected from provider and URL | Whether the provider supports long prompt cache retention (prompt_cache_retention: “24h” or Anthropic-style cache_control.ttl: “1h”, depending on format). |
vllmPriority | number | None | vLLM scheduler priority sent as the top-level priority request field. Lower values are handled earlier and the server default is 0. Only meaningful with —scheduling-policy priority. Off by default and not set on the generated catalog. |
openai-responses
Also applies to azure-openai-responses and openai-codex-responses. The following table lists the compat fields for openai-responses:
| Field | Type | Default | Description |
|---|---|---|---|
supportsDeveloperRole | boolean | true | Whether the provider supports the developer role instead of system. |
supportsMidConvoSystemMessages | boolean | false | Whether the exact model accepts developer or system messages after the conversation has started. When false, later system messages are folded into the leading system message. The generated catalog enables this for verified models. |
sessionAffinityFormat | "openai" | "openai-nosession" | "openrouter" | Auto-detected | Session-affinity header format. openai sends session-id; openrouter sends x-session-id. Compatible endpoints explicitly configured with openai or openai-nosession also receive the legacy x-client-request-id affinity header. api.openai.com uses that header for request tracing instead. Doesn’t affect prompt_cache_key. |
sendIdempotencyKey | boolean | false | Send an Idempotency-Key across retries of the same openai-responses request. Enable only if the endpoint documents support. Doesn’t apply to Codex or Azure Responses. |
promptCacheKeyMode | "auto" | "enabled" | "disabled" | "auto" | Controls the prompt_cache_key request field. auto and enabled send it whenever caching is active; disabled never sends it, for compatible proxies that reject it. |
supportsLongCacheRetention | boolean | true | Whether the provider supports long prompt cache retention. This uses prompt_cache_options.ttl: “30m” on GPT-5.6+ and prompt_cache_retention: “24h” on earlier models. |
supportsStrictMode | boolean | API-specific | Whether the provider supports strict JSON-schema function tools. Generated OpenAI models enable it explicitly. |
supportsOpenAIGrammarTools | boolean | false | Whether to emit OpenAI custom tools with Lark or regex grammar formats. When false, grammar-constrained tools fall back to normal function tools. The generated catalog enables this for capable models. |
supportsAdditionalTools | boolean | false | Whether the model supports message-anchored additional_tools input items. |
supportsToolSearch | boolean | false | Whether the model supports client-executed tool search for transcript-anchored additions. |
supportsExplicitPromptCacheMode | boolean | false | Whether the model accepts prompt_cache_options. Older OpenAI models reject the parameter. |
supportsMidConvoEffort | boolean | false | Whether thinking level changes are sent as configuration_update input items instead of changing reasoning.effort, so a change keeps the prompt cache. Only used by the openai-responses API, and ignored with Sign in with ChatGPT on the openai provider. |
supportsMaxOutputTokens | boolean | true | Whether the provider accepts max_output_tokens. Some Codex-protocol gateways reject it. |
anthropic-messages
The following table lists the compat fields for anthropic-messages:
| Field | Type | Default | Description |
|---|---|---|---|
thinkingDisplay | "updates" | "summarized" | "omitted" | None | Default Anthropic thinking display for this model. Use summarized to prefer reasoning summaries over separately visible progress updates. |
supportsEagerToolInputStreaming | boolean | true | Whether the provider accepts per-tool eager_input_streaming. When false, the Anthropic provider omits tools[].eager_input_streaming and sends the legacy fine-grained-tool-streaming-2025-05-14 beta header for tool-enabled requests. |
supportsLongCacheRetention | boolean | true | Whether the provider supports Anthropic long cache retention through cache_control.ttl. |
sendSessionAffinityHeaders | boolean | True for OpenRouter endpoints, false otherwise | Whether to send x-session-affinity from options.sessionId when caching is enabled. Required for providers like Fireworks that use session affinity for prompt cache routing; requests to the same replica maximize cache hits. |
sessionAffinityFormat | "openrouter" | None | Session-affinity format. openrouter sends x-session-id; when unset, sends x-session-affinity. |
supportsCacheControlOnTools | boolean | true | Whether the provider supports Anthropic-style cache_control markers on tool definitions. When false, cache_control is omitted from tool parameters. Some Anthropic-compatible providers, such as Fireworks, don’t support this field on tools and might reject or ignore it. |
supportsTemperature | boolean | true | Whether the model accepts the Anthropic temperature request field. Claude Opus 4.7+ rejects non-default values. |
forceAdaptiveThinking | boolean | false | Whether to force adaptive thinking (thinking.type: adaptive plus output_config.effort) regardless of model ID. Built-in models that require adaptive thinking set this in generated metadata. Custom Anthropic-compatible providers can set this to true for any model whose upstream requires the adaptive format. Set false to opt out on overridden built-in models. |
allowEmptySignature | boolean | false | Whether to replay empty thinking signatures instead of converting thinking to text. |
supportsStrictTools | boolean | false | Whether the provider supports Anthropic strict tool schemas. Generated Anthropic models enable it explicitly. |
supportsMidConvoEffort | boolean | false | Whether the exact model transport supports effort-only system messages and thinking binding controls. |
supportsMidConvoSystemMessages | boolean | false | Whether the exact model accepts system-role messages inside the conversation. When false, later system messages are folded into the top-level system prompt. |
supportsMidConvoToolChanges | boolean | false | Whether the exact model accepts mid-conversation tool_addition and tool_removal blocks. Requires supportsMidConvoSystemMessages. |
supportsMessageThreads | boolean | True for a baseUrl whose host is api.anthropic.com, false otherwise | Whether the endpoint supports Anthropic message threads, which let a request with a session ID send only the new messages and continue from the previous reply. Set true for gateways that forward the thread request field. |
allowedFallbackModels | object[] | None | Models Anthropic accepts for server-side refusal fallback, with local pricing metadata for returned fallback responses. When absent or empty, callers must omit fallbacks; Anthropic rejects the field for models with no permitted fallback targets. |
allowedFallbackModels[].provider | string | None | Required. Fallback provider ID. |
allowedFallbackModels[].model | string | None | Required. Fallback model ID. |
allowedFallbackModels[].cost | object | None | Required. Token pricing in USD per million tokens and optional request-wide pricing tiers. |
allowedFallbackModels[].cost.input | number | None | Required. Input cost in USD per million tokens. |
allowedFallbackModels[].cost.output | number | None | Required. Output cost in USD per million tokens. |
allowedFallbackModels[].cost.cacheRead | number | None | Required. Cache-read cost in USD per million tokens. |
allowedFallbackModels[].cost.cacheWrite | number | None | Required. Cache-write cost in USD per million tokens. |
allowedFallbackModels[].cost.tiers | object[] | None | Request-wide pricing tiers. The highest matching input threshold applies to the full request. |
allowedFallbackModels[].cost.tiers[].inputTokensAbove | number | None | Required. Use this tier when total request input exceeds this token count. |
allowedFallbackModels[].cost.tiers[].input | number | None | Required. Input cost in USD per million tokens. |
allowedFallbackModels[].cost.tiers[].output | number | None | Required. Output cost in USD per million tokens. |
allowedFallbackModels[].cost.tiers[].cacheRead | number | None | Required. Cache-read cost in USD per million tokens. |
allowedFallbackModels[].cost.tiers[].cacheWrite | number | None | Required. Cache-write cost in USD per million tokens. |
enforcesPreservedThinkingBinding | boolean | false | Whether the model runs the Anthropic preserved-thinking conversation check, which rejects a request whose system prompt, tools, or earlier messages changed since a replayed thinking block was produced. When true, the provider sends the thinking-binding-controls-2026-08-01 beta header and thinking.block_binding.prefix_mismatch_behavior: “drop_block”, so a changed prefix drops the affected thinking blocks instead of failing the request. |
delegatesThinkingModelBinding | boolean | false | Whether the API adjudicates thinking-block model binding itself, always dropping a block the target model can’t read. When true, an assistant turn produced by a different model on the same provider and API replays its signed thinking and redacted_thinking blocks unchanged instead of being rewritten into plain text. |
supportsForcedToolChoice | boolean | true | Whether the model accepts forced tool use (tool_choice “any” or a specific tool). When false, the provider rejects a forced choice with an error instead of sending a request the model is guaranteed to refuse. “auto” and “none” are never altered. |
bedrock-converse-stream
The following table lists the compat fields for bedrock-converse-stream:
| Field | Type | Default | Description |
|---|---|---|---|
supportsStrictMode | boolean | false | Whether the model supports Bedrock strict tool schemas. |
supportsForcedToolChoice | boolean | true | Whether the model accepts forced tool use (toolChoice “any” or a specific tool). When false, the provider rejects a forced choice with an error instead of sending a request that is guaranteed to fail. “auto” and “none” are never altered. |
supportsTemperature | boolean | true | Whether the model accepts inferenceConfig.temperature. When false, the provider omits the field. |
mistral-conversations
The following table lists the compat fields for mistral-conversations:
| Field | Type | Default | Description |
|---|---|---|---|
supportsMidConvoSystemMessages | boolean | false | Whether the exact model accepts system messages after the conversation has started. When false, later system messages are folded into the leading system message. |
typesafe-system-one
Also applies to cloudflare-workers-ai-system-one. The following table lists the compat fields for typesafe-system-one:
| Field | Type | Default | Description |
|---|---|---|---|
imageInput | "assets" | "images" | "state-image-urls" | Auto-detected from the provider, baseUrl, and model ID | How the service takes classifier images. “assets” sends TypeSafe’s assets map (PNG and JPEG) and references the images from the state, as TypeSafe and Jev on Workers AI expect. “images” sends Clef’s images list of data URLs (PNG, JPEG, and WebP, at most four), as Clef on Workers AI expects. “state-image-urls” places image_url parts before the state, as OpenRouter expects; OpenRouter drops assets without an error. Classifier models read it from the provider-level compat; models and modelOverrides entries apply to chat and compactor models. |
sendImageOptInHeader | boolean | True for the typesafe-system-one API unless the model is detected as OpenRouter | Whether requests with images send the TypeSafe-Danger-Zone-Images: true header, which TypeSafe’s own API requires for its experimental image input. |
Atomic compatibility aliases
The following table lists Atomic’s compatibility field aliases:| Field | Type | Default | Description |
|---|---|---|---|
supportsGrammarTools | boolean | None | Atomic alias for supportsOpenAIGrammarTools. The canonical field wins if both are set. |