Skip to content

Connect the Anthropic API

Choose Anthropic in Desktop's provider setup, enter a workspace-scoped Anthropic API key through the native credential dialog, discover models, and select the exact model you want to use. Colossus uses the native Messages API.

For CLI setup, supply ANTHROPIC_API_KEY through the process environment or a secret manager, then run:

colossus provider setup --preset anthropic

Follow setup's model selection prompts. Keep the secret out of configuration files and shell history. See Choose a provider for non-interactive setup and Providers and models for complete configuration fields and explicit limits.

For an existing connection, use kind: anthropic_messages, baseUrl: https://api.anthropic.com/v1, and credentialReference: env:ANTHROPIC_API_KEY. Include the /v1 prefix and omit /messages and /models; Colossus adds those operation paths. Under an isolating boundary, authorize the exact https://api.anthropic.com origin through sandbox.networkDestinations.

Supported behavior

The native adapter supports text and verified image input, JSON and streamed responses, local and MCP tools including parallel tool calls, and token usage. Model discovery follows bounded catalog pagination. Missing model metadata remains unknown. Native input limits are used as conservative context budgets with an additional output and safety reservation.

Tool schemas omit top-level oneOf, anyOf, and allOf from the definitions sent to Anthropic, which rejects those keywords at the root. Nested schemas remain intact. Colossus still validates every tool call against the full original schema before execution.

Leave reasoning effort unset to use the model's default. Explicit low, medium, high, xhigh, or max requests use native adaptive thinking and effort controls; the selected model must support the combination. none requests disabled thinking where supported. minimal and ultra are rejected locally. Legacy manual thinking budgets are not configured by this adapter.

Thinking blocks and signatures are replayed privately during tool exchanges and do not enter visible conversation history or ordinary diagnostics. With protected storage, replay state is encrypted; keyless development storage retains it only in bounded process memory. Exact tool replay still requires the original checkpoint and its context to fit the configured limits.

After a provider failure, continue in the same session with Continue or new guidance. Colossus preserves the unfinished exchange's original context and sends its recorded tool results back to the provider. Completed tools do not execute again. Protected storage retains this checkpoint across runtime restarts. If a keyless runtime loses it, an ordinary Execute continuation can use the saved tool results to generate a fresh reply in the same conversation. Tools are paused for that recovery response and become available on the next ordinary turn. Plan, Goal, workflow, and delegated runs still require exact replay for an unfinished exchange. Pending tool effects require reconciliation before either recovery path.

A changed provider, model, reasoning effort, tool catalog, or restored context snapshot can prevent exact continuation. Colossus retains the checkpoint when those checks fail. Older affected protected sessions recover only when retained private state still matches their original context.

Connection failures and limits

Use a key scoped to one Anthropic workspace. Multi-workspace selectors, workload identity federation, Claude subscription authentication, Bedrock, Vertex, and Foundry are not configured through this connection type.

The automatic provider retry policy applies before response content starts. Inspect the original run after an interrupted stream. Check provider doctor for authentication, model, or effort errors. HTTP 429 rate limits and HTTP 529 overload responses are reported as failures.

Prompt-cache controls, native compaction, token-count requests, PDF/document inputs, batch jobs, and Anthropic-hosted tools are not enabled by this adapter. Local tool execution continues through Colossus policy, approvals, sandboxing, and audit.

See Anthropic's Messages reference and thinking preservation requirements for provider-side protocol details.