clade-security-basics

Installation
SKILL.md

Anthropic Security Basics

Overview

Securing a Claude integration means protecting your API key, validating inputs, defending against prompt injection, and handling user data responsibly.

API Key Security

Instructions

Step 1: Never Expose Keys Client-Side

// BAD — key in browser JavaScript
const client = new Anthropic({ apiKey: 'sk-ant-...' }); // EXPOSED TO USERS

// GOOD — key only on server
// api/chat.ts (server-side only)
const client = new Anthropic(); // reads from env
Installs
2
GitHub Stars
2.8K
First Seen
Aug 21, 2026