Skip to main content

Anthropic Integration

This guide describes how you can integrate Anthropic with BricksAI to gain fine-grained monitoring and access control over your Anthropic calls.

Step 1. Add your Anthropic API key

Go to the Settings page. Under "LLM providers", click "Add provider", select "Anthropic", fill in all information, then click "Add".

Step 2. Create a proxy secret key

To create a proxy secret key, go to the Secret keys page. Click "Create a new secret key", fill in all information, then click "Create".

Step 3. Make a call to Anthropic via BricksAI

Here is a list of all currently supported Anthropic API endpoints.

Below are sample code snippets for calling Anthropic with BricksAI:

import anthropic

client = anthropic.Anthropic(
base_url="https://api.trybricks.ai/api/providers/anthropic",
api_key="your-bricks-secret-key",
)

# Call Anthropic as normal...