Search K
Appearance
Appearance
Set up an AI agent for AI Security fingerprints. Use it to understand and audit agent behavior.
This guide uses Claude Code by Anthropic as an example.
Before you begin, make sure you have:
us1.calypsoai.app or eu1.calypsoai.app. Use this base URL in your environment variables.The connection is a standard Anthropic connection. No additional configuration is required for Claude Code or other Anthropic-based agents.
Agentic projects support session IDs, which are used to identify fingerprints.
AI Agent.Set the following environment variables to route your agent through AI Security. Replace each placeholder with your own values.
| Variable | Value |
|---|---|
CALYPSOAI_URL | Your AI Security workspace URL, such as us1.calypsoai.app |
CALYPSOAI_TOKEN | Your AI Security project token |
ANTHROPIC_BASE_URL | Your Anthropic connection URL |
ANTHROPIC_AUTH_TOKEN | Your Anthropic API token |
ANTHROPIC_CUSTOM_HEADERS | A header containing the session ID. See the format below |
For ANTHROPIC_BASE_URL, append /anthropic/ and your connection name to your workspace URL. For example, if you use the SaaS deployment at us1.calypsoai.app, and connect to claude as a model, use the following URL:
https://us1.calypsoai.app/anthropic/claude
For ANTHROPIC_CUSTOM_HEADERS, use the following format:
ANTHROPIC_CUSTOM_HEADERS=x-cai-metadata-session-id: <SESSION_ID>
AI Security uses the <SESSION_ID> to link the agent's individual requests together. This supports advanced features such as Agentic Fingerprints. The <SESSION_ID> can be any alphanumeric string, but it must be unique, like a UUID.
claude.hi to create a session.date in the bash shell.In addition, you can change models. At the Claude Code prompt, run
/modelThe Claude Code CLI allows you to switch between Claude models.
ANTHROPIC_CUSTOM_HEADERS.The fingerprint view shows: