Location
LLM connections are stored in:How Connections Are Used
Connections resolve in this order:- Session connection (locked after first message)
- Workspace default connection (
defaults.defaultLlmConnection) - Global default connection (
defaultLlmConnection) - First connection in the list (fallback)
Each session locks to a connection after the first message. To change connections, start a new session.
Connection Schema
Fields
providerType Values
authType Values
Examples
Anthropic (API Key)
Claude Max (OAuth)
claude-opus-4-8 is the current default Opus model. claude-opus-4-7 remains selectable as the previous generation. Existing connections pinned to Opus 4.7 are upgraded to Opus 4.8 on launch; older selections (Opus 4.5 or 4.6) migrate to the best available Opus model. Opus 4.6 has been removed from model pickers.Claude Sonnet 5 (
claude-sonnet-5) is the current default Sonnet-class model, with a 1M-token context window and the best combination of speed and intelligence for everyday tasks. It’s available on direct Anthropic connections and on AWS Bedrock (us/eu/global inference profiles). claude-sonnet-4-6 remains selectable as the previous Sonnet generation. Opus 4.8 is still the app-wide default; pick Sonnet 5 in the model picker (or set defaultModel: "claude-sonnet-5" on the connection) when you want speed over depth. Toggling thinking off works normally on Sonnet 5.OpenRouter (Anthropic‑compatible)
OpenRouter (OpenAI‑compatible)
AWS Bedrock (IAM Credentials)
iam_credentials, your AWS Access Key ID, Secret Access Key, and optional Session Token are stored securely and injected into the subprocess environment at runtime. Use this when you want to configure credentials directly in the UI.
AWS Bedrock (Environment)
environment, the subprocess inherits your shell’s AWS credential chain — ~/.aws/credentials, AWS_PROFILE, IAM roles, SSO sessions, and environment variables all work. No credentials are stored in Craft Agents.
Set awsRegion to the region where you have Bedrock model access enabled (e.g., us-east-1, us-west-2, eu-west-1).
Codex / OpenAI (OAuth)
Custom Endpoint Capabilities
Custom endpoints default to a 128K context window and text-only input. If your model supports a larger context window or accepts image input, set those capabilities explicitly in the connection config.Per-model overrides (recommended)
Use model objects when an endpoint hosts a mix of text-only and multimodal models:Whole-endpoint opt-in
If every model behind the endpoint is multimodal, you can opt in at the endpoint level:Craft Agents does not auto-detect image support for arbitrary endpoints. Custom endpoints stay text-only unless you explicitly set
supportsImages: true at the endpoint or model level. Plain string model entries continue to use the default 128K context window and text-only input.Mid-stream Behavior
When you send a message while the agent is still streaming a previous turn, Craft Agents needs to decide whether to deliver it into the in-flight turn or hold it for the next one. ThemidStreamBehavior field on the connection controls this.
Defaults by backend
IfmidStreamBehavior is omitted (legacy connections, fresh setups), the default depends on the backend:
anthropic→"queue". Claude’s emulated steer relies on the model invoking a tool before the turn ends. If no tool fires, the steer becomes undelivered and Craft Agents falls back to a re-queue anyway — with the original turn’s tokens already paid. Defaulting to queue avoids the wasted round-trip.pi/pi_compat→"steer". Pi’s native steer is non-destructive: your message is delivered after the current tool finishes, full conversation context preserved.
Changing it from the UI
Open Settings → AI, scroll to the Connections section, click the… menu on the relevant connection (or right-click the row), and choose Mid-stream sends → Steer immediately or Queue until ready. The selection is saved on the connection and takes effect immediately for the next mid-stream send.
This is a per-connection setting, not per-session. Two sessions sharing the same connection will both use the same mode.
Managing Connections
Connections are managed in Settings → AI:- Add/edit/delete connections
- Set a global default connection
- Validate connection status
- Set per‑workspace defaults