Skip to content

Integrate with Claude Code ​

Replace the placeholder values in the following shell commands with your actual credentials and parameters, then run the script to integrate with F5 AI Security.

shell
export ANTHROPIC_BASE_URL={BASE_URL}/anthropic/{CONNECTION_NAME}
export ANTHROPIC_AUTH_TOKEN={CAI_TOKEN}
claude -p "What is the capital of France?"

You can integrate F5 AI Security. We provide a code snippet to help with the process, which requires the following variables:

  • BASE_URL: The URL of the AI Security deployment. Depends on whether your deployment uses AI Security SaaS or your own on-premises system.

  • CAI_TOKEN: See Get Your Authorization Token for instructions on how to obtain an API key.

  • CONNECTION_NAME: Name of the configured Anthropic connection that Claude should use.

Updated at: