API Key (X-API-Key Header)

Anthropic Integration

Connect your AI agent to the Anthropic Claude API. Access Claude models for document analysis, code generation, complex reasoning, and conversational AI.

What your agent can do

With Anthropic credentials, your agent can call the Claude API directly for any supported task.

Claude model access

Send prompts to Claude Opus, Sonnet, and Haiku models. Your agent can use these for complex reasoning, analysis, and content generation.

Document analysis

Process PDFs, contracts, reports, and long documents. Claude's extended context window handles documents up to 200K tokens.

Code generation

Generate, review, and debug code across dozens of programming languages. Your agent can write functions, refactor code, and explain logic.

Reasoning tasks

Handle multi-step reasoning, math problems, and logical analysis. Claude excels at breaking down complex problems into clear steps.

Conversational AI

Build natural, context-aware conversations. Claude maintains coherent dialogue across long exchanges and follows nuanced instructions.

Prerequisites

Before you connect, make sure you have the following.

  • An Anthropic account with billing enabled
  • An API key from console.anthropic.com
  • A ClawTrust agent on any plan (Starter, Pro, or Enterprise)

Anthropic uses the X-API-Key header instead of the standard Bearer token format. ClawTrust handles this automatically when you select the correct credential type.

Step-by-step setup

Generate an API key from Anthropic and add it to your agent.

1

Log in to the Anthropic console

Go to console.anthropic.com and sign in to your Anthropic account. If you do not have one, create an account and add billing information.

2

Navigate to API keys

In the console, go to Settings > API Keys. Click "Create Key" and give it a descriptive name like "ClawTrust Agent."

3

Copy your API key

Copy the generated key immediately. Anthropic only shows it once. This key uses the X-API-Key header format, not Bearer.

4

Add to ClawTrust

In your agent's dashboard, go to Credentials > Add Credential. Select "API Key (Custom Header)", set the header name to X-API-Key, paste your key, and set the allowed domain to *.anthropic.com.

Credential details

Enter these values when adding the credential in ClawTrust.

FieldValue
Credential TypeAPI Key (Custom Header)
Header NameX-API-Key
API KeyYour Anthropic secret key (sk-ant-...)
Header FormatX-API-Key: sk-ant-...
Allowed Domains*.anthropic.com

Credentials are encrypted with AES-256-GCM and stored on your agent's dedicated server. They never leave your infrastructure. The allowed domains restriction ensures your agent can only use these credentials with Anthropic endpoints.

Example actions

Here is what your agent can do once the integration is live.

Analyze a contract for key terms

Your agent uploads the PDF to Claude, extracts key clauses, renewal dates, and liability terms, then presents a structured summary with flagged risks.

Review and refactor a codebase

Your agent sends code files to Claude for review, receives suggestions for improvements, security fixes, and performance optimizations, then applies the changes.

Draft a detailed proposal

Your agent gathers project requirements, sends them to Claude with formatting guidelines, and returns a polished proposal document ready for client review.

Explain a complex dataset

Your agent passes raw data to Claude, which identifies patterns, outliers, and trends, then generates a plain-language explanation with actionable recommendations.

Ready to connect your agent to Claude?

Add your Anthropic API key and your agent starts using Claude models immediately.