Agix’s Claude integration talks directly to the Anthropic Messages API atDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/manusapis/Agix/llms.txt
Use this file to discover all available pages before exploring further.
https://api.anthropic.com/v1/messages. Unlike the OpenAI-compatible providers, Claude uses a distinct HTTP contract: authentication is passed in an x-api-key header rather than a Bearer token, a versioning header is required, and system messages are promoted out of the conversation array into a dedicated top-level field. Agix handles all of this transparently inside ClaudeProvider, so the rest of the application works with the same ChatRequest / ChatResponse types regardless of which provider is active.
Default configuration
The default configuration registered inproviders.config.ts is:
Setting up Claude in the sidebar
Open the Agix sidebar
In Excel, click Home → Agix. In Google Sheets, open the Agix add-on from the Extensions menu.
Enter your API key
Paste your Anthropic API key into the API Key field. You can generate one at console.anthropic.com.
Choose a model (optional)
The default model is
claude-3-5-sonnet-latest. You can change this to any model name listed in your Anthropic console.AIProviderConfig shape for Claude
Authentication headers
Every request sent byClaudeProvider includes the following headers:
anthropic-version header is required by the Anthropic API and is pinned to 2023-06-01 in the current implementation.
System message handling
The Anthropic Messages API does not acceptsystem role entries inside the messages array. ClaudeProvider automatically adapts the incoming ChatRequest by extracting any message with role: "system" and placing its content in the top-level system field of the request body. The remaining user and assistant messages are passed in the messages array as normal.
Request parameters
The Claude model to use, e.g.
claude-3-5-sonnet-latest. Taken from the ChatRequest.Extracted from any
system-role message in the request. Omitted from the body if no system message is present.The
user and assistant turns of the conversation after the system message has been removed.Maximum tokens in the response. Defaults to
1024 when not specified in the ChatRequest.Controls response randomness. Defaults to
0.7 when not provided by the caller.Response shape
ClaudeProvider maps the Anthropic response into the shared ChatResponse type:
content as an array of typed blocks. ClaudeProvider joins all text blocks into a single string. Token usage is not currently mapped from the Claude response.
Generate your Anthropic API key at console.anthropic.com.
New accounts receive a small free credit allowance. API key usage and spend
are visible in the Anthropic console dashboard.